summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/Mesa/Makefile11
-rw-r--r--graphics/Mesa/Makefile.common24
-rw-r--r--graphics/Mesa/version.mk13
-rw-r--r--graphics/MesaDemos/Makefile22
-rw-r--r--graphics/MesaDemos/PLIST398
-rw-r--r--graphics/MesaDemos/distinfo24
-rw-r--r--graphics/MesaDemos/patches/patch-aa25
-rw-r--r--graphics/MesaDemos/patches/patch-ab50
-rw-r--r--graphics/MesaDemos/patches/patch-ac34
-rw-r--r--graphics/MesaDemos/patches/patch-ad24
-rw-r--r--graphics/MesaDemos/patches/patch-ae44
-rw-r--r--graphics/MesaDemos/patches/patch-af13
-rw-r--r--graphics/MesaDemos/patches/patch-ag53
-rw-r--r--graphics/MesaDemos/patches/patch-ah22
-rw-r--r--graphics/MesaDemos/patches/patch-ai27
-rw-r--r--graphics/MesaLib/Makefile19
-rw-r--r--graphics/MesaLib/PLIST20
-rw-r--r--graphics/MesaLib/distinfo13
-rw-r--r--graphics/MesaLib/patches/patch-aa8
-rw-r--r--graphics/MesaLib/patches/patch-ab26
-rw-r--r--graphics/MesaLib/patches/patch-ac33
-rw-r--r--graphics/MesaLib/patches/patch-ad13
-rw-r--r--graphics/MesaLib/patches/patch-ae17
-rw-r--r--graphics/glu/Makefile10
-rw-r--r--graphics/glu/PLIST9
-rw-r--r--graphics/glu/buildlink2.mk4
-rw-r--r--graphics/glu/distinfo6
-rw-r--r--graphics/glut/Makefile12
-rw-r--r--graphics/glut/PLIST9
-rw-r--r--graphics/glut/distinfo10
30 files changed, 631 insertions, 362 deletions
diff --git a/graphics/Mesa/Makefile b/graphics/Mesa/Makefile
index 1555a490989..276678634ec 100644
--- a/graphics/Mesa/Makefile
+++ b/graphics/Mesa/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.54 2003/11/30 22:58:41 jschauma Exp $
+# $NetBSD: Makefile,v 1.55 2004/01/20 02:48:33 jschauma Exp $
#
PKGNAME= Mesa-${MESA_VERSION}
-PKGREVISION= 1
MASTER_SITES= # empty
DISTFILES= # empty
@@ -11,17 +10,17 @@ COMMENT= Graphics library meta package, similar to SGI's OpenGL
CONFLICTS= Mesa-glx-[0-9]*
-pre-patch: # empty
-
USE_BUILDLINK2= yes
-USE_X11BASE= yes
+USE_X11= yes
NO_CHECKSUM= yes
NO_CONFIGURE= yes
NO_BUILD= yes
+NO_PATCH= yes
EXTRACT_ONLY= # empty
-post-patch: # empty
+do-patch: # empty
+do-buildlink: # empty
do-install: # empty
.include "Makefile.common"
diff --git a/graphics/Mesa/Makefile.common b/graphics/Mesa/Makefile.common
index 3857950ef64..f4fe30f61a3 100644
--- a/graphics/Mesa/Makefile.common
+++ b/graphics/Mesa/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.20 2003/11/18 16:10:55 jschauma Exp $
+# $NetBSD: Makefile.common,v 1.21 2004/01/20 02:48:33 jschauma Exp $
DISTNAME?= MesaLib-${MESA_VERSION}
CATEGORIES?= graphics
@@ -8,20 +8,24 @@ EXTRACT_SUFX?= .tar.bz2
MAINTAINER?= tech-pkg@NetBSD.org
HOMEPAGE?= http://www.mesa3d.org/
-AUTOMAKE_REQD= 1.7
-USE_GMAKE= yes
+ALL_TARGET= pkgsrc
USE_LIBTOOL= yes
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
-GNU_CONFIGURE?= yes
-CONFIGURE_ARGS+= --enable-static
+NO_CONFIGURE?= yes
DIST_SUBDIR= Mesa-${MESA_VERSION}
+PATCHDIR?= ${.CURDIR}/../../graphics/MesaLib/patches
+DISTINFO_FILE?= ${.CURDIR}/../../graphics/MesaLib/distinfo
-.if !target(post-patch)
-post-patch:
- cd ${WRKSRC} && ${ACLOCAL} && ${AUTOMAKE}
-.endif
+pre-install:
+ for lib in ${INSTLIBS}; do \
+ ${INSTALL_DATA} ${WRKSRC}/lib/$${lib} ${PREFIX}/lib/; \
+ cd ${PREFIX}/lib && ${LN} -s $${lib} $${lib%%.[0-9]}; \
+ cd ${PREFIX}/lib && ${LN} -s $${lib%%.[0-9]} \
+ $${lib%%.[0-9].[0-9]}; \
+ ${INSTALL_DATA} ${WRKSRC}/lib/$${lib%%.*}_pic.a \
+ ${PREFIX}/lib/; \
+ done;
.include "../../graphics/Mesa/version.mk"
-.include "../../mk/automake.mk"
.include "../../mk/bsd.prefs.mk"
diff --git a/graphics/Mesa/version.mk b/graphics/Mesa/version.mk
index 35fa4e05449..47de70594db 100644
--- a/graphics/Mesa/version.mk
+++ b/graphics/Mesa/version.mk
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.5 2004/01/05 06:32:40 jlam Exp $
+# $NetBSD: version.mk,v 1.6 2004/01/20 02:48:33 jschauma Exp $
#
# This file computes the version number of the Mesa distributed with
# XFree86 and stores it in ${_MESA_VERSION}.
@@ -8,12 +8,12 @@
.if !defined(MESA_VERSION_MK)
MESA_VERSION_MK= # defined
-MESA_VERSION= 5.0.2
+MESA_VERSION= 6.0
.include "../../mk/bsd.prefs.mk"
_GL_GL_H= ${X11BASE}/include/GL/gl.h
-_MESA_GL_VERSIONS= 1.2 1.3 1.4
+_MESA_GL_VERSIONS= 1.2 1.3 1.4 1.5
.for _glvers_ in ${_MESA_GL_VERSIONS}
. if !exists(${_GL_GL_H})
_MESA_GL_VERSION_${_glvers_}= NO
@@ -29,11 +29,14 @@ _MESA_GL_VERSION_${_glvers_}!= \
#
# According to the Mesa documentation, for stable releases:
#
+# Mesa-5.0 implements OpenGL 1.5,
# Mesa-5.0 implements OpenGL 1.4,
-# Mesa-4.0.4 implements OpenGL 1.3
+# Mesa-4.0.4 implements OpenGL 1.3,
# Mesa-3.4.2 implements OpenGL 1.2.
#
-.if ${_MESA_GL_VERSION_1.4} == "YES"
+.if ${_MESA_GL_VERSION_1.5} == "YES"
+_MESA_VERSION?= 6.0
+.elif ${_MESA_GL_VERSION_1.4} == "YES"
_MESA_VERSION?= 5.0
.elif ${_MESA_GL_VERSION_1.3} == "YES"
_MESA_VERSION?= 4.0.4
diff --git a/graphics/MesaDemos/Makefile b/graphics/MesaDemos/Makefile
index 6f876b2a6be..7116065dcbc 100644
--- a/graphics/MesaDemos/Makefile
+++ b/graphics/MesaDemos/Makefile
@@ -1,31 +1,31 @@
-# $NetBSD: Makefile,v 1.10 2003/11/28 18:41:03 jschauma Exp $
+# $NetBSD: Makefile,v 1.11 2004/01/20 02:48:33 jschauma Exp $
PKGNAME= MesaDemos-${MESA_VERSION}
-PKGREVISION= 2
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
DISTFILES+= ${DISTNAME:S/MesaLib/MesaDemos/}${EXTRACT_SUFX}
WRKSRC= ${WRKDIR}/${DISTNAME:S/Lib//}
MAINTAINER= jschauma@NetBSD.org
COMMENT= OpenGL examples and Demos
+PATCHDIR= ${.CURDIR}/patches
+DISTINFO_FILE= ${.CURDIR}/distinfo
+
.include "../Mesa/Makefile.common"
USE_BUILDLINK2= yes
-USE_X11BASE= yes
+USE_X11= yes
+
+MAKE_FLAGS+= LIB_DEP=""
-BUILD_DIRS= ${WRKSRC}/book ${WRKSRC}/demos ${WRKSRC}/samples
-ALL_TARGET= check
-CONFIGURE_ARGS+= --with-glut=${X11PREFIX}
-CONFIGURE_ENV+= ac_cv_lib_glut_main=yes
-MAKE_ENV+= X11PREFIX=${X11PREFIX}
+pre-build:
+ ${RM} -fr ${WRKSRC}/src
do-install:
-.for dir in book demos images samples
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${PKGNAME_NOREV}/${dir}
- cd ${WRKSRC}/${dir} && ${PAX} -s ,^./.*Makefile.*,, -s ,^./CVS.*,, \
+ cd ${WRKSRC}/progs && ${PAX} -s ,^./.*Makefile.*,, -s ,^./CVS.*,, \
-s ,^./.*\\.o$$,, -s ,^./\\.libs.*,, -s ,^./\\.deps.*,, \
+ -s ,^./.*\\.orig$$,, \
-rw . ${PREFIX}/share/examples/${PKGNAME_NOREV}/${dir}
-.endfor
${CHMOD} -R a+rX ${PREFIX}/share/examples/${PKGNAME_NOREV}
.include "../../graphics/Mesa/buildlink2.mk"
diff --git a/graphics/MesaDemos/PLIST b/graphics/MesaDemos/PLIST
index 5d7f1321ff1..388cf09b53c 100644
--- a/graphics/MesaDemos/PLIST
+++ b/graphics/MesaDemos/PLIST
@@ -1,133 +1,56 @@
-@comment $NetBSD: PLIST,v 1.4 2003/11/28 18:41:03 jschauma Exp $
-share/examples/${PKGNAME}/book/README
-share/examples/${PKGNAME}/book/aaindex
-share/examples/${PKGNAME}/book/aaindex.c
-share/examples/${PKGNAME}/book/aapoly
-share/examples/${PKGNAME}/book/aapoly.c
-share/examples/${PKGNAME}/book/aargb
-share/examples/${PKGNAME}/book/aargb.c
-share/examples/${PKGNAME}/book/accanti
-share/examples/${PKGNAME}/book/accanti.c
-share/examples/${PKGNAME}/book/accpersp
-share/examples/${PKGNAME}/book/accpersp.c
-share/examples/${PKGNAME}/book/alpha
-share/examples/${PKGNAME}/book/alpha.c
-share/examples/${PKGNAME}/book/alpha3D
-share/examples/${PKGNAME}/book/alpha3D.c
-share/examples/${PKGNAME}/book/anti
-share/examples/${PKGNAME}/book/anti.c
-share/examples/${PKGNAME}/book/bezcurve
-share/examples/${PKGNAME}/book/bezcurve.c
-share/examples/${PKGNAME}/book/bezmesh
-share/examples/${PKGNAME}/book/bezmesh.c
-share/examples/${PKGNAME}/book/checker
-share/examples/${PKGNAME}/book/checker.c
-share/examples/${PKGNAME}/book/clip
-share/examples/${PKGNAME}/book/clip.c
-share/examples/${PKGNAME}/book/colormat
-share/examples/${PKGNAME}/book/colormat.c
-share/examples/${PKGNAME}/book/cube
-share/examples/${PKGNAME}/book/cube.c
-share/examples/${PKGNAME}/book/depthcue
-share/examples/${PKGNAME}/book/depthcue.c
-share/examples/${PKGNAME}/book/dof
-share/examples/${PKGNAME}/book/dof.c
-share/examples/${PKGNAME}/book/double
-share/examples/${PKGNAME}/book/double.c
-share/examples/${PKGNAME}/book/drawf
-share/examples/${PKGNAME}/book/drawf.c
-share/examples/${PKGNAME}/book/feedback
-share/examples/${PKGNAME}/book/feedback.c
-share/examples/${PKGNAME}/book/fog
-share/examples/${PKGNAME}/book/fog.c
-share/examples/${PKGNAME}/book/fogindex
-share/examples/${PKGNAME}/book/fogindex.c
-share/examples/${PKGNAME}/book/font
-share/examples/${PKGNAME}/book/font.c
-share/examples/${PKGNAME}/book/hello
-share/examples/${PKGNAME}/book/hello.c
-share/examples/${PKGNAME}/book/image
-share/examples/${PKGNAME}/book/image.c
-share/examples/${PKGNAME}/book/jitter.h
-share/examples/${PKGNAME}/book/light
-share/examples/${PKGNAME}/book/light.c
-share/examples/${PKGNAME}/book/lines
-share/examples/${PKGNAME}/book/lines.c
-share/examples/${PKGNAME}/book/list
-share/examples/${PKGNAME}/book/list.c
-share/examples/${PKGNAME}/book/material
-share/examples/${PKGNAME}/book/material.c
-share/examples/${PKGNAME}/book/mipmap
-share/examples/${PKGNAME}/book/mipmap.c
-share/examples/${PKGNAME}/book/model
-share/examples/${PKGNAME}/book/model.c
-share/examples/${PKGNAME}/book/movelight
-share/examples/${PKGNAME}/book/movelight.c
-share/examples/${PKGNAME}/book/nurbs
-share/examples/${PKGNAME}/book/nurbs.c
-share/examples/${PKGNAME}/book/pickdepth
-share/examples/${PKGNAME}/book/pickdepth.c
-share/examples/${PKGNAME}/book/picksquare
-share/examples/${PKGNAME}/book/picksquare.c
-share/examples/${PKGNAME}/book/plane
-share/examples/${PKGNAME}/book/plane.c
-share/examples/${PKGNAME}/book/planet
-share/examples/${PKGNAME}/book/planet.c
-share/examples/${PKGNAME}/book/polyoff
-share/examples/${PKGNAME}/book/polyoff.c
-share/examples/${PKGNAME}/book/polys
-share/examples/${PKGNAME}/book/polys.c
-share/examples/${PKGNAME}/book/quadric
-share/examples/${PKGNAME}/book/quadric.c
-share/examples/${PKGNAME}/book/robot
-share/examples/${PKGNAME}/book/robot.c
-share/examples/${PKGNAME}/book/sccolorlight
-share/examples/${PKGNAME}/book/sccolorlight.c
-share/examples/${PKGNAME}/book/scene
-share/examples/${PKGNAME}/book/scene.c
-share/examples/${PKGNAME}/book/scenebamb
-share/examples/${PKGNAME}/book/scenebamb.c
-share/examples/${PKGNAME}/book/sceneflat
-share/examples/${PKGNAME}/book/sceneflat.c
-share/examples/${PKGNAME}/book/select
-share/examples/${PKGNAME}/book/select.c
-share/examples/${PKGNAME}/book/smooth
-share/examples/${PKGNAME}/book/smooth.c
-share/examples/${PKGNAME}/book/stencil
-share/examples/${PKGNAME}/book/stencil.c
-share/examples/${PKGNAME}/book/stroke
-share/examples/${PKGNAME}/book/stroke.c
-share/examples/${PKGNAME}/book/surface
-share/examples/${PKGNAME}/book/surface.c
-share/examples/${PKGNAME}/book/teaambient
-share/examples/${PKGNAME}/book/teaambient.c
-share/examples/${PKGNAME}/book/teapots
-share/examples/${PKGNAME}/book/teapots.c
-share/examples/${PKGNAME}/book/tess
-share/examples/${PKGNAME}/book/tess.c
-share/examples/${PKGNAME}/book/tesswind
-share/examples/${PKGNAME}/book/tesswind.c
-share/examples/${PKGNAME}/book/texbind
-share/examples/${PKGNAME}/book/texbind.c
-share/examples/${PKGNAME}/book/texgen
-share/examples/${PKGNAME}/book/texgen.c
-share/examples/${PKGNAME}/book/texprox
-share/examples/${PKGNAME}/book/texprox.c
-share/examples/${PKGNAME}/book/texsub
-share/examples/${PKGNAME}/book/texsub.c
-share/examples/${PKGNAME}/book/texturesurf
-share/examples/${PKGNAME}/book/texturesurf.c
-share/examples/${PKGNAME}/book/torus
-share/examples/${PKGNAME}/book/torus.c
-share/examples/${PKGNAME}/book/trim
-share/examples/${PKGNAME}/book/trim.c
-share/examples/${PKGNAME}/book/unproject
-share/examples/${PKGNAME}/book/unproject.c
-share/examples/${PKGNAME}/book/varray
-share/examples/${PKGNAME}/book/varray.c
-share/examples/${PKGNAME}/book/wrap
-share/examples/${PKGNAME}/book/wrap.c
+@comment $NetBSD: PLIST,v 1.5 2004/01/20 02:48:33 jschauma Exp $
share/examples/${PKGNAME}/demos/README
+share/examples/${PKGNAME}/demos/Windows/CVS/Entries
+share/examples/${PKGNAME}/demos/Windows/CVS/Repository
+share/examples/${PKGNAME}/demos/Windows/CVS/Root
+share/examples/${PKGNAME}/demos/Windows/CVS/Template
+share/examples/${PKGNAME}/demos/Windows/all.dsp
+share/examples/${PKGNAME}/demos/Windows/bounce.dsp
+share/examples/${PKGNAME}/demos/Windows/clearspd.dsp
+share/examples/${PKGNAME}/demos/Windows/cubemap.dsp
+share/examples/${PKGNAME}/demos/Windows/demos.dsw
+share/examples/${PKGNAME}/demos/Windows/drawpix.dsp
+share/examples/${PKGNAME}/demos/Windows/fire.dsp
+share/examples/${PKGNAME}/demos/Windows/gears.dsp
+share/examples/${PKGNAME}/demos/Windows/geartrain.dsp
+share/examples/${PKGNAME}/demos/Windows/glinfo.dsp
+share/examples/${PKGNAME}/demos/Windows/gloss.dsp
+share/examples/${PKGNAME}/demos/Windows/gltestperf.dsp
+share/examples/${PKGNAME}/demos/Windows/glutfx.dsp
+share/examples/${PKGNAME}/demos/Windows/ipers.dsp
+share/examples/${PKGNAME}/demos/Windows/isosurf.dsp
+share/examples/${PKGNAME}/demos/Windows/loadbias.dsp
+share/examples/${PKGNAME}/demos/Windows/morph3d.dsp
+share/examples/${PKGNAME}/demos/Windows/multiarb.dsp
+share/examples/${PKGNAME}/demos/Windows/occlude.dsp
+share/examples/${PKGNAME}/demos/Windows/osdemo.dsp
+share/examples/${PKGNAME}/demos/Windows/paltex.dsp
+share/examples/${PKGNAME}/demos/Windows/pixeltex.dsp
+share/examples/${PKGNAME}/demos/Windows/pointblast.dsp
+share/examples/${PKGNAME}/demos/Windows/rain.dsp
+share/examples/${PKGNAME}/demos/Windows/ray.dsp
+share/examples/${PKGNAME}/demos/Windows/readpix.dsp
+share/examples/${PKGNAME}/demos/Windows/reflect.dsp
+share/examples/${PKGNAME}/demos/Windows/renormal.dsp
+share/examples/${PKGNAME}/demos/Windows/shadowtex.dsp
+share/examples/${PKGNAME}/demos/Windows/spectex.dsp
+share/examples/${PKGNAME}/demos/Windows/spriteblast.dsp
+share/examples/${PKGNAME}/demos/Windows/stex3d.dsp
+share/examples/${PKGNAME}/demos/Windows/teapot.dsp
+share/examples/${PKGNAME}/demos/Windows/terrain.dsp
+share/examples/${PKGNAME}/demos/Windows/tessdemo.dsp
+share/examples/${PKGNAME}/demos/Windows/texcyl.dsp
+share/examples/${PKGNAME}/demos/Windows/texdown.dsp
+share/examples/${PKGNAME}/demos/Windows/texenv.dsp
+share/examples/${PKGNAME}/demos/Windows/texobj.dsp
+share/examples/${PKGNAME}/demos/Windows/trispd.dsp
+share/examples/${PKGNAME}/demos/Windows/tunnel.dsp
+share/examples/${PKGNAME}/demos/Windows/tunnel2.dsp
+share/examples/${PKGNAME}/demos/Windows/winpos.dsp
+share/examples/${PKGNAME}/demos/arbfplight
+share/examples/${PKGNAME}/demos/arbfplight.c
+share/examples/${PKGNAME}/demos/arbocclude
+share/examples/${PKGNAME}/demos/arbocclude.c
share/examples/${PKGNAME}/demos/bounce
share/examples/${PKGNAME}/demos/bounce.c
share/examples/${PKGNAME}/demos/clearspd
@@ -137,9 +60,10 @@ share/examples/${PKGNAME}/demos/cubemap.c
share/examples/${PKGNAME}/demos/descrip.mms
share/examples/${PKGNAME}/demos/drawpix
share/examples/${PKGNAME}/demos/drawpix.c
-share/examples/${PKGNAME}/demos/example.c
share/examples/${PKGNAME}/demos/fire
share/examples/${PKGNAME}/demos/fire.c
+share/examples/${PKGNAME}/demos/fplight
+share/examples/${PKGNAME}/demos/fplight.c
share/examples/${PKGNAME}/demos/gamma
share/examples/${PKGNAME}/demos/gamma.c
share/examples/${PKGNAME}/demos/gears
@@ -170,7 +94,6 @@ share/examples/${PKGNAME}/demos/occlude
share/examples/${PKGNAME}/demos/occlude.c
share/examples/${PKGNAME}/demos/osdemo
share/examples/${PKGNAME}/demos/osdemo.c
-share/examples/${PKGNAME}/demos/paltex
share/examples/${PKGNAME}/demos/paltex.c
share/examples/${PKGNAME}/demos/particles.cxx
share/examples/${PKGNAME}/demos/particles.h
@@ -193,6 +116,8 @@ share/examples/${PKGNAME}/demos/shadowtex
share/examples/${PKGNAME}/demos/shadowtex.c
share/examples/${PKGNAME}/demos/spectex
share/examples/${PKGNAME}/demos/spectex.c
+share/examples/${PKGNAME}/demos/spriteblast
+share/examples/${PKGNAME}/demos/spriteblast.c
share/examples/${PKGNAME}/demos/stex3d
share/examples/${PKGNAME}/demos/stex3d.c
share/examples/${PKGNAME}/demos/teapot
@@ -219,6 +144,13 @@ share/examples/${PKGNAME}/demos/tunnel2.c
share/examples/${PKGNAME}/demos/tunneldat.h
share/examples/${PKGNAME}/demos/winpos
share/examples/${PKGNAME}/demos/winpos.c
+share/examples/${PKGNAME}/ggi/asc-view.c
+share/examples/${PKGNAME}/ggi/gears.c
+share/examples/${PKGNAME}/ggi/gears2.c
+share/examples/${PKGNAME}/images/CVS/Entries
+share/examples/${PKGNAME}/images/CVS/Repository
+share/examples/${PKGNAME}/images/CVS/Root
+share/examples/${PKGNAME}/images/CVS/Template
share/examples/${PKGNAME}/images/bw.rgb
share/examples/${PKGNAME}/images/girl.rgb
share/examples/${PKGNAME}/images/reflect.rgb
@@ -227,6 +159,134 @@ share/examples/${PKGNAME}/images/tile.rgb
share/examples/${PKGNAME}/images/tree2.rgba
share/examples/${PKGNAME}/images/tree3.rgb
share/examples/${PKGNAME}/images/wrs_logo.rgb
+share/examples/${PKGNAME}/redbook/README
+share/examples/${PKGNAME}/redbook/aaindex
+share/examples/${PKGNAME}/redbook/aaindex.c
+share/examples/${PKGNAME}/redbook/aapoly
+share/examples/${PKGNAME}/redbook/aapoly.c
+share/examples/${PKGNAME}/redbook/aargb
+share/examples/${PKGNAME}/redbook/aargb.c
+share/examples/${PKGNAME}/redbook/accanti
+share/examples/${PKGNAME}/redbook/accanti.c
+share/examples/${PKGNAME}/redbook/accpersp
+share/examples/${PKGNAME}/redbook/accpersp.c
+share/examples/${PKGNAME}/redbook/alpha
+share/examples/${PKGNAME}/redbook/alpha.c
+share/examples/${PKGNAME}/redbook/alpha3D
+share/examples/${PKGNAME}/redbook/alpha3D.c
+share/examples/${PKGNAME}/redbook/anti
+share/examples/${PKGNAME}/redbook/anti.c
+share/examples/${PKGNAME}/redbook/bezcurve
+share/examples/${PKGNAME}/redbook/bezcurve.c
+share/examples/${PKGNAME}/redbook/bezmesh
+share/examples/${PKGNAME}/redbook/bezmesh.c
+share/examples/${PKGNAME}/redbook/checker
+share/examples/${PKGNAME}/redbook/checker.c
+share/examples/${PKGNAME}/redbook/clip
+share/examples/${PKGNAME}/redbook/clip.c
+share/examples/${PKGNAME}/redbook/colormat
+share/examples/${PKGNAME}/redbook/colormat.c
+share/examples/${PKGNAME}/redbook/cube
+share/examples/${PKGNAME}/redbook/cube.c
+share/examples/${PKGNAME}/redbook/depthcue
+share/examples/${PKGNAME}/redbook/depthcue.c
+share/examples/${PKGNAME}/redbook/dof
+share/examples/${PKGNAME}/redbook/dof.c
+share/examples/${PKGNAME}/redbook/double
+share/examples/${PKGNAME}/redbook/double.c
+share/examples/${PKGNAME}/redbook/drawf
+share/examples/${PKGNAME}/redbook/drawf.c
+share/examples/${PKGNAME}/redbook/feedback
+share/examples/${PKGNAME}/redbook/feedback.c
+share/examples/${PKGNAME}/redbook/fog
+share/examples/${PKGNAME}/redbook/fog.c
+share/examples/${PKGNAME}/redbook/fogindex
+share/examples/${PKGNAME}/redbook/fogindex.c
+share/examples/${PKGNAME}/redbook/font
+share/examples/${PKGNAME}/redbook/font.c
+share/examples/${PKGNAME}/redbook/hello
+share/examples/${PKGNAME}/redbook/hello.c
+share/examples/${PKGNAME}/redbook/image
+share/examples/${PKGNAME}/redbook/image.c
+share/examples/${PKGNAME}/redbook/jitter.h
+share/examples/${PKGNAME}/redbook/light
+share/examples/${PKGNAME}/redbook/light.c
+share/examples/${PKGNAME}/redbook/lines
+share/examples/${PKGNAME}/redbook/lines.c
+share/examples/${PKGNAME}/redbook/list
+share/examples/${PKGNAME}/redbook/list.c
+share/examples/${PKGNAME}/redbook/material
+share/examples/${PKGNAME}/redbook/material.c
+share/examples/${PKGNAME}/redbook/mipmap
+share/examples/${PKGNAME}/redbook/mipmap.c
+share/examples/${PKGNAME}/redbook/model
+share/examples/${PKGNAME}/redbook/model.c
+share/examples/${PKGNAME}/redbook/movelight
+share/examples/${PKGNAME}/redbook/movelight.c
+share/examples/${PKGNAME}/redbook/nurbs
+share/examples/${PKGNAME}/redbook/nurbs.c
+share/examples/${PKGNAME}/redbook/pickdepth
+share/examples/${PKGNAME}/redbook/pickdepth.c
+share/examples/${PKGNAME}/redbook/picksquare
+share/examples/${PKGNAME}/redbook/picksquare.c
+share/examples/${PKGNAME}/redbook/plane
+share/examples/${PKGNAME}/redbook/plane.c
+share/examples/${PKGNAME}/redbook/planet
+share/examples/${PKGNAME}/redbook/planet.c
+share/examples/${PKGNAME}/redbook/polyoff
+share/examples/${PKGNAME}/redbook/polyoff.c
+share/examples/${PKGNAME}/redbook/polys
+share/examples/${PKGNAME}/redbook/polys.c
+share/examples/${PKGNAME}/redbook/quadric
+share/examples/${PKGNAME}/redbook/quadric.c
+share/examples/${PKGNAME}/redbook/robot
+share/examples/${PKGNAME}/redbook/robot.c
+share/examples/${PKGNAME}/redbook/sccolorlight
+share/examples/${PKGNAME}/redbook/sccolorlight.c
+share/examples/${PKGNAME}/redbook/scene
+share/examples/${PKGNAME}/redbook/scene.c
+share/examples/${PKGNAME}/redbook/scenebamb
+share/examples/${PKGNAME}/redbook/scenebamb.c
+share/examples/${PKGNAME}/redbook/sceneflat
+share/examples/${PKGNAME}/redbook/sceneflat.c
+share/examples/${PKGNAME}/redbook/select
+share/examples/${PKGNAME}/redbook/select.c
+share/examples/${PKGNAME}/redbook/smooth
+share/examples/${PKGNAME}/redbook/smooth.c
+share/examples/${PKGNAME}/redbook/stencil
+share/examples/${PKGNAME}/redbook/stencil.c
+share/examples/${PKGNAME}/redbook/stroke
+share/examples/${PKGNAME}/redbook/stroke.c
+share/examples/${PKGNAME}/redbook/surface
+share/examples/${PKGNAME}/redbook/surface.c
+share/examples/${PKGNAME}/redbook/teaambient
+share/examples/${PKGNAME}/redbook/teaambient.c
+share/examples/${PKGNAME}/redbook/teapots
+share/examples/${PKGNAME}/redbook/teapots.c
+share/examples/${PKGNAME}/redbook/tess
+share/examples/${PKGNAME}/redbook/tess.c
+share/examples/${PKGNAME}/redbook/tesswind
+share/examples/${PKGNAME}/redbook/tesswind.c
+share/examples/${PKGNAME}/redbook/texbind
+share/examples/${PKGNAME}/redbook/texbind.c
+share/examples/${PKGNAME}/redbook/texgen
+share/examples/${PKGNAME}/redbook/texgen.c
+share/examples/${PKGNAME}/redbook/texprox
+share/examples/${PKGNAME}/redbook/texprox.c
+share/examples/${PKGNAME}/redbook/texsub
+share/examples/${PKGNAME}/redbook/texsub.c
+share/examples/${PKGNAME}/redbook/texturesurf
+share/examples/${PKGNAME}/redbook/texturesurf.c
+share/examples/${PKGNAME}/redbook/torus
+share/examples/${PKGNAME}/redbook/torus.c
+share/examples/${PKGNAME}/redbook/trim
+share/examples/${PKGNAME}/redbook/trim.c
+share/examples/${PKGNAME}/redbook/unproject
+share/examples/${PKGNAME}/redbook/unproject.c
+share/examples/${PKGNAME}/redbook/varray
+share/examples/${PKGNAME}/redbook/varray.c
+share/examples/${PKGNAME}/redbook/wrap
+share/examples/${PKGNAME}/redbook/wrap.c
share/examples/${PKGNAME}/samples/README
share/examples/${PKGNAME}/samples/accum
share/examples/${PKGNAME}/samples/accum.c
@@ -236,7 +296,6 @@ share/examples/${PKGNAME}/samples/bitmap2
share/examples/${PKGNAME}/samples/bitmap2.c
share/examples/${PKGNAME}/samples/blendeq
share/examples/${PKGNAME}/samples/blendeq.c
-share/examples/${PKGNAME}/samples/blendxor
share/examples/${PKGNAME}/samples/blendxor.c
share/examples/${PKGNAME}/samples/copy
share/examples/${PKGNAME}/samples/copy.c
@@ -250,9 +309,9 @@ share/examples/${PKGNAME}/samples/fog
share/examples/${PKGNAME}/samples/fog.c
share/examples/${PKGNAME}/samples/font
share/examples/${PKGNAME}/samples/font.c
-share/examples/${PKGNAME}/samples/loadppm.c
share/examples/${PKGNAME}/samples/line
share/examples/${PKGNAME}/samples/line.c
+share/examples/${PKGNAME}/samples/loadppm.c
share/examples/${PKGNAME}/samples/logo
share/examples/${PKGNAME}/samples/logo.c
share/examples/${PKGNAME}/samples/nurb
@@ -289,8 +348,79 @@ share/examples/${PKGNAME}/samples/tri
share/examples/${PKGNAME}/samples/tri.c
share/examples/${PKGNAME}/samples/wave
share/examples/${PKGNAME}/samples/wave.c
+share/examples/${PKGNAME}/util/README
+share/examples/${PKGNAME}/util/dumpstate.c
+share/examples/${PKGNAME}/util/errcheck.c
+share/examples/${PKGNAME}/util/glstate.c
+share/examples/${PKGNAME}/util/glstate.h
+share/examples/${PKGNAME}/util/glutskel.c
+share/examples/${PKGNAME}/util/idproj.c
+share/examples/${PKGNAME}/util/imagesgi.h
+share/examples/${PKGNAME}/util/mwmborder.c
+share/examples/${PKGNAME}/util/readtex.c
+share/examples/${PKGNAME}/util/readtex.h
+share/examples/${PKGNAME}/util/showbuffer.c
+share/examples/${PKGNAME}/util/showbuffer.h
+share/examples/${PKGNAME}/util/winpos.c
+share/examples/${PKGNAME}/windml/readtex.c
+share/examples/${PKGNAME}/windml/uglaccum.c
+share/examples/${PKGNAME}/windml/uglalldemos.c
+share/examples/${PKGNAME}/windml/uglbounce.c
+share/examples/${PKGNAME}/windml/uglcube.c
+share/examples/${PKGNAME}/windml/ugldrawpix.c
+share/examples/${PKGNAME}/windml/uglflip.c
+share/examples/${PKGNAME}/windml/uglgears.c
+share/examples/${PKGNAME}/windml/uglicotorus.c
+share/examples/${PKGNAME}/windml/uglline.c
+share/examples/${PKGNAME}/windml/uglolympic.c
+share/examples/${PKGNAME}/windml/uglpoint.c
+share/examples/${PKGNAME}/windml/uglstencil.c
+share/examples/${PKGNAME}/windml/uglteapot.c
+share/examples/${PKGNAME}/windml/ugltexcube.c
+share/examples/${PKGNAME}/windml/ugltexcyl.c
+share/examples/${PKGNAME}/windml/wrs_logo.bmp
+share/examples/${PKGNAME}/xdemos/descrip.mms
+share/examples/${PKGNAME}/xdemos/glthreads
+share/examples/${PKGNAME}/xdemos/glthreads.c
+share/examples/${PKGNAME}/xdemos/glxdemo
+share/examples/${PKGNAME}/xdemos/glxdemo.c
+share/examples/${PKGNAME}/xdemos/glxgears
+share/examples/${PKGNAME}/xdemos/glxgears.c
+share/examples/${PKGNAME}/xdemos/glxheads
+share/examples/${PKGNAME}/xdemos/glxheads.c
+share/examples/${PKGNAME}/xdemos/glxinfo
+share/examples/${PKGNAME}/xdemos/glxinfo.c
+share/examples/${PKGNAME}/xdemos/glxpixmap
+share/examples/${PKGNAME}/xdemos/glxpixmap.c
+share/examples/${PKGNAME}/xdemos/glxswapcontrol
+share/examples/${PKGNAME}/xdemos/glxswapcontrol.c
+share/examples/${PKGNAME}/xdemos/manywin
+share/examples/${PKGNAME}/xdemos/manywin.c
+share/examples/${PKGNAME}/xdemos/offset
+share/examples/${PKGNAME}/xdemos/offset.c
+share/examples/${PKGNAME}/xdemos/pbdemo.c
+share/examples/${PKGNAME}/xdemos/pbinfo.c
+share/examples/${PKGNAME}/xdemos/pbutil.c
+share/examples/${PKGNAME}/xdemos/pbutil.h
+share/examples/${PKGNAME}/xdemos/shape.c
+share/examples/${PKGNAME}/xdemos/vgears.c
+share/examples/${PKGNAME}/xdemos/vindex.c
+share/examples/${PKGNAME}/xdemos/vtest.c
+share/examples/${PKGNAME}/xdemos/wincopy
+share/examples/${PKGNAME}/xdemos/wincopy.c
+share/examples/${PKGNAME}/xdemos/xdemo
+share/examples/${PKGNAME}/xdemos/xdemo.c
+share/examples/${PKGNAME}/xdemos/xfont
+share/examples/${PKGNAME}/xdemos/xfont.c
+@dirrm share/examples/${PKGNAME}/xdemos
+@dirrm share/examples/${PKGNAME}/windml
+@dirrm share/examples/${PKGNAME}/util
@dirrm share/examples/${PKGNAME}/samples
+@dirrm share/examples/${PKGNAME}/redbook
+@dirrm share/examples/${PKGNAME}/images/CVS
@dirrm share/examples/${PKGNAME}/images
+@dirrm share/examples/${PKGNAME}/ggi
+@dirrm share/examples/${PKGNAME}/demos/Windows/CVS
+@dirrm share/examples/${PKGNAME}/demos/Windows
@dirrm share/examples/${PKGNAME}/demos
-@dirrm share/examples/${PKGNAME}/book
@dirrm share/examples/${PKGNAME}
diff --git a/graphics/MesaDemos/distinfo b/graphics/MesaDemos/distinfo
index bf2f9e90f29..8762ae1f9f8 100644
--- a/graphics/MesaDemos/distinfo
+++ b/graphics/MesaDemos/distinfo
@@ -1,11 +1,15 @@
-$NetBSD: distinfo,v 1.6 2003/11/28 18:41:03 jschauma Exp $
+$NetBSD: distinfo,v 1.7 2004/01/20 02:48:33 jschauma Exp $
-SHA1 (Mesa-5.0.2/MesaLib-5.0.2.tar.bz2) = a49234ad74d6c67b2727c1dd8a8c8e1ed7f63192
-Size (Mesa-5.0.2/MesaLib-5.0.2.tar.bz2) = 1719544 bytes
-SHA1 (Mesa-5.0.2/MesaDemos-5.0.2.tar.bz2) = 3c6f948023f5f41b8d5bd308076e9d8cfd194115
-Size (Mesa-5.0.2/MesaDemos-5.0.2.tar.bz2) = 901632 bytes
-SHA1 (patch-aa) = 9e278446701ef6cd2b056b3c8f020f0d8befaf7a
-SHA1 (patch-ab) = 8750d7a8c476c85823c0c56bb9b6f8323019a1f0
-SHA1 (patch-ac) = 38da6ec05805eab6c93431e7e977e38b33f83860
-SHA1 (patch-ad) = 807b07b1505735f23dd4148c8c838df08af6333e
-SHA1 (patch-ae) = 58bb48fb84edae72ecfb62682061cf6d723fe100
+SHA1 (Mesa-6.0/MesaLib-6.0.tar.bz2) = 00f0ac27fbc3eddfdbc84de482f16b64b904d60c
+Size (Mesa-6.0/MesaLib-6.0.tar.bz2) = 1487379 bytes
+SHA1 (Mesa-6.0/MesaDemos-6.0.tar.bz2) = f57a76d0b9b4f70197860eda15f5241a02017a91
+Size (Mesa-6.0/MesaDemos-6.0.tar.bz2) = 915060 bytes
+SHA1 (patch-aa) = 4be9b5fadff758d3bcaea22abc5a61e89ccadbe0
+SHA1 (patch-ab) = 0426be52c00f40b9a631813d3cbdf2cee47c39cb
+SHA1 (patch-ac) = 97d7257c14998706f725bc8420bd4b34ee27dba4
+SHA1 (patch-ad) = 41a417d37ad82a99a3b1e7ef4c54f052947a8a1b
+SHA1 (patch-ae) = 1cc774b4c012fa6a53b80968f94cc99780d5733b
+SHA1 (patch-af) = a66af6ebab7569d85693a9fa58b2d8f9b35149c1
+SHA1 (patch-ag) = 1aae03d6dfe080efacd306ac157231e2c72c13ea
+SHA1 (patch-ah) = b1c39f3b5e739dd14340b8b6c680a891e61c54e1
+SHA1 (patch-ai) = 9331e8e9a7f9dd044b10b62319f5eaaaddfe63d0
diff --git a/graphics/MesaDemos/patches/patch-aa b/graphics/MesaDemos/patches/patch-aa
index af8b520242b..c30c973cb4c 100644
--- a/graphics/MesaDemos/patches/patch-aa
+++ b/graphics/MesaDemos/patches/patch-aa
@@ -1,14 +1,13 @@
-$NetBSD: patch-aa,v 1.4 2003/11/28 18:41:03 jschauma Exp $
+$NetBSD: patch-aa,v 1.5 2004/01/20 02:48:33 jschauma Exp $
---- book/Makefile.am.orig 2003-11-07 09:32:07.000000000 -0500
-+++ book/Makefile.am 2003-11-28 12:47:45.000000000 -0500
-@@ -15,8 +15,7 @@
-
- EXTRA_DIST = jitter.h
-
--LDADD = $(GLUT_LIBS) $(top_builddir)/$(GLU_DIR)/libGLU.la \
-- $(top_builddir)/src/libGL.la -lm
-+LDADD = $(GLUT_LIBS) -lGLU -lGL -lm
- #LDFLAGS = -no-install
-
- # execute all programs
+--- progs/demos/lodbias.c.orig 2004-01-19 20:06:16.000000000 -0500
++++ progs/demos/lodbias.c 2004-01-19 20:06:28.000000000 -0500
+@@ -212,7 +212,7 @@
+ }
+ /* resize to 256 x 256 */
+ if (width != 256 || height != 256) {
+- GLubyte *newImage = malloc(256 * 256 * 4);
++ GLubyte *newImage = (GLubyte *)malloc(256 * 256 * 4);
+ gluScaleImage(format, width, height, GL_UNSIGNED_BYTE, image,
+ 256, 256, GL_UNSIGNED_BYTE, newImage);
+ free(image);
diff --git a/graphics/MesaDemos/patches/patch-ab b/graphics/MesaDemos/patches/patch-ab
index dd50836e88e..f6735d9230a 100644
--- a/graphics/MesaDemos/patches/patch-ab
+++ b/graphics/MesaDemos/patches/patch-ab
@@ -1,30 +1,26 @@
-$NetBSD: patch-ab,v 1.5 2003/11/18 16:10:55 jschauma Exp $
+$NetBSD: patch-ab,v 1.6 2004/01/20 02:48:33 jschauma Exp $
---- demos/Makefile.am.orig 2003-11-07 10:57:52.000000000 -0600
-+++ demos/Makefile.am 2003-11-17 21:26:50.000000000 -0600
-@@ -22,6 +22,7 @@
- morph3d \
- multiarb \
- occlude \
-+ osdemo \
- paltex \
- pixeltex \
- pointblast \
-@@ -47,14 +48,14 @@
+--- Make-config.orig 2004-01-15 09:23:54.000000000 -0500
++++ Make-config 2004-01-19 18:29:14.000000000 -0500
+@@ -778,19 +778,14 @@
+ "GLUT_CFLAGS = -fexceptions" \
+ "APP_LIB_DEPS = -lmoto -L/usr/X11/lib -lXmu -lX11 -lm"
- CLEANFILES = test.ppm
-
--LDADD = $(GLUT_LIBS) \
-- $(top_builddir)/$(GLU_DIR)/libGLU.la \
-- $(top_builddir)/src/libGL.la -lm
-+LDADD = $(GLUT_LIBS) -lGLU -lGL -lm
-
- #LDFLAGS = -no-install
-
- EXTRA_DIST = isosurf.dat particles.cxx particles.h tunneldat.h
-
-+osdemo_LDADD = $(LDADD) -lOSMesa
-+
- # use double buffering if possible
- BUFFER = -db
+-netbsd:
++pkgsrc:
+ $(MAKE) $(MFLAGS) -f Makefile.X11 targets \
+ "GL_LIB = libGL.so" \
+ "GLU_LIB = libGLU.so" \
+ "GLUT_LIB = libglut.so" \
+ "GLW_LIB = libGLw.so" \
+ "OSMESA_LIB = libOSMesa.so" \
+- "CC = gcc" \
+- "CXX = g++" \
+- "CFLAGS = -O2 -fPIC -DUSE_XSHM -I/usr/X11R6/include -DHZ=100" \
+- "CXXFLAGS = -O2 -fPIC" \
+- "GLUT_CFLAGS = -fexceptions" \
+- "APP_LIB_DEPS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 -lm"
++ "APP_LIB_DEPS = -L${PREFIX}/lib -L${X11PREFIX}/lib -lXext -lXmu -lXi -lX11 -lm"
+ openbsd:
+ $(MAKE) $(MFLAGS) -f Makefile.X11 targets \
diff --git a/graphics/MesaDemos/patches/patch-ac b/graphics/MesaDemos/patches/patch-ac
index e68d5551e88..c512585aa9a 100644
--- a/graphics/MesaDemos/patches/patch-ac
+++ b/graphics/MesaDemos/patches/patch-ac
@@ -1,14 +1,22 @@
-$NetBSD: patch-ac,v 1.4 2003/11/18 16:10:55 jschauma Exp $
+$NetBSD: patch-ac,v 1.5 2004/01/20 02:48:33 jschauma Exp $
---- samples/Makefile.am.orig 2003-11-07 08:32:08.000000000 -0600
-+++ samples/Makefile.am 2003-11-17 20:51:29.000000000 -0600
-@@ -12,8 +12,7 @@
-
- EXTRA_DIST = tkmap.c loadppm.c
-
--LDADD = $(GLUT_LIBS) $(top_builddir)/$(GLU_DIR)/libGLU.la \
-- $(top_builddir)/src/libGL.la -lm
-+LDADD = $(GLUT_LIBS) -lGLU -lGL -lm
- #LDFLAGS = -no-install
-
- # default image
+--- Makefile.orig 2004-01-19 18:31:20.000000000 -0500
++++ Makefile 2004-01-19 18:31:54.000000000 -0500
+@@ -79,7 +79,7 @@
+ @echo " make linux-icc for Linux with the Intel C/C++ compiler"
+ @echo " make lynxos for LynxOS systems with GCC"
+ @echo " make mklinux for Linux on Power Macintosh"
+- @echo " make netbsd for NetBSD 1.0 systems with GCC"
++ @echo " make pkgsrc for pkgsrc systems"
+ @echo " make openbsd for OpenBSD systems"
+ @echo " make openstep for OpenStep/MacOSX Server systems"
+ @echo " make osf1 for DEC Alpha systems with OSF/1"
+@@ -115,7 +115,7 @@
+ linux-alpha-static linux-alpha \
+ linux-ppc-static linux-ppc \
+ linux-sparc linux-sparc5 linux-sparc-ultra \
+-mklinux netbsd osf1 openbsd qnx \
++mklinux pkgsrc osf1 openbsd qnx \
+ solaris-x86 solaris-x86-gcc \
+ sunos4 sunos4-sl sunos4-gcc sunos4-gcc-sl sunos4-gcc-x11r6-sl \
+ sunos5 sunos5-smp sunos5-gcc sunos5-gcc-debug \
diff --git a/graphics/MesaDemos/patches/patch-ad b/graphics/MesaDemos/patches/patch-ad
index 41d0161d4c5..92db20ec87b 100644
--- a/graphics/MesaDemos/patches/patch-ad
+++ b/graphics/MesaDemos/patches/patch-ad
@@ -1,13 +1,13 @@
-$NetBSD: patch-ad,v 1.1 2003/11/18 16:10:55 jschauma Exp $
+$NetBSD: patch-ad,v 1.2 2004/01/20 02:48:33 jschauma Exp $
---- configure.orig 2003-11-08 19:10:36.000000000 -0500
-+++ configure 2003-11-08 19:10:53.000000000 -0500
-@@ -7121,7 +7121,7 @@
- if test "x$enable_optim" = xyes; then
- if test "x$enable_debug" = xno && test "x$enable_prof" = xno; then
- if test "x$GCC" = xyes; then
-- CFLAGS="$CFLAGS -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing"
-+ CFLAGS="$CFLAGS -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fno-strict-aliasing"
- case "$host" in
- i*86-*-*) CFLAGS="$CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";;
- esac
+--- progs/demos/osdemo.c.orig 2004-01-19 20:07:26.000000000 -0500
++++ progs/demos/osdemo.c 2004-01-19 20:08:09.000000000 -0500
+@@ -301,7 +301,7 @@
+
+ if (filename != NULL) {
+ #ifdef SAVE_TARGA
+- write_targa(filename, buffer, WIDTH, HEIGHT);
++ write_targa(filename, (const GLubyte*)buffer, WIDTH, HEIGHT);
+ #else
+ write_ppm(filename, buffer, WIDTH, HEIGHT);
+ #endif
diff --git a/graphics/MesaDemos/patches/patch-ae b/graphics/MesaDemos/patches/patch-ae
index db53c3b642d..41328f9db82 100644
--- a/graphics/MesaDemos/patches/patch-ae
+++ b/graphics/MesaDemos/patches/patch-ae
@@ -1,17 +1,35 @@
-$NetBSD: patch-ae,v 1.1 2003/11/18 16:10:55 jschauma Exp $
+$NetBSD: patch-ae,v 1.2 2004/01/20 02:48:33 jschauma Exp $
---- src/GGI/Makefile.am.orig 2003-11-13 21:47:55.000000000 -0500
-+++ src/GGI/Makefile.am 2003-11-13 21:48:04.000000000 -0500
-@@ -7,10 +7,10 @@
- ggimesaconfdatadir = ${sysconfdir}/ggi
- ggimesaconfdata_DATA = ggimesa.conf
+--- progs/demos/Makefile.X11.orig 2003-10-03 10:03:15.000000000 -0400
++++ progs/demos/Makefile.X11 2004-01-19 20:47:16.000000000 -0500
+@@ -7,7 +7,7 @@
+ INCDIR = $(TOP)/include
+ LIBDIR = $(TOP)/lib
--INCLUDES += -I$(top_srcdir)/include -I$(top_srcdir)/src/GGI/include \
-+INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/GGI/include \
- -I$(top_srcdir)/src $(GGI_CFLAGS)
+-LIBS = -L$(LIBDIR) $(APP_LIB_DEPS)
++LIBS+= -L$(LIBDIR) $(APP_LIB_DEPS) -lGL -lGLU -lglut
--DEFS += -DGGIMESACONFFILE=\"$(ggimesaconfdatadir)/ggimesa.conf\"
-+DEFS = -DGGIMESACONFFILE=\"$(ggimesaconfdatadir)/ggimesa.conf\"
+ OSMESA_LIBS = -L$(LIBDIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS)
- if HAVE_GGI
- # Build a libtool convenience library.
+@@ -36,7 +36,6 @@
+ multiarb \
+ occlude \
+ osdemo \
+- paltex \
+ pixeltex \
+ pointblast \
+ ray \
+@@ -68,11 +67,11 @@
+
+ # make executable from .c file:
+ .c: $(LIB_DEP)
+- $(CC) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
++ $(CXX) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
+
+ # special case: need the -lOSMesa library:
+ osdemo: osdemo.c
+- $(CC) -I$(INCDIR) $(CFLAGS) osdemo.c $(OSMESA_LIBS) -o $@
++ $(CXX) -I$(INCDIR) $(CFLAGS) osdemo.c $(OSMESA_LIBS) -o $@
+
+
+ ##### TARGETS #####
diff --git a/graphics/MesaDemos/patches/patch-af b/graphics/MesaDemos/patches/patch-af
new file mode 100644
index 00000000000..ef9ae663b9c
--- /dev/null
+++ b/graphics/MesaDemos/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2004/01/20 02:48:33 jschauma Exp $
+
+--- progs/xdemos/glxswapcontrol.c.orig 2004-01-19 20:16:07.000000000 -0500
++++ progs/xdemos/glxswapcontrol.c 2004-01-19 20:16:26.000000000 -0500
+@@ -645,7 +645,7 @@
+ * other in the string.
+ */
+
+- string_tab[ idx ] = malloc( sizeof( char ) * (i + 1) );
++ string_tab[ idx ] = (char *)malloc( sizeof( char ) * (i + 1) );
+ if ( string_tab[ idx ] == NULL ) {
+ return;
+ }
diff --git a/graphics/MesaDemos/patches/patch-ag b/graphics/MesaDemos/patches/patch-ag
new file mode 100644
index 00000000000..9a057842f88
--- /dev/null
+++ b/graphics/MesaDemos/patches/patch-ag
@@ -0,0 +1,53 @@
+$NetBSD: patch-ag,v 1.1 2004/01/20 02:48:33 jschauma Exp $
+
+--- progs/xdemos/Makefile.X11.orig 2003-10-03 10:03:16.000000000 -0400
++++ progs/xdemos/Makefile.X11 2004-01-19 20:48:04.000000000 -0500
+@@ -7,7 +7,7 @@
+ INCDIR = $(TOP)/include
+ LIBDIR = $(TOP)/lib
+
+-LIBS = -L$(LIBDIR) $(APP_LIB_DEPS)
++LIBS+= -L$(LIBDIR) $(APP_LIB_DEPS) -lGL -lGLU -lglut
+
+ LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB)
+
+@@ -20,8 +20,6 @@
+ glxswapcontrol \
+ manywin \
+ offset \
+- pbinfo \
+- pbdemo \
+ wincopy \
+ xdemo \
+ xfont
+@@ -34,24 +32,24 @@
+ .SUFFIXES: .c
+
+ .c: $(LIB_DEP)
+- $(CC) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
++ $(CXX) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
+
+
+ # special cases
+ pbinfo: pbinfo.o pbutil.o
+- $(CC) pbinfo.o pbutil.o $(LIBS) -o $@
++ $(CXX) pbinfo.o pbutil.o $(LIBS) -o $@
+
+ pbdemo: pbdemo.o pbutil.o
+- $(CC) pbdemo.o pbutil.o $(LIBS) -o $@
++ $(CXX) pbdemo.o pbutil.o $(LIBS) -o $@
+
+ pbinfo.o: pbinfo.c pbutil.h
+- $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbinfo.c
++ $(CXX) -c -I. -I$(INCDIR) $(CFLAGS) pbinfo.c
+
+ pbdemo.o: pbdemo.c pbutil.h
+- $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbdemo.c
++ $(CXX) -c -I. -I$(INCDIR) $(CFLAGS) pbdemo.c
+
+ pbutil.o: pbutil.c pbutil.h
+- $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbutil.c
++ $(CXX) -c -I. -I$(INCDIR) $(CFLAGS) pbutil.c
+
+
+
diff --git a/graphics/MesaDemos/patches/patch-ah b/graphics/MesaDemos/patches/patch-ah
new file mode 100644
index 00000000000..4aad2cfc173
--- /dev/null
+++ b/graphics/MesaDemos/patches/patch-ah
@@ -0,0 +1,22 @@
+$NetBSD: patch-ah,v 1.1 2004/01/20 02:48:33 jschauma Exp $
+
+--- progs/redbook/Makefile.X11.orig 2003-10-03 10:03:15.000000000 -0400
++++ progs/redbook/Makefile.X11 2004-01-19 20:47:35.000000000 -0500
+@@ -7,7 +7,7 @@
+ INCDIR = $(TOP)/include
+ LIBDIR = $(TOP)/lib
+
+-LIBS = -L$(LIBDIR) $(APP_LIB_DEPS)
++LIBS+= -L$(LIBDIR) $(APP_LIB_DEPS) -lGL -lGLU -lglut
+
+ LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
+
+@@ -28,7 +28,7 @@
+ .SUFFIXES: .c
+
+ .c: $(LIB_DEP)
+- $(CC) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
++ $(CXX) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
+
+
+
diff --git a/graphics/MesaDemos/patches/patch-ai b/graphics/MesaDemos/patches/patch-ai
new file mode 100644
index 00000000000..905e45727c9
--- /dev/null
+++ b/graphics/MesaDemos/patches/patch-ai
@@ -0,0 +1,27 @@
+$NetBSD: patch-ai,v 1.1 2004/01/20 02:48:33 jschauma Exp $
+
+--- progs/samples/Makefile.X11.orig 2003-10-03 10:03:16.000000000 -0400
++++ progs/samples/Makefile.X11 2004-01-19 20:53:56.000000000 -0500
+@@ -7,11 +7,11 @@
+ INCDIR = $(TOP)/include
+ LIBDIR = $(TOP)/lib
+
+-LIBS = -L$(LIBDIR) $(APP_LIB_DEPS)
++LIBS+= -L$(LIBDIR) $(APP_LIB_DEPS) -lGL -lGLU -lglut
+
+ LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
+
+-PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \
++PROGS = accum bitmap1 bitmap2 blendeq copy cursor depth eval fog \
+ font line logo nurb oglinfo olympic overlay point prim quad select \
+ shape sphere star stencil stretch texture tri wave
+
+@@ -22,7 +22,7 @@
+ .SUFFIXES: .c
+
+ .c: $(LIB_DEP)
+- $(CC) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
++ $(CXX) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
+
+
+
diff --git a/graphics/MesaLib/Makefile b/graphics/MesaLib/Makefile
index 556ddae69d5..d1cb9c3c4d5 100644
--- a/graphics/MesaLib/Makefile
+++ b/graphics/MesaLib/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.27 2004/01/05 11:47:33 jlam Exp $
+# $NetBSD: Makefile,v 1.28 2004/01/20 02:48:33 jschauma Exp $
PKGNAME= MesaLib-${MESA_VERSION}
-PKGREVISION= 2
WRKSRC= ${WRKDIR}/${DISTNAME:S/Lib//}
MAINTAINER= rh@NetBSD.org
COMMENT= Graphics library similar to SGI's OpenGL
@@ -12,12 +11,11 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= yes
USE_X11= yes
-USE_PKGINSTALL= yes
-CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
-CONFIGURE_ARGS+= --without-glut
-CONF_FILES= ${PREFIX}/share/examples/mesa/mesa.conf \
- ${PKG_SYSCONFDIR}/mesa.conf
-BUILD_DIRS= ${WRKSRC}/src
+#USE_PKGINSTALL= yes
+#CONF_FILES= ${PREFIX}/share/examples/mesa/mesa.conf \
+# ${PKG_SYSCONFDIR}/mesa.conf
+
+INSTLIBS= libGL.so.1.5 libGLw.so.1.0 libOSMesa.so.6.0
.include "../../mk/bsd.prefs.mk"
@@ -26,7 +24,10 @@ BUILD_DIRS= ${WRKSRC}/src
CONFIGURE_ARGS+= --disable-sparc
.endif
-post-install:
+pre-build:
+ ${RM} -fr ${WRKSRC}/src/glu
+
+do-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/GL
cd ${WRKSRC}/include/GL; for hdr in \
gl.h gl_mangle.h glext.h glx.h glxext.h glx_mangle.h \
diff --git a/graphics/MesaLib/PLIST b/graphics/MesaLib/PLIST
index 71fb5e6a317..0ca51f1cf26 100644
--- a/graphics/MesaLib/PLIST
+++ b/graphics/MesaLib/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2003/11/18 16:10:55 jschauma Exp $
+@comment $NetBSD: PLIST,v 1.12 2004/01/20 02:48:33 jschauma Exp $
include/GL/gl.h
include/GL/gl_mangle.h
include/GL/glext.h
@@ -9,14 +9,16 @@ include/GL/osmesa.h
include/GL/xmesa.h
include/GL/xmesa_x.h
include/GL/xmesa_xf86.h
-lib/libGL.a
-lib/libGL.la
+lib/libGL_pic.a
lib/libGL.so
-lib/libGL.so.5
-lib/libGL.so.5.502
-lib/libOSMesa.a
-lib/libOSMesa.la
+lib/libGL.so.1
+lib/libGL.so.1.5
+lib/libGLw_pic.a
+lib/libGLw.so
+lib/libGLw.so.1
+lib/libGLw.so.1.0
+lib/libOSMesa_pic.a
lib/libOSMesa.so
-lib/libOSMesa.so.4
-lib/libOSMesa.so.4.502
+lib/libOSMesa.so.6
+lib/libOSMesa.so.6.0
@unexec ${RMDIR} %D/include/GL >/dev/null 2>&1 || ${TRUE}
diff --git a/graphics/MesaLib/distinfo b/graphics/MesaLib/distinfo
index d7331859abb..d446ac2fef1 100644
--- a/graphics/MesaLib/distinfo
+++ b/graphics/MesaLib/distinfo
@@ -1,8 +1,7 @@
-$NetBSD: distinfo,v 1.15 2003/11/18 16:10:55 jschauma Exp $
+$NetBSD: distinfo,v 1.16 2004/01/20 02:48:33 jschauma Exp $
-SHA1 (Mesa-5.0.2/MesaLib-5.0.2.tar.bz2) = a49234ad74d6c67b2727c1dd8a8c8e1ed7f63192
-Size (Mesa-5.0.2/MesaLib-5.0.2.tar.bz2) = 1719544 bytes
-SHA1 (patch-aa) = 7fa63dca0edfc41812b5432cbabd861ec52cec33
-SHA1 (patch-ac) = 723c70827840465f3b7f07e0852107ddcdc0c0c1
-SHA1 (patch-ad) = 807b07b1505735f23dd4148c8c838df08af6333e
-SHA1 (patch-ae) = 58bb48fb84edae72ecfb62682061cf6d723fe100
+SHA1 (Mesa-6.0/MesaLib-6.0.tar.bz2) = 00f0ac27fbc3eddfdbc84de482f16b64b904d60c
+Size (Mesa-6.0/MesaLib-6.0.tar.bz2) = 1487379 bytes
+SHA1 (patch-aa) = fb0c20f46b1a060d559d7157c991ab1d10aac28a
+SHA1 (patch-ab) = 0426be52c00f40b9a631813d3cbdf2cee47c39cb
+SHA1 (patch-ac) = 97d7257c14998706f725bc8420bd4b34ee27dba4
diff --git a/graphics/MesaLib/patches/patch-aa b/graphics/MesaLib/patches/patch-aa
index 7474cf7a9e9..573eed573af 100644
--- a/graphics/MesaLib/patches/patch-aa
+++ b/graphics/MesaLib/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.5 2003/03/09 19:04:53 jschauma Exp $
+$NetBSD: patch-aa,v 1.6 2004/01/20 02:48:33 jschauma Exp $
---- src/X86/assyntax.h.orig Tue Nov 19 15:17:48 2002
-+++ src/X86/assyntax.h Tue Nov 19 15:18:34 2002
-@@ -965,7 +965,8 @@
+--- ./src/mesa/x86/assyntax.h.orig 2004-01-19 15:28:07.000000000 -0500
++++ ./src/mesa/x86/assyntax.h 2004-01-19 15:28:36.000000000 -0500
+@@ -967,7 +967,8 @@
#if defined(Lynx) || (defined(SYSV) || defined(SVR4)) \
|| (defined(__linux__) || defined(__OS2ELF__)) && defined(__ELF__) \
diff --git a/graphics/MesaLib/patches/patch-ab b/graphics/MesaLib/patches/patch-ab
new file mode 100644
index 00000000000..c7b7d52f4f6
--- /dev/null
+++ b/graphics/MesaLib/patches/patch-ab
@@ -0,0 +1,26 @@
+$NetBSD: patch-ab,v 1.9 2004/01/20 02:48:33 jschauma Exp $
+
+--- Make-config.orig 2004-01-15 09:23:54.000000000 -0500
++++ Make-config 2004-01-19 18:29:14.000000000 -0500
+@@ -778,19 +778,14 @@
+ "GLUT_CFLAGS = -fexceptions" \
+ "APP_LIB_DEPS = -lmoto -L/usr/X11/lib -lXmu -lX11 -lm"
+
+-netbsd:
++pkgsrc:
+ $(MAKE) $(MFLAGS) -f Makefile.X11 targets \
+ "GL_LIB = libGL.so" \
+ "GLU_LIB = libGLU.so" \
+ "GLUT_LIB = libglut.so" \
+ "GLW_LIB = libGLw.so" \
+ "OSMESA_LIB = libOSMesa.so" \
+- "CC = gcc" \
+- "CXX = g++" \
+- "CFLAGS = -O2 -fPIC -DUSE_XSHM -I/usr/X11R6/include -DHZ=100" \
+- "CXXFLAGS = -O2 -fPIC" \
+- "GLUT_CFLAGS = -fexceptions" \
+- "APP_LIB_DEPS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 -lm"
++ "APP_LIB_DEPS = -L${PREFIX}/lib -L${X11PREFIX}/lib -lXext -lXmu -lXi -lX11 -lm"
+
+ openbsd:
+ $(MAKE) $(MFLAGS) -f Makefile.X11 targets \
diff --git a/graphics/MesaLib/patches/patch-ac b/graphics/MesaLib/patches/patch-ac
index 10b2f43ba88..f3a2093ebdb 100644
--- a/graphics/MesaLib/patches/patch-ac
+++ b/graphics/MesaLib/patches/patch-ac
@@ -1,13 +1,22 @@
-$NetBSD: patch-ac,v 1.3 2003/11/18 16:10:56 jschauma Exp $
+$NetBSD: patch-ac,v 1.4 2004/01/20 02:48:33 jschauma Exp $
---- src/Makefile.in.orig 2003-11-07 11:58:20.000000000 -0500
-+++ src/Makefile.in 2003-11-13 21:45:41.000000000 -0500
-@@ -187,7 +187,7 @@
- program_transform_name = @program_transform_name@
- sbindir = @sbindir@
- sharedstatedir = @sharedstatedir@
--sysconfdir = @sysconfdir@
-+sysconfdir = @datadir@/examples/mesa
- target_alias = @target_alias@
- use_si_glu = @use_si_glu@
-
+--- Makefile.orig 2004-01-19 18:31:20.000000000 -0500
++++ Makefile 2004-01-19 18:31:54.000000000 -0500
+@@ -79,7 +79,7 @@
+ @echo " make linux-icc for Linux with the Intel C/C++ compiler"
+ @echo " make lynxos for LynxOS systems with GCC"
+ @echo " make mklinux for Linux on Power Macintosh"
+- @echo " make netbsd for NetBSD 1.0 systems with GCC"
++ @echo " make pkgsrc for pkgsrc systems"
+ @echo " make openbsd for OpenBSD systems"
+ @echo " make openstep for OpenStep/MacOSX Server systems"
+ @echo " make osf1 for DEC Alpha systems with OSF/1"
+@@ -115,7 +115,7 @@
+ linux-alpha-static linux-alpha \
+ linux-ppc-static linux-ppc \
+ linux-sparc linux-sparc5 linux-sparc-ultra \
+-mklinux netbsd osf1 openbsd qnx \
++mklinux pkgsrc osf1 openbsd qnx \
+ solaris-x86 solaris-x86-gcc \
+ sunos4 sunos4-sl sunos4-gcc sunos4-gcc-sl sunos4-gcc-x11r6-sl \
+ sunos5 sunos5-smp sunos5-gcc sunos5-gcc-debug \
diff --git a/graphics/MesaLib/patches/patch-ad b/graphics/MesaLib/patches/patch-ad
deleted file mode 100644
index 684eea5f205..00000000000
--- a/graphics/MesaLib/patches/patch-ad
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2003/11/09 02:23:18 jschauma Exp $
-
---- configure.orig 2003-11-08 19:10:36.000000000 -0500
-+++ configure 2003-11-08 19:10:53.000000000 -0500
-@@ -7121,7 +7121,7 @@
- if test "x$enable_optim" = xyes; then
- if test "x$enable_debug" = xno && test "x$enable_prof" = xno; then
- if test "x$GCC" = xyes; then
-- CFLAGS="$CFLAGS -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing"
-+ CFLAGS="$CFLAGS -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fno-strict-aliasing"
- case "$host" in
- i*86-*-*) CFLAGS="$CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";;
- esac
diff --git a/graphics/MesaLib/patches/patch-ae b/graphics/MesaLib/patches/patch-ae
deleted file mode 100644
index d5f41da33a8..00000000000
--- a/graphics/MesaLib/patches/patch-ae
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-ae,v 1.1 2003/11/18 16:10:56 jschauma Exp $
-
---- src/GGI/Makefile.am.orig 2003-11-13 21:47:55.000000000 -0500
-+++ src/GGI/Makefile.am 2003-11-13 21:48:04.000000000 -0500
-@@ -7,10 +7,10 @@
- ggimesaconfdatadir = ${sysconfdir}/ggi
- ggimesaconfdata_DATA = ggimesa.conf
-
--INCLUDES += -I$(top_srcdir)/include -I$(top_srcdir)/src/GGI/include \
-+INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/GGI/include \
- -I$(top_srcdir)/src $(GGI_CFLAGS)
-
--DEFS += -DGGIMESACONFFILE=\"$(ggimesaconfdatadir)/ggimesa.conf\"
-+DEFS = -DGGIMESACONFFILE=\"$(ggimesaconfdatadir)/ggimesa.conf\"
-
- if HAVE_GGI
- # Build a libtool convenience library.
diff --git a/graphics/glu/Makefile b/graphics/glu/Makefile
index f9553b1967e..96fdb8850cf 100644
--- a/graphics/glu/Makefile
+++ b/graphics/glu/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.23 2004/01/05 11:47:33 jlam Exp $
+# $NetBSD: Makefile,v 1.24 2004/01/20 02:48:33 jschauma Exp $
PKGNAME= ${DISTNAME:C/MesaLib/glu/}
-PKGREVISION= 3
WRKSRC= ${WRKDIR}/${DISTNAME:C/Lib//}
MAINTAINER= rh@NetBSD.org
COMMENT= GLU polygon tesselation facility for Mesa
@@ -15,11 +14,14 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= yes
USE_X11= yes
-BUILD_DIRS= ${WRKSRC}/si-glu
+INSTLIBS= libGLU.so.1.3
.include "../../mk/bsd.prefs.mk"
-post-install:
+pre-build:
+ ${RM} -fr ${WRKSRC}/src/mesa ${WRKSRC}/src/glw
+
+do-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/GL
cd ${WRKSRC}/include/GL; for hdr in \
glu.h glu_mangle.h; \
diff --git a/graphics/glu/PLIST b/graphics/glu/PLIST
index 407d185715d..ddefdf21819 100644
--- a/graphics/glu/PLIST
+++ b/graphics/glu/PLIST
@@ -1,9 +1,8 @@
-@comment $NetBSD: PLIST,v 1.10 2004/01/05 11:47:33 jlam Exp $
+@comment $NetBSD: PLIST,v 1.11 2004/01/20 02:48:33 jschauma Exp $
include/GL/glu.h
include/GL/glu_mangle.h
-lib/libGLU.a
-lib/libGLU.la
+lib/libGLU_pic.a
lib/libGLU.so
-lib/libGLU.so.4
-lib/libGLU.so.4.502
+lib/libGLU.so.1
+lib/libGLU.so.1.3
@unexec ${RMDIR} %D/include/GL >/dev/null 2>&1 || ${TRUE}
diff --git a/graphics/glu/buildlink2.mk b/graphics/glu/buildlink2.mk
index d7cb0b67c1d..c3f282b41d2 100644
--- a/graphics/glu/buildlink2.mk
+++ b/graphics/glu/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.13 2003/11/30 22:57:40 jschauma Exp $
+# $NetBSD: buildlink2.mk,v 1.14 2004/01/20 02:48:33 jschauma Exp $
.if !defined(GLU_BUILDLINK2_MK)
GLU_BUILDLINK2_MK= # defined
@@ -6,7 +6,7 @@ GLU_BUILDLINK2_MK= # defined
.include "../../mk/bsd.prefs.mk"
BUILDLINK_PACKAGES+= glu
-BUILDLINK_DEPENDS.glu?= glu>=${MESA_VERSION}nb3
+BUILDLINK_DEPENDS.glu?= glu>=${MESA_VERSION}
BUILDLINK_PKGSRCDIR.glu?= ../../graphics/glu
EVAL_PREFIX+= BUILDLINK_PREFIX.glu=glu
BUILDLINK_PREFIX.glu_DEFAULT= ${LOCALBASE}
diff --git a/graphics/glu/distinfo b/graphics/glu/distinfo
deleted file mode 100644
index ad06805b95b..00000000000
--- a/graphics/glu/distinfo
+++ /dev/null
@@ -1,6 +0,0 @@
-$NetBSD: distinfo,v 1.14 2003/11/18 16:10:56 jschauma Exp $
-
-SHA1 (Mesa-5.0.2/MesaLib-5.0.2.tar.bz2) = a49234ad74d6c67b2727c1dd8a8c8e1ed7f63192
-Size (Mesa-5.0.2/MesaLib-5.0.2.tar.bz2) = 1719544 bytes
-SHA1 (patch-aa) = 807b07b1505735f23dd4148c8c838df08af6333e
-SHA1 (patch-ae) = 58bb48fb84edae72ecfb62682061cf6d723fe100
diff --git a/graphics/glut/Makefile b/graphics/glut/Makefile
index 648e7378da7..6788c6fee34 100644
--- a/graphics/glut/Makefile
+++ b/graphics/glut/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.24 2004/01/05 11:47:33 jlam Exp $
+# $NetBSD: Makefile,v 1.25 2004/01/20 02:48:33 jschauma Exp $
PKGNAME= ${DISTNAME:S/MesaLib/glut/}
-PKGREVISION= 3
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
DISTFILES+= ${DISTNAME:S/MesaLib/MesaDemos/}${EXTRACT_SUFX}
WRKSRC= ${WRKDIR}/${DISTNAME:S/Lib//}
@@ -17,12 +16,15 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= yes
USE_X11= yes
-CONFIGURE_DIRS= ${WRKSRC}
-BUILD_DIRS= ${WRKSRC}/src-glut
USE_LIBTOOL= yes
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+INSTLIBS= libglut.so.3.7
-post-install:
+pre-build:
+ ${RM} -fr ${WRKSRC}/src/mesa ${WRKSRC}/src/glw \
+ ${WRKSRC}/src/glu ${WRKSRC}/progs
+
+do-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/GL
cd ${WRKSRC}/include/GL; for hdr in \
glut.h glutf90.h; \
diff --git a/graphics/glut/PLIST b/graphics/glut/PLIST
index a2c32125aa4..5ecb6ba2ee4 100644
--- a/graphics/glut/PLIST
+++ b/graphics/glut/PLIST
@@ -1,9 +1,8 @@
-@comment $NetBSD: PLIST,v 1.8 2003/08/26 01:43:50 jschauma Exp $
+@comment $NetBSD: PLIST,v 1.9 2004/01/20 02:48:33 jschauma Exp $
include/GL/glut.h
include/GL/glutf90.h
lib/libglut.so
-lib/libglut.so.10
-lib/libglut.so.10.1
-lib/libglut.a
-lib/libglut.la
+lib/libglut.so.3
+lib/libglut.so.3.7
+lib/libglut_pic.a
@unexec ${RMDIR} %D/include/GL >/dev/null 2>&1 || ${TRUE}
diff --git a/graphics/glut/distinfo b/graphics/glut/distinfo
deleted file mode 100644
index 347c94fadd3..00000000000
--- a/graphics/glut/distinfo
+++ /dev/null
@@ -1,10 +0,0 @@
-$NetBSD: distinfo,v 1.17 2003/11/18 16:10:56 jschauma Exp $
-
-SHA1 (Mesa-5.0.2/MesaLib-5.0.2.tar.bz2) = a49234ad74d6c67b2727c1dd8a8c8e1ed7f63192
-Size (Mesa-5.0.2/MesaLib-5.0.2.tar.bz2) = 1719544 bytes
-SHA1 (Mesa-5.0.2/MesaDemos-5.0.2.tar.bz2) = 3c6f948023f5f41b8d5bd308076e9d8cfd194115
-Size (Mesa-5.0.2/MesaDemos-5.0.2.tar.bz2) = 901632 bytes
-SHA1 (patch-aa) = d7a7dab7da7068c814a28b996bb3af6c24b48801
-SHA1 (patch-ab) = 807b07b1505735f23dd4148c8c838df08af6333e
-SHA1 (patch-ad) = 4fac0779bb50f90b3f9bf2c0a73d7ff485a3db9e
-SHA1 (patch-ae) = 58bb48fb84edae72ecfb62682061cf6d723fe100