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/qwspritefield/Makefile | |
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/qwspritefield/Makefile')
-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" |