diff options
author | joerg <joerg@pkgsrc.org> | 2009-07-07 18:10:38 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-07-07 18:10:38 +0000 |
commit | 9cd90d07ec63ae66be0a804ab6a66d64cc4a785f (patch) | |
tree | 496493ec2887e82a72e052adf901b8298aa864a7 | |
parent | ee697a3af728b023a17543d85078229f57e6c797 (diff) | |
download | pkgsrc-9cd90d07ec63ae66be0a804ab6a66d64cc4a785f.tar.gz |
user-destdir support
-rw-r--r-- | x11/numlockx/Makefile | 9 | ||||
-rw-r--r-- | x11/qt3-docs/Makefile | 26 |
2 files changed, 19 insertions, 16 deletions
diff --git a/x11/numlockx/Makefile b/x11/numlockx/Makefile index bb4e8cffff4..572f0f6223d 100644 --- a/x11/numlockx/Makefile +++ b/x11/numlockx/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2007/02/20 01:04:27 joerg Exp $ +# $NetBSD: Makefile,v 1.9 2009/07/07 18:10:38 joerg Exp $ # DISTNAME= numlockx-1.1 @@ -10,11 +10,14 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://ktown.kde.org/~seli/numlockx/ COMMENT= Allows you to start X with numlock turned on +PKG_DESTDIR_SUPPORT= user-destdir + GNU_CONFIGURE= yes +INSTALLATION_DIRS= share/doc/numlockx + post-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/numlockx - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/numlockx + ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/numlockx .include "../../mk/bsd.prefs.mk" diff --git a/x11/qt3-docs/Makefile b/x11/qt3-docs/Makefile index 9e0c3b8451a..1942f8cc84f 100644 --- a/x11/qt3-docs/Makefile +++ b/x11/qt3-docs/Makefile @@ -1,4 +1,6 @@ -# $NetBSD: Makefile,v 1.23 2006/10/23 14:54:11 adam Exp $ +# $NetBSD: Makefile,v 1.24 2009/07/07 18:10:58 joerg Exp $ + +PKG_DESTDIR_SUPPORT= user-destdir .include "../../x11/qt3-libs/Makefile.common" @@ -10,33 +12,31 @@ BUILD_QT3= yes NO_CONFIGURE= yes NO_BUILD= yes +INSTALLATION_DIRS= ${QTPREFIX}/doc/html ${QTPREFIX}/man/man3 + do-install: - ${INSTALL_DATA_DIR} ${QTPREFIX}/doc - ${INSTALL_DATA_DIR} ${QTPREFIX}/man - ${INSTALL_MAN_DIR} ${QTPREFIX}/man/man3 @cd ${WRKSRC}/doc/man/man3; PAGES="`ls -1 | ${SED} -e 's,3qt$$,3,'`"; \ (for PAGE in $$PAGES; do \ - ${ECHO} installing ${QTPREFIX}/man/man3/$${PAGE}; \ + ${ECHO} installing ${DESTDIR}${QTPREFIX}/man/man3/$${PAGE}; \ set - X `head -1 $${PAGE}qt`; \ if [ $$# -eq 3 ] && [ "$$2" = .so ]; then \ ${LN} -fs `basename $$3 | ${SED} s/qt$$//` \ - ${QTPREFIX}/man/man3/$${PAGE}; \ + ${DESTDIR}${QTPREFIX}/man/man3/$${PAGE}; \ else \ - ${INSTALL_MAN} $${PAGE}qt ${QTPREFIX}/man/man3/$${PAGE}; \ + ${INSTALL_MAN} $${PAGE}qt ${DESTDIR}${QTPREFIX}/man/man3/$${PAGE}; \ fi; \ done) - ${INSTALL_DATA_DIR} ${QTPREFIX}/doc/html - ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README-QT.TXT ${QTPREFIX}/doc/html + ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README-QT.TXT ${DESTDIR}${QTPREFIX}/doc/html cd ${WRKSRC}; \ DOCDIRS="`${FIND} doc/html -type d -print | ${SORT}`"; \ (for d in $${DOCDIRS}; do \ - ${ECHO} installing ${QTPREFIX}/$${d}; \ - ${INSTALL_DATA_DIR} ${QTPREFIX}/$${d}; \ + ${ECHO} installing ${DESTDIR}${QTPREFIX}/$${d}; \ + ${INSTALL_DATA_DIR} ${DESTDIR}${QTPREFIX}/$${d}; \ done) ; \ DOCFILES="`${FIND} doc/html -type f -print | ${SORT}`"; \ (for f in $${DOCFILES}; do \ - ${ECHO} installing ${QTPREFIX}/$${f}; \ - ${INSTALL_DATA} $${f} ${QTPREFIX}/$${f}; \ + ${ECHO} installing ${DESTDIR}${QTPREFIX}/$${f}; \ + ${INSTALL_DATA} $${f} ${DESTDIR}${QTPREFIX}/$${f}; \ done) .include "../../x11/qt3-libs/buildlink3.mk" |