diff options
author | joerg <joerg> | 2008-02-04 18:07:53 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-02-04 18:07:53 +0000 |
commit | 2ad460f120a1a59ab80536f44f9483ed3f73ae6e (patch) | |
tree | 0df425b41b53714ea1703093feaec4f185bd97fc /x11 | |
parent | a64cd4202fb31b4eb654d468bdc841a2a576decf (diff) | |
download | pkgsrc-2ad460f120a1a59ab80536f44f9483ed3f73ae6e.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/qt4-docs/Makefile | 10 | ||||
-rw-r--r-- | x11/qt4-libs/Makefile | 35 |
2 files changed, 25 insertions, 20 deletions
diff --git a/x11/qt4-docs/Makefile b/x11/qt4-docs/Makefile index 49a1ca97c17..db992923aa7 100644 --- a/x11/qt4-docs/Makefile +++ b/x11/qt4-docs/Makefile @@ -1,4 +1,6 @@ -# $NetBSD: Makefile,v 1.3 2007/03/18 17:34:41 adam Exp $ +# $NetBSD: Makefile,v 1.4 2008/02/04 18:15:34 joerg Exp $ + +PKG_DESTDIR_SUPPORT= user-destdir .include "../../x11/qt4-libs/Makefile.common" @@ -9,9 +11,11 @@ NO_CONFIGURE= yes NO_BUILD= yes PLIST_SRC= ${WRKDIR}/PLIST ${PKGDIR}/PLIST +INSTALLATION_DIRS= ${QTPREFIX} + do-install: - cp -R ${WRKSRC}/doc ${QTPREFIX} - cd ${PREFIX}; find qt4/doc -type f -print > ${WRKDIR}/PLIST + cp -R ${WRKSRC}/doc ${DESTDIR}${QTPREFIX} + cd ${DESTDIR}${PREFIX}; find qt4/doc -type f -print > ${WRKDIR}/PLIST .include "../../x11/qt4-libs/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/x11/qt4-libs/Makefile b/x11/qt4-libs/Makefile index a078ecbb514..c5695c76555 100644 --- a/x11/qt4-libs/Makefile +++ b/x11/qt4-libs/Makefile @@ -1,4 +1,6 @@ -# $NetBSD: Makefile,v 1.21 2008/01/08 08:35:18 markd Exp $ +# $NetBSD: Makefile,v 1.22 2008/02/04 18:07:53 joerg Exp $ + +PKG_DESTDIR_SUPPORT= user-destdir .include "../../x11/qt4-libs/Makefile.common" @@ -19,42 +21,41 @@ PLIST_SRC= ${WRKDIR}/PLIST ${PKGDIR}/PLIST CONFIGURE_ARGS+= -no-sql-sqlite CONFIGURE_ARGS+= -no-libtiff +INSTALLATION_DIRS= lib/pkgconfig ${QTPREFIX}/bin ${QTPREFIX}/include \ + ${QTPREFIX}/lib ${QTPREFIX}/plugins/accessible \ + ${QTPREFIX}/plugins/imageformats + +INSTALL_ENV+= INSTALL_ROOT=${DESTDIR:Q} + do-install: - ${INSTALL_DATA_DIR} ${QTPREFIX} - ${INSTALL_PROGRAM_DIR} ${QTPREFIX}/bin .for prog in moc rcc uic - ${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} ${QTPREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} ${DESTDIR}${QTPREFIX}/bin/ .endfor ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/bin/uic3 \ - ${QTPREFIX}/bin - ${INSTALL_DATA_DIR} ${QTPREFIX}/include + ${DESTDIR}${QTPREFIX}/bin .for incl in corelib gui network opengl qt3support sql svg xml script - cd ${WRKSRC}/src/${incl} && env ${MAKE_ENV} \ + cd ${WRKSRC}/src/${incl} && env ${MAKE_ENV} ${INSTALL_ENV} \ ${MAKE_PROGRAM} ${INSTALL_TARGET} .endfor - cd ${PREFIX} && find qt4/include -type f -print > ${WRKDIR}/PLIST - ${INSTALL_LIB_DIR} ${QTPREFIX}/lib + cd ${DESTDIR}${PREFIX} && find qt4/include -type f -print > ${WRKDIR}/PLIST .for lib in Qt3Support QtCore QtGui QtNetwork QtOpenGL QtSql QtSvg QtXml QtScript ${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/lib/lib${lib}.la \ - ${QTPREFIX}/lib/ + ${DESTDIR}${QTPREFIX}/lib/ sed -e "s:${WRKSRC}:${QTPREFIX}:g" \ -e "s:${QTPREFIX}/lib/lib\([A-Za-z3]*\)\.la:-l\1:g" \ ${WRKSRC}/lib/pkgconfig/${lib}.pc > ${WRKDIR}/${lib}.pc - ${INSTALL_DATA} ${WRKDIR}/${lib}.pc ${PREFIX}/lib/pkgconfig/ + ${INSTALL_DATA} ${WRKDIR}/${lib}.pc ${DESTDIR}${PREFIX}/lib/pkgconfig/ .endfor - ${INSTALL_DATA} ${WRKSRC}/tools/porting/src/q3porting.xml ${QTPREFIX} - ${INSTALL_LIB_DIR} ${QTPREFIX}/plugins - ${INSTALL_LIB_DIR} ${QTPREFIX}/plugins/accessible + ${INSTALL_DATA} ${WRKSRC}/tools/porting/src/q3porting.xml ${DESTDIR}${QTPREFIX} .for plug in qtaccessiblecompatwidgets qtaccessiblewidgets ${LIBTOOL} --mode=install ${INSTALL_LIB} \ ${WRKSRC}/plugins/accessible/lib${plug}.la \ - ${QTPREFIX}/plugins/accessible/ + ${DESTDIR}${QTPREFIX}/plugins/accessible/ .endfor - ${INSTALL_LIB_DIR} ${QTPREFIX}/plugins/imageformats/ .for plug in qgif qjpeg qmng ${LIBTOOL} --mode=install ${INSTALL_LIB} \ ${WRKSRC}/plugins/imageformats/lib${plug}.la \ - ${QTPREFIX}/plugins/imageformats/ + ${DESTDIR}${QTPREFIX}/plugins/imageformats/ .endfor .if ${OPSYS} == "Darwin" && empty(MACHINE_PLATFORM:MDarwin-[567].*) |