pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/qt4-tools Add DESTDIR support.
details: https://anonhg.NetBSD.org/pkgsrc/rev/c42fe2f40d41
branches: trunk
changeset: 538288:c42fe2f40d41
user: joerg <joerg%pkgsrc.org@localhost>
date: Mon Feb 04 20:41:40 2008 +0000
description:
Add DESTDIR support.
diffstat:
x11/qt4-tools/Makefile | 36 ++++++++++++++++++++----------------
1 files changed, 20 insertions(+), 16 deletions(-)
diffs (76 lines):
diff -r 2e1b68626d8d -r c42fe2f40d41 x11/qt4-tools/Makefile
--- a/x11/qt4-tools/Makefile Mon Feb 04 20:20:13 2008 +0000
+++ b/x11/qt4-tools/Makefile Mon Feb 04 20:41:40 2008 +0000
@@ -1,4 +1,6 @@
-# $NetBSD: Makefile,v 1.17 2008/01/08 08:35:19 markd Exp $
+# $NetBSD: Makefile,v 1.18 2008/02/04 20:41:40 joerg Exp $
+
+PKG_DESTDIR_SUPPORT= user-destdir
.include "../../x11/qt4-libs/Makefile.common"
@@ -16,6 +18,11 @@
BUILD_QT4= yes
UNLIMIT_RESOURCES= datasize
+INSTALLATION_DIRS= ${QTPREFIX}/bin ${QTPREFIX}/lib lib/pkgconfig \
+ ${QTPREFIX}/plugins/designer ${QTPREFIX}/phrasebooks \
+ ${QTPREFIX}/mkspecs
+INSTALL_ENV+= INSTALL_ROOT=${DESTDIR:Q}
+
post-configure:
ln -s ${QTPREFIX}/bin/moc ${WRKSRC}/bin/moc
ln -s ${QTPREFIX}/bin/uic ${WRKSRC}/bin/uic
@@ -23,40 +30,37 @@
do-install:
.for prog in assistant lrelease lupdate qmake qt3to4
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} ${QTPREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} ${DESTDIR}${QTPREFIX}/bin/
.endfor
.for prog in designer linguist qtconfig
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} \
- ${QTPREFIX}/bin
+ ${DESTDIR}${QTPREFIX}/bin
.endfor
- cd ${WRKSRC}/tools/assistant/lib && env ${MAKE_ENV} \
+ cd ${WRKSRC}/tools/assistant/lib && env ${MAKE_ENV} ${INSTALL_ENV} \
${MAKE_PROGRAM} install_assistant_headers
- cd ${WRKSRC}/tools/designer/src/lib && env ${MAKE_ENV} \
+ cd ${WRKSRC}/tools/designer/src/lib && env ${MAKE_ENV} ${INSTALL_ENV} \
${MAKE_PROGRAM} install_designer_headers
- cd ${WRKSRC}/tools/designer/src/uitools && env ${MAKE_ENV} \
+ cd ${WRKSRC}/tools/designer/src/uitools && env ${MAKE_ENV} ${INSTALL_ENV} \
${MAKE_PROGRAM} install_quitools_headers
- cd ${WRKSRC}/tools/qtestlib/src && env ${MAKE_ENV} \
+ cd ${WRKSRC}/tools/qtestlib/src && env ${MAKE_ENV} ${INSTALL_ENV} \
${MAKE_PROGRAM} install_qtestlib_headers
.for lib in QtAssistantClient QtDesigner QtDesignerComponents QtTest
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/lib/lib${lib}.la \
- ${QTPREFIX}/lib/
+ ${DESTDIR}${QTPREFIX}/lib/
.endfor
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/lib/libQtUiTools.la \
- ${QTPREFIX}/lib/
+ ${DESTDIR}${QTPREFIX}/lib/
.for lib in QtUiTools QtTest
sed -e "s:${WRKSRC}:${QTPREFIX}: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_LIB_DIR} ${QTPREFIX}/plugins/designer
${LIBTOOL} --mode=install ${INSTALL_LIB} \
${WRKSRC}/plugins/designer/libqt3supportwidgets.la \
- ${QTPREFIX}/plugins/designer/
- ${INSTALL_DATA_DIR} ${QTPREFIX}/phrasebooks
+ ${DESTDIR}${QTPREFIX}/plugins/designer/
${INSTALL_DATA} ${WRKSRC}/tools/linguist/phrasebooks/*.qph \
- ${QTPREFIX}/phrasebooks/
- ${INSTALL_DATA_DIR} ${QTPREFIX}/mkspecs
- cp -R ${WRKSRC}/mkspecs ${QTPREFIX}
+ ${DESTDIR}${QTPREFIX}/phrasebooks/
+ cp -R ${WRKSRC}/mkspecs ${DESTDIR}${QTPREFIX}
.include "../../converters/libiconv/buildlink3.mk"
.include "../../x11/qt4-libs/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index