diff options
author | wiz <wiz> | 2009-02-16 09:56:09 +0000 |
---|---|---|
committer | wiz <wiz> | 2009-02-16 09:56:09 +0000 |
commit | 4821070b9f7f9d2e2f87a5bfde53df0ff5af606d (patch) | |
tree | aeec87b6ebb47432098f3aca39e5c883ee3751fa | |
parent | 90e101f81ca11574b75fbe6ace59f68caf452ac4 (diff) | |
download | pkgsrc-4821070b9f7f9d2e2f87a5bfde53df0ff5af606d.tar.gz |
Convert to user-destdir.
-rw-r--r-- | news/tin/Makefile | 9 | ||||
-rw-r--r-- | sysutils/dirvish/Makefile | 14 | ||||
-rw-r--r-- | textproc/doclifter/Makefile | 14 |
3 files changed, 24 insertions, 13 deletions
diff --git a/news/tin/Makefile b/news/tin/Makefile index e9b97898cfc..9851b32d64e 100644 --- a/news/tin/Makefile +++ b/news/tin/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.36 2008/09/12 11:33:44 gdt Exp $ +# $NetBSD: Makefile,v 1.37 2009/02/16 09:56:09 wiz Exp $ # DISTNAME= tin-1.8.3 @@ -21,6 +21,10 @@ NO_BIN_ON_CDROM= ${RESTRICTED} GNU_CONFIGURE= yes USE_PKGLOCALEDIR=yes + +INSTALLATION_DIRS= share/doc/tin +PKG_DESTDIR_SUPPORT= user-destdir + # for tinews.pl USE_TOOLS+= perl:run yacc REPLACE_PERL= tools/*.pl @@ -52,8 +56,7 @@ post-configure: ${ECHO} '#define SMTP_SERVER_FILE "${PREFIX}/etc/smtpserver"' >>${WRKSRC}/include/autoconf.h post-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tin - ${INSTALL_DATA} ${WRKSRC}/doc/WHATSNEW ${PREFIX}/share/doc/tin + ${INSTALL_DATA} ${WRKSRC}/doc/WHATSNEW ${DESTDIR}${PREFIX}/share/doc/tin .include "../../converters/libiconv/buildlink3.mk" .include "../../converters/uulib/buildlink3.mk" diff --git a/sysutils/dirvish/Makefile b/sysutils/dirvish/Makefile index bf4ed4e820a..cd4d074f0a2 100644 --- a/sysutils/dirvish/Makefile +++ b/sysutils/dirvish/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2007/03/24 19:21:32 joerg Exp $ +# $NetBSD: Makefile,v 1.3 2009/02/16 10:09:16 wiz Exp $ # DISTNAME= dirvish-1.2.1 @@ -16,6 +16,7 @@ DEPENDS+= p5-Time>=2003.0:../../time/p5-Time DEPENDS+= p5-Time-Period>=1.0:../../time/p5-Time-Period PKG_SYSCONFSUBDIR= dirvish +PKG_DESTDIR_SUPPORT= user-destdir EXECUTABLES= dirvish dirvish-runall dirvish-expire dirvish-locate MAN5= dirvish.conf.5 @@ -37,16 +38,19 @@ do-build: do-install: for f in ${EXECUTABLES}; do \ - ${INSTALL_SCRIPT} ${WRKSRC}/$$f ${PREFIX}/sbin; \ + ${INSTALL_SCRIPT} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/sbin; \ done for f in ${MAN5}; do \ - ${INSTALL_MAN} ${WRKSRC}/$$f ${PREFIX}/${PKGMANDIR}/man5; \ + ${INSTALL_MAN} ${WRKSRC}/$$f \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5; \ done for f in ${MAN8}; do \ - ${INSTALL_MAN} ${WRKSRC}/$$f ${PREFIX}/${PKGMANDIR}/man8; \ + ${INSTALL_MAN} ${WRKSRC}/$$f \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8; \ done for f in ${DOCS}; do \ - ${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/doc/dirvish; \ + ${INSTALL_DATA} ${WRKSRC}/$$f \ + ${DESTDIR}${PREFIX}/share/doc/dirvish; \ done .include "../../mk/bsd.pkg.mk" diff --git a/textproc/doclifter/Makefile b/textproc/doclifter/Makefile index f4cf0eb26ee..c891747fe7b 100644 --- a/textproc/doclifter/Makefile +++ b/textproc/doclifter/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2009/02/09 22:56:27 joerg Exp $ +# $NetBSD: Makefile,v 1.20 2009/02/16 10:25:16 wiz Exp $ # DISTNAME= doclifter-2.3 @@ -14,6 +14,8 @@ NO_BUILD= yes PYTHON_PATCH_SCRIPTS= doclifter manlifter +PKG_DESTDIR_SUPPORT= user-destdir + SUBST_CLASSES+= bin-path SUBST_STAGE.bin-path= pre-configure SUBST_FILES.bin-path= manlifter @@ -22,10 +24,12 @@ SUBST_SED.bin-path= -e 's,@@BIN_PATH@@,${PREFIX}/bin,g' INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/doclifter ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/doclifter.1 ${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_SCRIPT} ${WRKSRC}/manlifter ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/manlifter.1 ${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_SCRIPT} ${WRKSRC}/doclifter ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/doclifter.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_SCRIPT} ${WRKSRC}/manlifter ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/manlifter.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 .include "../../lang/python/application.mk" .include "../../mk/bsd.pkg.mk" |