diff options
author | agc <agc> | 2000-07-10 15:08:13 +0000 |
---|---|---|
committer | agc <agc> | 2000-07-10 15:08:13 +0000 |
commit | 5f6ab6d9eaf43883d17524072f2c006e5376e3ee (patch) | |
tree | 4049372601c8df738c9d8100ec5b6c62cb36e7ae /x11/qwspritefield | |
parent | 99d511ce80e5a4a23cf9ac5fcb295524f2b47e7b (diff) | |
download | pkgsrc-5f6ab6d9eaf43883d17524072f2c006e5376e3ee.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/qwspritefield')
-rw-r--r-- | x11/qwspritefield/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
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" |