Files
video/libs/glm/Makefile
T
Daniel Golle e776907a7d glm: update to 1.0.3
Patch release. The 1.0.x series is ABI-stable; 1.0.3 brings
mostly small fixes and CI/build-system updates over 1.0.1.

Link: https://github.com/g-truc/glm/releases/tag/1.0.3
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-05-10 00:55:53 +01:00

44 lines
1.0 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=glm
PKG_VERSION:=1.0.3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/g-truc/$(PKG_NAME)/tar.gz/$(PKG_VERSION)?
PKG_HASH:=6775e47231a446fd086d660ecc18bcd076531cfedd912fbd66e576b118607001
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=MIT
CMAKE_INSTALL:=1
PKG_BUILD_FLAGS:=gc-sections lto
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/libglm
SECTION:=libs
CATEGORY:=Libraries
SUBMENU:=Video
TITLE:=OpenGL Mathematics (GLM)
URL:=https://github.com/g-truc/glm
DEPENDS:=+libstdcpp
endef
define Package/libglm/description
OpenGL Mathematics (GLM) is a header only C++ mathematics library for
graphics software based on the OpenGL Shading Language (GLSL)
specifications.
endef
CMAKE_OPTIONS += \
-DBUILD_SHARED_LIBS=ON
define Package/libglm/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
endef
$(eval $(call BuildPackage,libglm))