summaryrefslogtreecommitdiff
path: root/games/baduki
diff options
context:
space:
mode:
authoragc <agc>2000-07-15 20:39:13 +0000
committeragc <agc>2000-07-15 20:39:13 +0000
commit99e9734c1322552385b4029f09f3dc349f4a2510 (patch)
tree16d493248b3dac046feba96b3b2a8fb8abcc8be3 /games/baduki
parent52fb06f2eeb47f6a33f713dd9a58a5743c6b314f (diff)
downloadpkgsrc-99e9734c1322552385b4029f09f3dc349f4a2510.tar.gz
Instead of the clunky SHOW_PKG_PREFIX, introduce an EVAL_PREFIX definition,
which takes entries of the format <make-definition-name>=<pkgname>. This has not been added to MAKEFLAGS because (a) premature optimisation is the root of all evil, and (b) because the .for loop used to implement this shows the wrong results when multiple prefices are evaluated. Modify all the package Makefiles to use EVAL_PREFIX, thereby simplifying them considerably. ALso simplify the logic to calculate the prefix as well.
Diffstat (limited to 'games/baduki')
-rw-r--r--games/baduki/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/games/baduki/Makefile b/games/baduki/Makefile
index eece64e67ce..e66e8b53b71 100644
--- a/games/baduki/Makefile
+++ b/games/baduki/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2000/07/14 16:04:21 agc Exp $
+# $NetBSD: Makefile,v 1.13 2000/07/15 20:39:17 agc Exp $
DISTNAME= baduki-0.2.9
CATEGORIES= games
@@ -11,9 +11,11 @@ DEPENDS+= gtk+-1.2.*:../../x11/gtk
USE_X11= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --with-gtk-prefix=`${SHOW_PREFIX1} gtk+ ${SHOW_PREFIX2}`
+
+EVAL_PREFIX+= GTKDIR=gtk+
+CONFIGURE_ARGS+= --with-gtk-prefix=${GTKDIR}
CONFIGURE_ARGS+= --without-included-gettext
-CONFIGURE_ENV+= GTK_CONFIG="`${SHOW_PREFIX1} gtk+ ${SHOW_PREFIX2}`/bin/gtk-config"
+CONFIGURE_ENV+= GTK_CONFIG="${GTKDIR}/bin/gtk-config"
LDFLAGS+= -L${LOCALBASE}/lib
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"