diff options
author | jlam <jlam> | 2008-03-03 17:45:33 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-03-03 17:45:33 +0000 |
commit | 6382667881b228651106070be0587fe300bf858b (patch) | |
tree | 620d08cc8bf79f9bacb7746632192670c7d6350d /devel/RTFM | |
parent | 2faf5f3f31238b3c0a70766d4e716138a636c86b (diff) | |
download | pkgsrc-6382667881b228651106070be0587fe300bf858b.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/RTFM')
-rw-r--r-- | devel/RTFM/Makefile | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/devel/RTFM/Makefile b/devel/RTFM/Makefile index 379adb1a8e3..03d02eff091 100644 --- a/devel/RTFM/Makefile +++ b/devel/RTFM/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2006/05/01 09:39:48 cube Exp $ +# $NetBSD: Makefile,v 1.6 2008/03/03 17:45:33 jlam Exp $ # DISTNAME= RTFM-2.0.4 @@ -12,6 +12,8 @@ COMMENT= Enterprise-grade knowledge management tool DEPENDS+= rt>=3.4.5:../../devel/rt3 +PKG_DESTDIR_SUPPORT= user-destdir + .include "../../devel/rt3/dirs.mk" PLIST_SUBST+= RT_HTML_DIR=${RT_HTML_DIR:C/^${LOCALBASE}\///} \ @@ -24,17 +26,20 @@ INSTALLATION_DIRS= lib share do-install: @${ECHO} "=> Libraries" + ${INSTALL_DATA_DIR} ${DESTDIR}${RT_LIB_DIR} cd ${WRKSRC}/lib/RT && ${FIND} . -type f ! -name '*.orig' 2>/dev/null | \ - ${PAX} -rw ${RT_LIB_DIR}/RT + ${PAX} -rw ${DESTDIR}${RT_LIB_DIR}/RT @${ECHO} "=> HTML Documents" + ${INSTALL_DATA_DIR} ${DESTDIR}${RT_HTML_DIR} cd ${WRKSRC}/html && ${FIND} . -type f ! -name '*.orig' 2>/dev/null | \ - ${PAX} -rw ${RT_HTML_DIR} + ${PAX} -rw ${DESTDIR}${RT_HTML_DIR} @${ECHO} "=> Locales" + ${INSTALL_DATA_DIR} ${DESTDIR}${RT_I18N_DIR} cd ${WRKSRC}/po && ${FIND} . -type f ! -name '*.orig' 2>/dev/null | \ - ${PAX} -rw ${RT_I18N_DIR} + ${PAX} -rw ${DESTDIR}${RT_I18N_DIR} @${ECHO} "=> Database Schemas" - ${INSTALL_DATA_DIR} ${PREFIX}/share/RTFM + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/RTFM for file in acl.Oracle acl.Pg acl.mysql schema.Oracle schema.Pg schema.mysql; \ - do ${INSTALL_DATA} ${WRKSRC}/etc/$$file ${PREFIX}/share/RTFM; done + do ${INSTALL_DATA} ${WRKSRC}/etc/$$file ${DESTDIR}${PREFIX}/share/RTFM; done .include "../../mk/bsd.pkg.mk" |