summaryrefslogtreecommitdiff
path: root/cad/vipec
diff options
context:
space:
mode:
authoragc <agc>2000-07-15 20:39:13 +0000
committeragc <agc>2000-07-15 20:39:13 +0000
commit2e47c2f37e9c8e19fbffffeab1f56ce32e02d121 (patch)
tree16d493248b3dac046feba96b3b2a8fb8abcc8be3 /cad/vipec
parent820a71a77a3d89ccc6a901be882dcc2ebe3a5d26 (diff)
downloadpkgsrc-2e47c2f37e9c8e19fbffffeab1f56ce32e02d121.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 'cad/vipec')
-rw-r--r--cad/vipec/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/cad/vipec/Makefile b/cad/vipec/Makefile
index 682ba0651d3..4238c3f4264 100644
--- a/cad/vipec/Makefile
+++ b/cad/vipec/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2000/07/14 16:04:20 agc Exp $
+# $NetBSD: Makefile,v 1.15 2000/07/15 20:39:15 agc Exp $
#
DISTNAME= vipec-2.0.1
@@ -14,9 +14,10 @@ GNU_CONFIGURE= yes
USE_PKGLIBTOOL= yes
USE_X11= yes
-CONFIGURE_ENV+= "QTDIR=`${SHOW_PREFIX1} qt2 ${SHOW_PREFIX2}`/qt2" \
+EVAL_PREFIX+= QT2DIR=qt2
+CONFIGURE_ENV+= "QTDIR=${QT2DIR}/qt2" \
all_libraries="-Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib -Wl,-R${X11BASE}/lib -L${X11BASE}/lib"
-CONFIGURE_ARGS+= "--with-qt-dir=`${SHOW_PREFIX1} qt2 ${SHOW_PREFIX2}`/qt2"
+CONFIGURE_ARGS+= "--with-qt-dir=${QT2DIR}/qt2"
post-extract:
${MV} -f ${WRKSRC}/bin/start_vipec_help ${WRKSRC}/bin/start_vipec_help.in