summaryrefslogtreecommitdiff
path: root/graphics/glm/Makefile
diff options
context:
space:
mode:
authorryoon <ryoon>2012-05-06 08:23:22 +0000
committerryoon <ryoon>2012-05-06 08:23:22 +0000
commit57246e7ee9245fd000512500accb0dfa74643adf (patch)
tree0c9b13e1a2207f38e5e686aa067b42c1d278ff83 /graphics/glm/Makefile
parente19ea939ad6b31d9550b63abf7ce4a66e85afcbc (diff)
downloadpkgsrc-57246e7ee9245fd000512500accb0dfa74643adf.tar.gz
Import glm-0.9.3.2 as graphics/glm.
OpenGL Mathematics (GLM) is a header only C++ mathematics library for graphics software based on the OpenGL Shading Language (GLSL) specification.
Diffstat (limited to 'graphics/glm/Makefile')
-rw-r--r--graphics/glm/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/graphics/glm/Makefile b/graphics/glm/Makefile
new file mode 100644
index 00000000000..692e20a2c40
--- /dev/null
+++ b/graphics/glm/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1.1.1 2012/05/06 08:23:22 ryoon Exp $
+#
+
+DISTNAME= glm-0.9.3.2
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ogl-math/}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= ryoon@NetBSD.org
+HOMEPAGE= http://glm.g-truc.net/
+COMMENT= C++ mathematics library for graphics programming
+LICENSE= mit
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+NO_BUILD= yes
+NO_CONFIGURE= yes
+
+USE_TOOLS+= pax
+
+GLM_DIR= include/glm
+INSTALLATION_DIRS= ${GLM_DIR}
+
+do-install:
+ ${RUN}cd ${WRKSRC}/glm && \
+ ${CHMOD} 644 *hpp core/* gtc/* gtx/* virtrev/*
+ ${RUN}cd ${WRKSRC}/glm && \
+ pax -rw *hpp core gtc gtx virtrev \
+ ${DESTDIR}${PREFIX}/${GLM_DIR}
+
+# for test target
+USE_LANGUAGES= c c++
+do-test:
+ ${RUN}cd ${WRKSRC} && \
+ cmake -DGLM_TEST_MODE=ON CMakeLists.txt && \
+ make
+
+.include "../../mk/bsd.pkg.mk"