summaryrefslogtreecommitdiff
path: root/graphics/glx-utils/Makefile
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2006-06-13 23:44:09 +0000
committerreed <reed@pkgsrc.org>2006-06-13 23:44:09 +0000
commit8b437a6cc42634e8d1720bdd689fe19f745baf80 (patch)
treee403336a86eb6d7e701435959932d04f779dd959 /graphics/glx-utils/Makefile
parent336517b1a2033952fefc9f1fa61c22e9107e9cf0 (diff)
downloadpkgsrc-8b437a6cc42634e8d1720bdd689fe19f745baf80.tar.gz
Import glx-utils. I chose the graphics category since that's
where the rest of its family is. The glxinfo program can be used to learn about your OpenGL library. It can identify the OpenGL implementation in use and the detected hardware. The glxgears program is a GLX implementation of the "gears" demo. These tools are from the MesaDemos source code.
Diffstat (limited to 'graphics/glx-utils/Makefile')
-rw-r--r--graphics/glx-utils/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/graphics/glx-utils/Makefile b/graphics/glx-utils/Makefile
new file mode 100644
index 00000000000..e20af30c414
--- /dev/null
+++ b/graphics/glx-utils/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/06/13 23:44:09 reed Exp $
+
+PKGNAME= glx-utils-${MESA_VERSION}
+CATEGORIES= x11 graphics
+COMMENT= OpenGL glxgears and glxinfo
+
+PATCHDIR= ${.CURDIR}/patches
+DISTINFO_FILE= ${.CURDIR}/distinfo
+
+.include "../../graphics/Mesa/Makefile.common"
+DISTNAME= MesaDemos-${MESA_VERSION}
+WRKSRC= ${WRKDIR}/Mesa-${MESA_VERSION}
+
+USE_LANGUAGES= c c++
+INSTALLATION_DIRS= bin
+
+do-build:
+ cd ${WRKSRC}/progs/xdemos && \
+ ${SETENV} ${MAKE_ENV} ${CC} -I../../include ${CFLAGS} \
+ ${PTHREAD_CFLAGS} glxgears.c ${LDFLAGS} ${PTHREAD_LDFLAGS} \
+ -L../../lib -lGLU -lGL -lm -lXext ${PTHREAD_LIBS} \
+ -o glxgears && \
+ ${SETENV} ${MAKE_ENV} ${CC} -I../../include ${CFLAGS} \
+ ${PTHREAD_CFLAGS} glxinfo.c ${LDFLAGS} ${PTHREAD_LDFLAGS} \
+ -L../../lib -lGLU -lGL -lm -lXext ${PTHREAD_LIBS} -o glxinfo
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/progs/xdemos/glxgears ${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/progs/xdemos/glxinfo ${PREFIX}/bin/
+
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"