summaryrefslogtreecommitdiff
path: root/graphics/MesaLib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/MesaLib/Makefile')
-rw-r--r--graphics/MesaLib/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/graphics/MesaLib/Makefile b/graphics/MesaLib/Makefile
index fb78d52cbed..21f114b0c7d 100644
--- a/graphics/MesaLib/Makefile
+++ b/graphics/MesaLib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2002/12/07 02:38:56 schmonz Exp $
+# $NetBSD: Makefile,v 1.15 2003/03/09 19:04:53 jschauma Exp $
PKGNAME= MesaLib-${MESA_VERSION}
WRKSRC= ${WRKDIR}/${DISTNAME:S/Lib//}
@@ -14,6 +14,10 @@ BUILD_DIRS= ${WRKSRC}/src
.include "../../mk/bsd.prefs.mk"
+# XXX should be >= 3.4.2
+.if empty(MESA_REQD:M5.[0-9]*)
+#MESA_VERSION= 3.4.2
+
# Check if we got Mesa distributed with XFree86 4.x.
.if exists(${X11BASE}/include/GL/glx.h) && \
exists(${X11BASE}/lib/X11/config/X11.tmpl)
@@ -26,6 +30,8 @@ _IS_BUILTIN_MESA= 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 \
@@ -36,3 +42,7 @@ post-install:
done
.include "../../mk/bsd.pkg.mk"
+
+# must be below bsd.pkg.mk to overwrite values
+PREFIX= ${LOCALBASE}
+X11PREFIX= ${LOCALBASE}