Skip to contentSkip to conversation

glm: Added package

PATCH New Paul Cercueil 2 participants 2 messages Aug 15, 2014 – Sep 28, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 glm: Added package

OpenGL Mathematics (GLM) is a header only C++ mathematics library for graphics software based on the OpenGL Shading Language (GLSL) specification.

http://glm.g-truc.net/

---
 package/Config.in     |  1 +
 package/glm/Config.in | 10 ++++++++++
 package/glm/glm.mk    | 17 +++++++++++++++++
 3 files changed, 28 insertions(+)
 create mode 100644 package/glm/Config.in
 create mode 100644 package/glm/glm.mk
package/Config.in +1 -0
index 4520ba6..1e4bc50 100644
@@ -828,6 +828,7 @@ menu "Other"
 	source "package/fftw/Config.in"
 	source "package/flann/Config.in"
 	source "package/glibmm/Config.in"
+	source "package/glm/Config.in"
 	source "package/gmp/Config.in"
 	source "package/gsl/Config.in"
 	source "package/gtest/Config.in"
package/glm/Config.in new file +10 -0
new file mode 100644
index 0000000..41b3608
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_GLM
+	bool "glm"
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  OpenGL Mathematics (GLM)
+
+	  http://glm.g-truc.net
+
+comment "glm needs a toolchain w/ C++"
+	depends on !BR2_INSTALL_LIBSTDCPP
package/glm/glm.mk new file +17 -0
new file mode 100644
index 0000000..ff9423d
@@ -0,0 +1,17 @@
+################################################################################
+#
+# glm
+#
+################################################################################
+
+GLM_VERSION = 0.9.5.4
+GLM_SITE = $(call github,g-truc,glm,$(GLM_VERSION))
+GLM_LICENSE = MIT
+GLM_LICENSE_FILES = copying.txt
+
+# GLM is a header-only library, it only makes sense
+# to have it installed into the staging directory.
+GLM_INSTALL_STAGING = YES
+GLM_INSTALL_TARGET = NO
+
+$(eval $(cmake-package))
Signature · 1 line
2.0.1
#1 lore raw

PATCH v2 1/1 glm: Added package

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Paul" == Paul Cercueil <[email protected]> writes:

OpenGL Mathematics (GLM) is a header only C++ mathematics library for graphics software based on the OpenGL Shading Language (GLSL) specification.

http://glm.g-truc.net/

From that description I thought it needed the opengl headers, but I've checked and it doesn't (and the website states that as well).

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard