diff options
author | agc <agc@pkgsrc.org> | 2000-07-10 15:08:13 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2000-07-10 15:08:13 +0000 |
commit | 52c1afc38c6c1387969433578010efd90e8e3278 (patch) | |
tree | 4049372601c8df738c9d8100ec5b6c62cb36e7ae /x11 | |
parent | 866589729134fb595c91494e044fcc17ed5d0867 (diff) | |
download | pkgsrc-52c1afc38c6c1387969433578010efd90e8e3278.tar.gz |
Find qt1 prefix via pkg_info(1), rather than hardcoding it as ${X11BASE}.
Pointed out by Dave Sainty <dave@dtsp.co.nz>, munged slightly by me.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/kdebase/Makefile | 4 | ||||
-rw-r--r-- | x11/kdelibs/Makefile | 4 | ||||
-rw-r--r-- | x11/khostchooser/Makefile | 8 | ||||
-rw-r--r-- | x11/korganizer/Makefile | 6 | ||||
-rw-r--r-- | x11/kworldwatch/Makefile | 10 | ||||
-rw-r--r-- | x11/qwspritefield/Makefile | 13 | ||||
-rw-r--r-- | x11/xglobe/Makefile | 4 |
7 files changed, 25 insertions, 24 deletions
diff --git a/x11/kdebase/Makefile b/x11/kdebase/Makefile index c9e07cddde1..515af565e76 100644 --- a/x11/kdebase/Makefile +++ b/x11/kdebase/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.63 2000/03/28 00:12:31 dmcmahill Exp $ +# $NetBSD: Makefile,v 1.64 2000/07/10 15:08:19 agc Exp $ # FreeBSD Id: Makefile,v 1.6 1997/11/27 00:35:27 se Exp DISTNAME= kdebase-1.1.2 @@ -25,7 +25,7 @@ USE_X11BASE= yes USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= "--datadir=${PREFIX}/share/kde" \ - "--with-qt-dir=${X11BASE}/qt1" + "--with-qt-dir=`${PKG_INFO} -qp qt1 | ${AWK} '{ print $$2 }'`/qt1" CFLAGS+= -I${LOCALBASE}/include CONFIGURE_ENV= KDEDIR=${PREFIX} \ CXXFLAGS="${CFLAGS}" \ diff --git a/x11/kdelibs/Makefile b/x11/kdelibs/Makefile index 3b34f86fbfd..4945474b650 100644 --- a/x11/kdelibs/Makefile +++ b/x11/kdelibs/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.46 2000/06/01 11:23:46 rh Exp $ +# $NetBSD: Makefile,v 1.47 2000/07/10 15:08:19 agc Exp $ # FreeBSD Id: Makefile,v 1.5 1997/11/27 00:25:46 se Exp # @@ -22,7 +22,7 @@ USE_PKGLIBTOOL= yes LIBTOOL_FLAGS= --cplusplus --install-la GNU_CONFIGURE= yes CONFIGURE_ARGS= "--datadir=${PREFIX}/share/kde" \ - "--with-qt-dir=${PREFIX}/qt1" + "--with-qt-dir=`${PKG_INFO} -qp qt1 | ${AWK} '{ print $$2 }'`/qt1" CFLAGS+= -I${LOCALBASE}/include .include "../../mk/bsd.prefs.mk" diff --git a/x11/khostchooser/Makefile b/x11/khostchooser/Makefile index e7a573a38ed..be2dcf52b9a 100644 --- a/x11/khostchooser/Makefile +++ b/x11/khostchooser/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2000/04/13 00:20:38 dmcmahill Exp $ +# $NetBSD: Makefile,v 1.6 2000/07/10 15:08:20 agc Exp $ # DISTNAME= khostchooser-0.3 @@ -19,11 +19,11 @@ USE_X11BASE= yes USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --datadir=${PREFIX}/share/kde \ - --with-qt-dir=${X11BASE}/qt1 + --with-qt-dir=`${PKG_INFO} -qp qt1 | ${AWK} '{ print $$2 }'`/qt1 CFLAGS+= -I${LOCALBASE}/include CONFIGURE_ENV= KDEDIR=${PREFIX} \ - QTDIR=${X11BASE}/qt1 \ - MOC=${X11BASE}/qt1/bin/moc \ + QTDIR=`${PKG_INFO} -qp qt1 | ${AWK} '{ print $$2 }'`/qt1 \ + MOC=`${PKG_INFO} -qp qt1 | ${AWK} '{ print $$2 }'`/qt1/bin/moc \ CXXFLAGS="${CFLAGS}" \ all_libraries="-Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib -Wl,-R${X11BASE}/lib -L${X11BASE}/lib" diff --git a/x11/korganizer/Makefile b/x11/korganizer/Makefile index e79ff83ab91..9f7b0c8deeb 100644 --- a/x11/korganizer/Makefile +++ b/x11/korganizer/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2000/04/13 00:43:17 dmcmahill Exp $ +# $NetBSD: Makefile,v 1.5 2000/07/10 15:08:20 agc Exp $ DISTNAME= korganizer-1.1.2 CATEGORIES= kde @@ -15,10 +15,10 @@ USE_X11BASE= yes USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= "--datadir=${PREFIX}/share/kde" \ - "--with-qt-dir=${X11BASE}/qt1" + "--with-qt-dir=`${PKG_INFO} -qp qt1 | ${AWK} '{ print $$2 }'`/qt1" CFLAGS+= -I${LOCALBASE}/include CONFIGURE_ENV= KDEDIR=${PREFIX} \ - QTDIR=${X11BASE}/qt1 \ + QTDIR=`${PKG_INFO} -qp qt1 | ${AWK} '{ print $$2 }'`/qt1 \ CXXFLAGS="${CFLAGS}" \ all_libraries="-L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -L${X11BASE}/lib -Wl,-R${X11BASE}/lib" diff --git a/x11/kworldwatch/Makefile b/x11/kworldwatch/Makefile index 45c3f7c6c37..57c1f962786 100644 --- a/x11/kworldwatch/Makefile +++ b/x11/kworldwatch/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2000/04/24 14:14:13 tron Exp $ +# $NetBSD: Makefile,v 1.7 2000/07/10 15:08:21 agc Exp $ # DISTNAME= kworldwatch-0.6 @@ -16,13 +16,13 @@ CONFLICTS+= kdetoys-* USE_X11BASE= YES GNU_CONFIGURE= YES CONFIGURE_ARGS+=--datadir=${X11BASE}/share/kde \ - --with-qt-dir=${X11BASE}/qt1 \ - --with-qt-libraries='${X11BASE}/qt1/lib -L${LOCALBASE}/lib' \ + --with-qt-dir=`${PKG_INFO} -qp qt1 | ${AWK} '{ print $$2 }'`/qt1 \ + --with-qt-libraries='`${PKG_INFO} -qp qt1 | ${AWK} '{ print $$2 }'`/qt1/lib -L${LOCALBASE}/lib' \ --enable-path-check CFLAGS+= -I${LOCALBASE}/include CONFIGURE_ENV= KDEDIR=${PREFIX} \ - MOC=${X11BASE}/qt1/bin/moc \ - QTDIR=${X11BASE}/qt1 \ + MOC=`${PKG_INFO} -qp qt1 | ${AWK} '{ print $$2 }'`/qt1/bin/moc \ + QTDIR=`${PKG_INFO} -qp qt1 | ${AWK} '{ print $$2 }'`/qt1 \ CXXFLAGS="${CFLAGS}" \ all_libraries="-L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -L${X11BASE}/lib -Wl,-R${X11BASE}/lib" diff --git a/x11/qwspritefield/Makefile b/x11/qwspritefield/Makefile index 7e6b5636101..c30ff5b9fa6 100644 --- a/x11/qwspritefield/Makefile +++ b/x11/qwspritefield/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2000/06/01 11:23:47 rh Exp $ +# $NetBSD: Makefile,v 1.6 2000/07/10 15:08:21 agc Exp $ DISTNAME= QwSpriteField1.6 PKGNAME= qwspritefield-1.6 @@ -18,15 +18,16 @@ WRKSRC= ${WRKDIR}/QwSpriteField QW_INCLUDES= Pix.h QwCluster.h QwPublicList.h QwSpriteField.h -PATH= ${X11BASE}/qt1/bin:$$PATH +PATH= `${PKG_INFO} -qp qt1 | ${AWK} '{ print $$2 }'`/qt1/bin:$$PATH -MAKE_ENV+= "QTDIR=${X11BASE}/qt1" +MAKE_ENV+= "QTDIR=`${PKG_INFO} -qp qt1 | ${AWK} '{ print $$2 }'`/qt1" do-install: @${LIBTOOL} ${INSTALL_DATA} ${WRKSRC}/libQwSpriteField.la \ ${PREFIX}/lib -.for FILE in ${QW_INCLUDES} - ${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/qt1/include -.endfor + @qt1dir=`${PKG_INFO} -qp qt1 | ${AWK} '{ print $$2 }'`; \ + for file in ${QW_INCLUDES}; do \ + ${INSTALL_DATA} ${WRKSRC}/${FILE} $$qt1dir/qt1/include; \ + done .include "../../mk/bsd.pkg.mk" diff --git a/x11/xglobe/Makefile b/x11/xglobe/Makefile index 0af164819b5..4770687eb0d 100644 --- a/x11/xglobe/Makefile +++ b/x11/xglobe/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2000/04/03 03:24:47 hubertf Exp $ +# $NetBSD: Makefile,v 1.11 2000/07/10 15:08:21 agc Exp $ # DISTNAME= xglobe-0.5 @@ -24,7 +24,7 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} USE_X11BASE= YES USE_GMAKE= YES -MAKE_ENV+= QTDIR=${X11BASE}/qt1 +MAKE_ENV+= QTDIR=`${PKG_INFO} -qp qt1 | ${AWK} '{ print $$2 }'`/qt1 post-install: ${INSTALL_DATA_DIR} ${X11BASE}/lib/xglobe |