summaryrefslogtreecommitdiff
path: root/graphics/MesaLib
diff options
context:
space:
mode:
authorrh <rh>2000-10-15 11:41:17 +0000
committerrh <rh>2000-10-15 11:41:17 +0000
commit611722b54a13799dd596757488ec12527a1c860d (patch)
treeae62bd0ad66f1a93db459bf7f0cd5afd0ff8cb3b /graphics/MesaLib
parente6e9a24fba5669cea6a8b12a8751dfa3cb6f21b3 (diff)
downloadpkgsrc-611722b54a13799dd596757488ec12527a1c860d.tar.gz
Initial import of MesaLib-3.2.1, the library part of the new split-up Mesa
system. This is the part of Mesa that's present on XFree86-4.x and therefore only required for XFree86-3.x
Diffstat (limited to 'graphics/MesaLib')
-rw-r--r--graphics/MesaLib/Makefile43
-rw-r--r--graphics/MesaLib/files/md53
-rw-r--r--graphics/MesaLib/files/patch-sum4
-rw-r--r--graphics/MesaLib/patches/patch-aa14
-rw-r--r--graphics/MesaLib/patches/patch-ab15
-rw-r--r--graphics/MesaLib/pkg/COMMENT1
-rw-r--r--graphics/MesaLib/pkg/DESCR11
-rw-r--r--graphics/MesaLib/pkg/PLIST14
8 files changed, 105 insertions, 0 deletions
diff --git a/graphics/MesaLib/Makefile b/graphics/MesaLib/Makefile
new file mode 100644
index 00000000000..3e1381e301d
--- /dev/null
+++ b/graphics/MesaLib/Makefile
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/10/15 11:41:17 rh Exp $
+#
+
+DISTNAME= MesaLib-3.2.1
+WRKSRC= ${WRKDIR}/${DISTNAME:S/Lib//}
+CATEGORIES= graphics
+MASTER_SITES= ftp://ftp.mesa3d.org/mesa/ \
+ http://download.sourceforge.net/mesa3d/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= rh@netbsd.org
+HOMEPAGE= http://www.ssec.wisc.edu/~brianp/Mesa.html
+
+CHECK_MESA= yes
+USE_X11BASE= yes
+USE_LIBTOOL= yes
+LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --enable-static
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${HAVE_BUILTIN_MESA} != "NO"
+IGNORE= "MesaLib/GLX has already been installed as part of XFree-4.x"
+.endif
+
+do-build:
+ cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} \
+ ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} ${ALL_TARGET}
+
+do-install:
+ cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} \
+ ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} ${INSTALL_TARGET}
+
+post-install:
+ ${INSTALL_DATA_DIR} ${X11PREFIX}/include/GL
+.for hdr in gl.h gl_mangle.h glx.h glx_mangle.h osmesa.h \
+ xmesa.h xmesa_x.h xmesa_xf86.h
+ ${INSTALL_DATA} ${WRKSRC}/include/GL/${hdr} ${X11PREFIX}/include/GL
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/MesaLib/files/md5 b/graphics/MesaLib/files/md5
new file mode 100644
index 00000000000..374902bf7c2
--- /dev/null
+++ b/graphics/MesaLib/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/10/15 11:41:17 rh Exp $
+
+MD5 (MesaLib-3.2.1.tar.bz2) = dcd5a6aa77b3bdb400c8179419473e58
diff --git a/graphics/MesaLib/files/patch-sum b/graphics/MesaLib/files/patch-sum
new file mode 100644
index 00000000000..feb11f0a805
--- /dev/null
+++ b/graphics/MesaLib/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/10/15 11:41:17 rh Exp $
+
+MD5 (patch-aa) = 18cbd350a347af4bd5e455b1733a19d8
+MD5 (patch-ab) = 001debf3952eb11c1b152b85e3243ffb
diff --git a/graphics/MesaLib/patches/patch-aa b/graphics/MesaLib/patches/patch-aa
new file mode 100644
index 00000000000..ef4d55c7998
--- /dev/null
+++ b/graphics/MesaLib/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/10/15 11:41:17 rh Exp $
+
+--- src/X86/assyntax.h.orig Thu Apr 6 23:59:24 2000
++++ src/X86/assyntax.h
+@@ -948,7 +948,8 @@
+
+ #if defined(Lynx) || (defined(SYSV) || defined(SVR4)) \
+ || (defined(linux) || defined(__OS2ELF__)) && defined(__ELF__) \
+- || defined(__FreeBSD__) && __FreeBSD__ >= 3
++ || defined(__FreeBSD__) && __FreeBSD__ >= 3 \
++ || defined(__NetBSD__) && defined(__ELF__)
+ #define GLNAME(a) a
+ #else
+ #define GLNAME(a) _ ## a
diff --git a/graphics/MesaLib/patches/patch-ab b/graphics/MesaLib/patches/patch-ab
new file mode 100644
index 00000000000..999bc8ddd33
--- /dev/null
+++ b/graphics/MesaLib/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/10/15 11:41:17 rh Exp $
+
+--- configure.orig Sat Sep 2 12:42:26 2000
++++ configure
+@@ -822,8 +822,8 @@
+ MESA_MAJOR=3
+ MESA_MINOR=2
+ MESA_TINY=1
+-LIBGL_VERSION=1:2:0${MESA_MAJOR}0${MESA_MINOR}0${MESA_TINY}
+-LIBGLU_VERSION=1:1:0${MESA_MAJOR}0${MESA_MINOR}0${MESA_TINY}
++LIBGL_VERSION=${MESA_MAJOR}:${MESA_MINOR}:${MESA_TINY}
++LIBGLU_VERSION=${MESA_MAJOR}:${MESA_MINOR}:${MESA_TINY}
+ LIBGLUT_VERSION=3:7:0
+
+
diff --git a/graphics/MesaLib/pkg/COMMENT b/graphics/MesaLib/pkg/COMMENT
new file mode 100644
index 00000000000..650cafbd4da
--- /dev/null
+++ b/graphics/MesaLib/pkg/COMMENT
@@ -0,0 +1 @@
+Graphics library similar to SGI's OpenGL
diff --git a/graphics/MesaLib/pkg/DESCR b/graphics/MesaLib/pkg/DESCR
new file mode 100644
index 00000000000..7be2ff102dc
--- /dev/null
+++ b/graphics/MesaLib/pkg/DESCR
@@ -0,0 +1,11 @@
+ MesaLib is a 3-D graphics library with an API which is very similar to
+that of OpenGL*. To the extent that Mesa utilizes the OpenGL command syntax
+or state machine, it is being used with authorization from Silicon Graphics,
+Inc. However, the author makes no claim that Mesa is in any way a
+compatible replacement for OpenGL or associated with Silicon Graphics, Inc.
+Those who want a licensed implementation of OpenGL should contact a licensed
+vendor. This software is distributed under the terms of the GNU Library
+General Public License, see the LICENSE file for details.
+
+ This is the GL part of the Mesa distribution for XFree86 versions below 4.0
+that do not include Mesa.
diff --git a/graphics/MesaLib/pkg/PLIST b/graphics/MesaLib/pkg/PLIST
new file mode 100644
index 00000000000..2f4ab2dda0e
--- /dev/null
+++ b/graphics/MesaLib/pkg/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/10/15 11:41:17 rh Exp $
+etc/mesa.conf
+include/GL/gl.h
+include/GL/gl_mangle.h
+include/GL/glx.h
+include/GL/glx_mangle.h
+include/GL/osmesa.h
+include/GL/xmesa.h
+include/GL/xmesa_x.h
+include/GL/xmesa_xf86.h
+lib/libGL.so.3.2
+lib/libGL.a
+lib/libGL.la
+@unexec rmdir %D/include/GL >/dev/null 2>&1 || true