summaryrefslogtreecommitdiff
path: root/graphics/libwmf
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2000-07-15 20:39:13 +0000
committeragc <agc@pkgsrc.org>2000-07-15 20:39:13 +0000
commit78748d628ac4db618c18ea933eb98fe9246df465 (patch)
tree16d493248b3dac046feba96b3b2a8fb8abcc8be3 /graphics/libwmf
parentdd401e22851828e896a3520cc4279e86e69fdb8e (diff)
downloadpkgsrc-78748d628ac4db618c18ea933eb98fe9246df465.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 'graphics/libwmf')
-rw-r--r--graphics/libwmf/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/graphics/libwmf/Makefile b/graphics/libwmf/Makefile
index d61fb4409c7..5ceda2dd9c2 100644
--- a/graphics/libwmf/Makefile
+++ b/graphics/libwmf/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2000/07/14 16:04:23 agc Exp $
+# $NetBSD: Makefile,v 1.8 2000/07/15 20:39:21 agc Exp $
#
DISTNAME= libwmf-0.1.17
@@ -20,9 +20,11 @@ WRKSRC= ${WRKDIR}/libwmf
USE_X11= YES
GNU_CONFIGURE= YES
+
+EVAL_PREFIX+= XPMDIR=xpm
CONFIGURE_ARGS+= --with-png="${LOCALBASE}"
CONFIGURE_ARGS+= --with-ttf="${LOCALBASE}"
-CONFIGURE_ARGS+= --with-xpm="`${SHOW_PREFIX1} xpm ${SHOW_PREFIX2}`"
+CONFIGURE_ARGS+= --with-xpm="${XPMDIR}"
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include