summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-09-29 22:44:16 +0000
committertron <tron@pkgsrc.org>1999-09-29 22:44:16 +0000
commit2497693a179fa76ac689f9fde55c116aa12c3030 (patch)
tree78207f832d906a0b0a00a629dc550a4c070996cf /graphics
parentaca8dfbc633487f87a55d720806896e7541b40e7 (diff)
downloadpkgsrc-2497693a179fa76ac689f9fde55c116aa12c3030.tar.gz
Initial import of new "Mesa-glx" package:
OpenGL like graphics library with GLX hardware acceleration. Special thanks must go to Mario Kemper for his assistance while creating, debugging and testing this package.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Mesa-glx/Makefile52
-rw-r--r--graphics/Mesa-glx/files/md53
-rw-r--r--graphics/Mesa-glx/files/patch-sum3
-rw-r--r--graphics/Mesa-glx/patches/patch-aa88
-rw-r--r--graphics/Mesa-glx/pkg/COMMENT1
-rw-r--r--graphics/Mesa-glx/pkg/DESCR9
-rw-r--r--graphics/Mesa-glx/pkg/MESSAGE6
7 files changed, 162 insertions, 0 deletions
diff --git a/graphics/Mesa-glx/Makefile b/graphics/Mesa-glx/Makefile
new file mode 100644
index 00000000000..6e9fa1d58a4
--- /dev/null
+++ b/graphics/Mesa-glx/Makefile
@@ -0,0 +1,52 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/09/29 22:44:16 tron Exp $
+
+DISTNAME= glx-19990804
+PKGNAME= Mesa-${DISTNAME:S/-/-${GLX_CHIPSET}-/}
+CATEGORIES= graphics
+MASTER_SITES= http://glx.on.openprojects.net/snap/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= tron@netbsd.org
+HOMEPAGE= http://glx.on.openprojects.net/
+
+BUILD_DEPENDS+= ${TCLSH}:../../lang/tcl80 \
+ ${MESA_WRKSRC}/lib/libMesaGL.a:${MESA_PKGDIR}:build
+
+CONFLICTS+= Mesa-*
+ONLY_FOR_PLATFORM= NetBSD-*-i386
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_LIBTOOL= yes
+USE_X11BASE= yes
+CONFIGURE_ARGS+= --with-mmx-asm=no --with-3dnow-asm=no \
+ --with-chipset=${GLX_CHIPSET} \
+ --with-mesa=${MESA_WRKSRC}
+CONFIGURE_ENV+= TCLSH=${TCLSH}
+
+# Either "mga" (Matrox MGA 200 and 400) or "tnt" (Riva TNT and TNT 2)
+GLX_CHIPSET?= mga
+
+BUILD_DEFS+= GLX_CHIPSET
+MESA_PKGDIR= ../Mesa
+MESA_VERSION= 3.0
+MESA_WRKSRC= ${BUILD_ROOT}/graphics/Mesa/${WRKDIR:T}/Mesa-${MESA_VERSION}
+PLIST_SRC= ${WRKDIR}/PLIST
+TCLSH= ${LOCALBASE}/bin/tclsh8.0
+
+pre-install:
+ cd ${MESA_PKGDIR} && ${MAKE} do-install
+
+post-install:
+ cd ${PREFIX}/lib; \
+ for EXT in a so.${MESA_VERSION} ; do \
+ ${LN} -fs libGL.$${EXT} libMesaGL.$${EXT}; \
+ ${LN} -fs libGLU.$${EXT} libMesaGLU.$${EXT}; \
+ done
+ @${CP} ${MESA_PKGDIR}/pkg/PLIST ${PLIST_SRC}
+ @${ECHO} "lib/modules/glx.so" >> ${PLIST_SRC}
+
+pre-clean:
+ @cd ${MESA_PKGDIR} && ${MAKE} clean
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/Mesa-glx/files/md5 b/graphics/Mesa-glx/files/md5
new file mode 100644
index 00000000000..4cfc98f5bc8
--- /dev/null
+++ b/graphics/Mesa-glx/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/09/29 22:44:17 tron Exp $
+
+MD5 (glx-19990804.tar.bz2) = 9aff5dcfa7d044a1a8d1b1fb898c56dc
diff --git a/graphics/Mesa-glx/files/patch-sum b/graphics/Mesa-glx/files/patch-sum
new file mode 100644
index 00000000000..ada5bf98859
--- /dev/null
+++ b/graphics/Mesa-glx/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1.1.1 1999/09/29 22:44:17 tron Exp $
+
+MD5 (patch-aa) = 4d3b5b65223089784b40564da47e7f24
diff --git a/graphics/Mesa-glx/patches/patch-aa b/graphics/Mesa-glx/patches/patch-aa
new file mode 100644
index 00000000000..0932c7db785
--- /dev/null
+++ b/graphics/Mesa-glx/patches/patch-aa
@@ -0,0 +1,88 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/09/29 22:44:17 tron Exp $
+
+--- libGL/Makefile.in.orig Sun Jul 4 23:58:47 1999
++++ libGL/Makefile.in Wed Sep 29 19:06:23 1999
+@@ -7,7 +7,7 @@
+ # These define the name/version of the shared library we're building
+ # ------------------------------------------------------------------
+ LIBNAME = GL
+-SOGLREV = 1.0
++SOGLREV = 3:0
+
+ # Source and Object files
+ # -----------------------
+@@ -16,7 +16,6 @@
+ map_points.c pointers.c glx_varray.c
+
+ OBJS = ${SRCS:.c=.o}
+-UNSHARED_OBJS = unshared/*.o
+
+
+ # Additional compiler rules
+@@ -34,22 +33,12 @@
+ ${CC} ${ALL_CFLAGS} -E $*.c > $@
+
+ .c.o:
+-ifeq "${USE_DYNAMIC_MODULE}" "yes"
+- ${RM} $@
+- ${CC} ${ALL_CFLAGS} ${SHARED_CFLAGS} -c $<
+-else
+- ${RM} unshared/$@
+- ${CC} ${ALL_CFLAGS} -c $< -o unshared/$@
+-endif
++ ${LIBTOOL} ${CC} ${ALL_CFLAGS} -c $<
+
+ # Main targets
+ # ------------
+
+-ifeq "${USE_DYNAMIC_MODULE}" "yes"
+-all : lib${LIBNAME}.so.${SOGLREV}
+-else
+-all : unshared-subdir lib${LIBNAME}.a
+-endif
++all : lib${LIBNAME}.la
+
+ clean :
+ ${RM} *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut "#"*
+@@ -61,20 +50,8 @@
+ ${DEPEND} -f .deps -- ${ALL_CFLAGS} -- ${SRCS}
+
+
+-ifeq "${USE_DYNAMIC_MODULE}" "yes"
+-install: lib${LIBNAME}.so.${SOGLREV}
+- @if [ -d ${INSTALL_libdir} ]; then set +x; \
+- else (set -x; ${MKDIR} ${INSTALL_libdir}); fi
+- ${INSTALL} ${INSTALLFLAGS} ${INSTBINFLAGS} lib${LIBNAME}.so.${SOGLREV} ${INSTALL_libdir}
+- @T=`echo ${INSTALL_libdir}/lib${LIBNAME}.so.${SOGLREV} | sed 's/\.[^\.]*$$//'`; set -x; ${RM} $$T && ${LN} lib${LIBNAME}.so.${SOGLREV} $$T
+- ${RM} ${INSTALL_libdir}/lib${LIBNAME}.so
+- ${LN} lib${LIBNAME}.so.${SOGLREV} ${INSTALL_libdir}/lib${LIBNAME}.so
+-else
+-install: lib${LIBNAME}.a
+- @if [ -d ${INSTALL_libdir} ]; then set +x; \
+- else (set -x; ${MKDIR} ${INSTALL_libdir}); fi
+- ${INSTALL} ${INSTALLFLAGS} ${INSTBINFLAGS} lib${LIBNAME}.a ${INSTALL_libdir}
+-endif
++install: lib${LIBNAME}.la
++ ${LIBTOOL} ${BSD_INSTALL_DATA} $< ${INSTALL_libdir}
+
+ tags :
+ ${TAGS} -w *.[ch]
+@@ -92,15 +69,9 @@
+ render.c: genlib.tcl genGL.tcl
+ ${TCLSH} genlib.tcl
+
+-lib${LIBNAME}.so.${SOGLREV} : render.c ${OBJS}
+- ${RM} $@~
+- @SONAME=`echo $@ | sed 's/\.[^\.]*$$//'`; set -x; \
+- ${CC} -o ./$@~ ${SHARED_LDFLAGS} -Wl,-soname,$$SONAME ${OBJS} ${XLIBDIR} -lX11 -lXi ${MATHLIBS}; \
+- ${RM} $$SONAME; ${LN} $@ $$SONAME; \
+- ${RM} $@
+- ${MV} $@~ $@
+- ${RM} lib${LIBNAME}.so
+- ${LN} $@ lib${LIBNAME}.so
++lib${LIBNAME}.la : render.c ${OBJS}
++ ${LIBTOOL} --mode=link ${CC} -rpath ${INSTALL_libdir} \
++ -version-info ${SOGLREV} -o $@ ${OBJS:.o=.lo}
+
+ lib${LIBNAME}.a : render.c ${UNSHARED_OBJS}
+ ${RM} $@~
diff --git a/graphics/Mesa-glx/pkg/COMMENT b/graphics/Mesa-glx/pkg/COMMENT
new file mode 100644
index 00000000000..d0afd066589
--- /dev/null
+++ b/graphics/Mesa-glx/pkg/COMMENT
@@ -0,0 +1 @@
+OpenGL like graphics library with GLX hardware acceleration.
diff --git a/graphics/Mesa-glx/pkg/DESCR b/graphics/Mesa-glx/pkg/DESCR
new file mode 100644
index 00000000000..649555c8b8b
--- /dev/null
+++ b/graphics/Mesa-glx/pkg/DESCR
@@ -0,0 +1,9 @@
+This project is building a hardware accelerated glx module for free unix
+operating systems. Currently, we have support for 3D acceleration on the
+Matrox MGA-G200, MGA-G400, and nvidia's RIVA series for XFree86 3.3. We
+also support software rendering.
+
+The GLX protocol is a way to send 3D graphics commands over an
+X client-server connection. It was created by Silicon Graphics and
+recently released as open source. We're currently based on a separate
+implementation, however.
diff --git a/graphics/Mesa-glx/pkg/MESSAGE b/graphics/Mesa-glx/pkg/MESSAGE
new file mode 100644
index 00000000000..9a94cd62d4b
--- /dev/null
+++ b/graphics/Mesa-glx/pkg/MESSAGE
@@ -0,0 +1,6 @@
+To enable GLX hardware acceleration you have to add a configuration
+section like this one to "/etc/XF86Config":
+
+Section "Module"
+ Load "glx.so"
+EndSection