summaryrefslogtreecommitdiff
path: root/graphics/geomview
diff options
context:
space:
mode:
authorjtb <jtb>2001-05-02 14:49:37 +0000
committerjtb <jtb>2001-05-02 14:49:37 +0000
commitf2d1a8c004c02a482017193c20ad3185938f7b34 (patch)
tree06ded344afd4af5bef61dbf3bf1d09c1896227c5 /graphics/geomview
parentccc0053a38102f15f4277b04cb88f229974249d8 (diff)
downloadpkgsrc-f2d1a8c004c02a482017193c20ad3185938f7b34.tar.gz
Determine MESABASE using EVAL_PREFIX so that it works correctly with
xpkgwedge. Thanks to Johnny C. Lam for noticing the problem and Alistair G. Crooks for the suggested solution.
Diffstat (limited to 'graphics/geomview')
-rw-r--r--graphics/geomview/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/graphics/geomview/Makefile b/graphics/geomview/Makefile
index 722a7a34af6..0eafc285c52 100644
--- a/graphics/geomview/Makefile
+++ b/graphics/geomview/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2001/05/01 22:37:13 jtb Exp $
+# $NetBSD: Makefile,v 1.9 2001/05/02 14:49:37 jtb Exp $
DISTNAME= geomview-1.8.1
CATEGORIES= graphics math
@@ -10,13 +10,19 @@ COMMENT= Interactive geometry viewing program
CONFLICTS= ImageMagick-* # both have a program named 'animate'
-GNU_CONFIGURE= YES
-USE_X11= YES
-USE_MOTIF= YES
-USE_MESA= YES
+GNU_CONFIGURE= yes
+USE_X11= yes
+USE_MOTIF= yes
+USE_MESA= yes
+
+.if ${HAVE_BUILTIN_MESA} == "NO"
+EVAL_PREFIX+= MESABASE=Mesa
+.else
+MESABASE= ${X11BASE}
+.endif
CONFIGURE_ARGS+= --without-xforms
-CONFIGURE_ARGS+= --with-opengl=${X11BASE}
+CONFIGURE_ARGS+= --with-opengl=${MESABASE}
CONFIGURE_ARGS+= --with-motif=${MOTIFBASE}
CONFIGURE_ENV+= CPPFLAGS="-Dunix -Dalloca=__builtin_alloca"