summaryrefslogtreecommitdiff
path: root/graphics/glx-utils
diff options
context:
space:
mode:
authorreed <reed>2006-06-13 23:44:09 +0000
committerreed <reed>2006-06-13 23:44:09 +0000
commit33fe7f072e99aede386e8665eba2be09b831849e (patch)
treee403336a86eb6d7e701435959932d04f779dd959 /graphics/glx-utils
parent0910270ae273cd40f4769465c93b785a5df9e373 (diff)
downloadpkgsrc-33fe7f072e99aede386e8665eba2be09b831849e.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')
-rw-r--r--graphics/glx-utils/DESCR7
-rw-r--r--graphics/glx-utils/Makefile34
-rw-r--r--graphics/glx-utils/PLIST3
-rw-r--r--graphics/glx-utils/distinfo5
4 files changed, 49 insertions, 0 deletions
diff --git a/graphics/glx-utils/DESCR b/graphics/glx-utils/DESCR
new file mode 100644
index 00000000000..88c01d869eb
--- /dev/null
+++ b/graphics/glx-utils/DESCR
@@ -0,0 +1,7 @@
+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.
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"
diff --git a/graphics/glx-utils/PLIST b/graphics/glx-utils/PLIST
new file mode 100644
index 00000000000..151abb1b38f
--- /dev/null
+++ b/graphics/glx-utils/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/06/13 23:44:09 reed Exp $
+bin/glxgears
+bin/glxinfo
diff --git a/graphics/glx-utils/distinfo b/graphics/glx-utils/distinfo
new file mode 100644
index 00000000000..a02f537583b
--- /dev/null
+++ b/graphics/glx-utils/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/06/13 23:44:09 reed Exp $
+
+SHA1 (Mesa-6.4.2/MesaDemos-6.4.2.tar.bz2) = 35b1ff78fc1bd1c303be754ad2ff4252ad6c0258
+RMD160 (Mesa-6.4.2/MesaDemos-6.4.2.tar.bz2) = 82e1dafd39abbe1c0e1de49adcff00dec19c6c1a
+Size (Mesa-6.4.2/MesaDemos-6.4.2.tar.bz2) = 814178 bytes