diff options
author | agc <agc> | 2000-07-15 20:39:13 +0000 |
---|---|---|
committer | agc <agc> | 2000-07-15 20:39:13 +0000 |
commit | 2e47c2f37e9c8e19fbffffeab1f56ce32e02d121 (patch) | |
tree | 16d493248b3dac046feba96b3b2a8fb8abcc8be3 /audio/xsidplay | |
parent | 820a71a77a3d89ccc6a901be882dcc2ebe3a5d26 (diff) | |
download | pkgsrc-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 'audio/xsidplay')
-rw-r--r-- | audio/xsidplay/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/audio/xsidplay/Makefile b/audio/xsidplay/Makefile index 2a05bd1183a..702238087d1 100644 --- a/audio/xsidplay/Makefile +++ b/audio/xsidplay/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2000/07/14 16:04:19 agc Exp $ +# $NetBSD: Makefile,v 1.13 2000/07/15 20:39:15 agc Exp $ # DISTNAME= xsidplay-1_3_9 @@ -18,14 +18,15 @@ USE_X11BASE= yes GNU_CONFIGURE= yes USE_GMAKE= yes +EVAL_PREFIX+= QT1DIR=qt1 CONFIGURE_ARGS+= --with-sidplay-includes=${LOCALBASE}/include \ --with-sidplay-library=${LOCALBASE}/lib \ - --with-qt-dir=`${SHOW_PREFIX1} qt1 ${SHOW_PREFIX2}`/qt1/lib + --with-qt-dir=${QT1DIR}/qt1/lib -LDFLAGS+= -Wl,-R`${SHOW_PREFIX1} qt1 ${SHOW_PREFIX2}`/qt1/lib +LDFLAGS+= -Wl,-R${QT1DIR}/qt1/lib CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" -CONFIGURE_ENV+= "MOC=`${SHOW_PREFIX1} qt1 ${SHOW_PREFIX2}`/qt1/bin/moc" +CONFIGURE_ENV+= "MOC=${QT1DIR}/qt1/bin/moc" do-install: @${INSTALL_PROGRAM} ${WRKSRC}/src/xsidplay ${PREFIX}/bin |