summaryrefslogtreecommitdiff
path: root/devel/kdevelop
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 /devel/kdevelop
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 'devel/kdevelop')
-rw-r--r--devel/kdevelop/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/devel/kdevelop/Makefile b/devel/kdevelop/Makefile
index 18770158ec1..4aa3be5f4ad 100644
--- a/devel/kdevelop/Makefile
+++ b/devel/kdevelop/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2000/07/14 16:04:21 agc Exp $
+# $NetBSD: Makefile,v 1.17 2000/07/15 20:39:17 agc Exp $
DISTNAME= kdevelop-1.2
CATEGORIES= devel kde
@@ -20,11 +20,13 @@ USE_X11BASE= yes
USE_GMAKE= yes
USE_PKGLIBTOOL= yes
GNU_CONFIGURE= yes
+
+EVAL_PREFIX+= QT1DIR=qt1
CONFIGURE_ARGS= --with-extra-includes=${LOCALBASE}/include \
--with-extra-libs=${LOCALBASE}/lib \
- --with-qt-dir=`${SHOW_PREFIX1} qt1 ${SHOW_PREFIX2}`/qt1
+ --with-qt-dir=${QT1DIR}/qt1
CFLAGS+= -I${LOCALBASE}/include
-CONFIGURE_ENV= "KDEDIR=${PREFIX} QTDIR=`${SHOW_PREFIX1} qt1 ${SHOW_PREFIX2}`/qt1"
+CONFIGURE_ENV= "KDEDIR=${PREFIX} QTDIR=${QT1DIR}/qt1"
.include "../../mk/bsd.pkg.mk"