summaryrefslogtreecommitdiff
path: root/graphics/glu/Makefile
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2003-03-09 19:04:52 +0000
committerjschauma <jschauma@pkgsrc.org>2003-03-09 19:04:52 +0000
commit12c7eda41d630e275513393f9feb5613e4f4f792 (patch)
treeee5c914c7d457e01b0bd94e6f702794c79bbc86e /graphics/glu/Makefile
parent5f3508ddf87806beb2939b4b79a6b4f97410d28e (diff)
downloadpkgsrc-12c7eda41d630e275513393f9feb5613e4f4f792.tar.gz
Update Mesa and friends to version 5.0, using patches provided in PR pkg/19302.
At the same time, move Mesa and friends to LOCALBASE rather than X11BASE, so that they can be installed regardless of XF version. Introduce MESA_REQD variable that can be set to 5.0, thus allowing systems with XF4 to indicate that the provided version is not good enough. All packages using Mesa, MesaLib, glu or glut will get a PKGREVISION bump over the next few days.
Diffstat (limited to 'graphics/glu/Makefile')
-rw-r--r--graphics/glu/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/graphics/glu/Makefile b/graphics/glu/Makefile
index aa2b38bfdc6..7cc104cc2c8 100644
--- a/graphics/glu/Makefile
+++ b/graphics/glu/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2002/12/07 02:38:56 schmonz Exp $
+# $NetBSD: Makefile,v 1.16 2003/03/09 19:04:54 jschauma Exp $
PKGNAME= ${DISTNAME:C/MesaLib/glu/}
WRKSRC= ${WRKDIR}/${DISTNAME:C/Lib//}
@@ -16,6 +16,9 @@ BUILD_DIRS= ${WRKSRC}/src-glu
.include "../../mk/bsd.prefs.mk"
+# XXX should be >= 3.4.2
+.if empty(MESA_REQD:M5.[0-9]*)
+
# Check if we got libGLU distributed with XFree86 4.x.
.if exists(${X11BASE}/include/GL/glu.h) && \
exists(${X11BASE}/lib/X11/config/X11.tmpl)
@@ -28,6 +31,8 @@ _IS_BUILTIN_GLU= 0
PKG_SKIP_REASON= "${PKGNAME} is part of your X11 distribution"
.endif
+.endif # MESA_REQD
+
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/GL
cd ${WRKSRC}/include/GL; for hdr in \
@@ -38,3 +43,7 @@ post-install:
.include "../../graphics/MesaLib/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
+
+# must be below bsd.pkg.mk to overwrite values
+PREFIX= ${LOCALBASE}
+X11PREFIX= ${LOCALBASE}