diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-04 19:21:10 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-04 19:21:10 +0000 |
commit | 2ff2716acf781c9b1b039a6b95e38ecb3d95ed08 (patch) | |
tree | 49bcc2e4ee778e69c05972f13c0e319fdf272a66 | |
parent | b7a420b59c401cc1e9a58c6d5a9f19b4f93074f8 (diff) | |
download | pkgsrc-2ff2716acf781c9b1b039a6b95e38ecb3d95ed08.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
45 files changed, 387 insertions, 275 deletions
diff --git a/misc/9menu/Makefile b/misc/9menu/Makefile index 53a26da5059..85a73a77dce 100644 --- a/misc/9menu/Makefile +++ b/misc/9menu/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2007/02/02 17:07:48 joerg Exp $ +# $NetBSD: Makefile,v 1.22 2008/03/04 19:21:10 jlam Exp $ DISTNAME= 9menu-1.8 PKGREVISION= 1 @@ -9,6 +9,8 @@ EXTRACT_SUFX= .shar.gz MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Simple menu patterned after the plan9 user interface +PKG_DESTDIR_SUPPORT= user-destdir + MAKE_FILE= Makefile.noimake BUILD_TARGET= 9menu @@ -16,8 +18,8 @@ WRKSRC= ${WRKDIR} INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/9menu ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/9menu.1 ${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/9menu ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/9menu.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 .include "../../x11/libX11/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/misc/JMdict/Makefile b/misc/JMdict/Makefile index b036c87c775..27d367d29cb 100644 --- a/misc/JMdict/Makefile +++ b/misc/JMdict/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2007/07/08 09:43:48 wiz Exp $ +# $NetBSD: Makefile,v 1.8 2008/03/04 19:21:10 jlam Exp $ # # Update instructions: # . bump PKGNAME to today's date @@ -18,6 +18,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.csse.monash.edu.au/~jwb/edict.html COMMENT= Japanese-Multilingual electronic dictionary +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} DIST_SUBDIR= ${PKGNAME_NOREV} EXTRACT_ONLY= JMdict.gz @@ -25,14 +27,14 @@ EXTRACT_ONLY= JMdict.gz NO_BUILD= yes do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/JMdict - ${INSTALL_DATA} ${WRKSRC}/JMdict ${PREFIX}/share/JMdict + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/JMdict + ${INSTALL_DATA} ${WRKSRC}/JMdict ${DESTDIR}${PREFIX}/share/JMdict ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/JMdict.dtd \ - ${PREFIX}/share/JMdict + ${DESTDIR}${PREFIX}/share/JMdict ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/JMdict.gz \ - ${PREFIX}/share/JMdict - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/JMdict + ${DESTDIR}${PREFIX}/share/JMdict + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/JMdict ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/jmdict_proj_desc.html \ - ${PREFIX}/share/doc/JMdict + ${DESTDIR}${PREFIX}/share/doc/JMdict .include "../../mk/bsd.pkg.mk" diff --git a/misc/ascii/Makefile b/misc/ascii/Makefile index 7afb6b433cf..1bf82ff8088 100644 --- a/misc/ascii/Makefile +++ b/misc/ascii/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2007/02/22 19:01:22 wiz Exp $ +# $NetBSD: Makefile,v 1.11 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= ascii-3.0 @@ -9,14 +9,17 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.catb.org/~esr/ascii/ COMMENT= ASCII character table program +PKG_DESTDIR_SUPPORT= user-destdir + BUILD_TARGET= ascii INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/ascii ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/ascii.1 ${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ascii - ${INSTALL_DATA} ${WRKSRC}/ascii.cgi ${PREFIX}/share/examples/ascii + ${INSTALL_PROGRAM} ${WRKSRC}/ascii ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/ascii.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/ascii + ${INSTALL_DATA} ${WRKSRC}/ascii.cgi \ + ${DESTDIR}${PREFIX}/share/examples/ascii .include "../../mk/bsd.pkg.mk" diff --git a/misc/astrolog/Makefile b/misc/astrolog/Makefile index 74161fd7ff9..7e4cb1f102b 100644 --- a/misc/astrolog/Makefile +++ b/misc/astrolog/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.32 2007/02/22 19:26:48 wiz Exp $ +# $NetBSD: Makefile,v 1.33 2008/03/04 19:21:11 jlam Exp $ DISTNAME= ast54unx PKGNAME= astrolog-5.40 @@ -18,6 +18,8 @@ RESTRICTED= Do not sell or profit from this software in any way NO_SRC_ON_CDROM=${RESTRICTED} NO_BIN_ON_CDROM=${RESTRICTED} +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} EPHEM= LRZ5_24 CHI_24 CPJV_24 EXTRACT_ONLY= ${DISTNAME}.shr @@ -30,23 +32,23 @@ BUILD_TARGET= astrolog INSTALLATION_DIRS= bin do-install: - @${INSTALL_DATA_DIR} ${PREFIX}/lib/astrolog + @${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/astrolog cd ${DISTDIR}/${DIST_SUBDIR} && \ - ${INSTALL_DATA} ${EPHEM} ${PREFIX}/lib/astrolog + ${INSTALL_DATA} ${EPHEM} ${DESTDIR}${PREFIX}/lib/astrolog cd ${WRKSRC} && \ - if [ -f ${PREFIX}/lib/astrolog/astrolog.dat ] ; then \ - ${INSTALL_DATA} astrolog.dat ${PREFIX}/lib/astrolog/astrolog.dat-dist; \ + if [ -f ${DESTDIR}${PREFIX}/lib/astrolog/astrolog.dat ] ; then \ + ${INSTALL_DATA} astrolog.dat ${DESTDIR}${PREFIX}/lib/astrolog/astrolog.dat-dist; \ else \ - ${INSTALL_DATA} astrolog.dat ${PREFIX}/lib/astrolog; \ + ${INSTALL_DATA} astrolog.dat ${DESTDIR}${PREFIX}/lib/astrolog; \ fi - cd ${WRKSRC} && ${INSTALL_PROGRAM} astrolog ${PREFIX}/bin - @${INSTALL_DATA_DIR} ${PREFIX}/share/doc/astrolog + cd ${WRKSRC} && ${INSTALL_PROGRAM} astrolog ${DESTDIR}${PREFIX}/bin + @${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/astrolog cd ${WRKSRC} && \ - ${INSTALL_DATA} Helpfile.540 ${PREFIX}/share/doc/astrolog + ${INSTALL_DATA} Helpfile.540 ${DESTDIR}${PREFIX}/share/doc/astrolog cd ${WRKSRC} && \ - ${INSTALL_DATA} Update.540 ${PREFIX}/share/doc/astrolog + ${INSTALL_DATA} Update.540 ${DESTDIR}${PREFIX}/share/doc/astrolog cd ${WRKSRC} && \ - ${INSTALL_DATA} README.540 ${PREFIX}/share/doc/astrolog + ${INSTALL_DATA} README.540 ${DESTDIR}${PREFIX}/share/doc/astrolog @${ECHO} @${ECHO} "See the file ${PREFIX}/share/doc/astrolog/Helpfile.540 for" @${ECHO} "help and tune ${PREFIX}/lib/astrolog/astrolog.dat" diff --git a/misc/bbdb/Makefile b/misc/bbdb/Makefile index 242acb8d6c6..a3cf129283e 100644 --- a/misc/bbdb/Makefile +++ b/misc/bbdb/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2007/05/30 14:09:08 uebayasi Exp $ +# $NetBSD: Makefile,v 1.18 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= bbdb-2.34 @@ -15,6 +15,8 @@ COMMENT= Insidious Big Brother DataBase, a rolodex-like database Emacs program EMACS_VERSIONS_ACCEPTED= emacs22 emacs22nox emacs21 emacs21nox emacs20 emacs20nox CONFLICTS+= xemacs-packages-[0-9]* +PKG_DESTDIR_SUPPORT= user-destdir + USE_PKGLOCALEDIR= yes GNU_CONFIGURE= yes BUILD_TARGET= all mhe @@ -31,12 +33,12 @@ CONFIGURE_ARGS+= --with-package-dir=${PREFIX}/lib/xemacs/site-packages INSTALL_TARGET= install-pkg .else do-install: - ${MKDIR} ${LISPDIR} - ${INSTALL_DATA} ${WRKSRC}/lisp/*.el ${LISPDIR} - ${INSTALL_DATA} ${WRKSRC}/lisp/*.elc ${LISPDIR} + ${MKDIR} ${DESTDIR}${LISPDIR} + ${INSTALL_DATA} ${WRKSRC}/lisp/*.el ${DESTDIR}${LISPDIR} + ${INSTALL_DATA} ${WRKSRC}/lisp/*.elc ${DESTDIR}${LISPDIR} cd ${WRKSRC}/texinfo; for f in bbdb.info bbdb.info-[0-9]*; do \ ${TEST} ! -f "$$f" || \ - ${INSTALL_DATA} "$$f" ${PREFIX}/${PKGINFODIR}; \ + ${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR};\ done .endif diff --git a/misc/chipmunk/Makefile b/misc/chipmunk/Makefile index a760e17ef09..2579a0c6432 100644 --- a/misc/chipmunk/Makefile +++ b/misc/chipmunk/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 2007/02/22 19:26:48 wiz Exp $ +# $NetBSD: Makefile,v 1.23 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= chipmunk-1.4 @@ -12,6 +12,7 @@ COMMENT= Shell-like tool for hardware debugging ONLY_FOR_PLATFORM= NetBSD-*-i386 +PKG_DESTDIR_SUPPORT= user-destdir BUILD_TARGET= chipmunk MAKE_ENV+= CONFIG_OPTIONS=${CPPFLAGS:M*:Q} @@ -20,7 +21,7 @@ MAKE_ENV+= EXTRA_LIBS=-li386 INSTALLATION_DIRS= sbin do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/chipmunk ${PREFIX}/sbin/chipmunk + ${INSTALL_PROGRAM} ${WRKSRC}/chipmunk ${DESTDIR}${PREFIX}/sbin/chipmunk .include "../../devel/readline/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/misc/colorize/Makefile b/misc/colorize/Makefile index 41ce7647ed9..3db58150c8a 100644 --- a/misc/colorize/Makefile +++ b/misc/colorize/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2008/01/04 06:04:42 obache Exp $ +# $NetBSD: Makefile,v 1.17 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= colorize_0.3.0 @@ -12,6 +12,8 @@ MAINTAINER= zuntum@NetBSD.org HOMEPAGE= # http://colorize.raszi.hu/ COMMENT= Log colorize perl script +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} NO_BUILD= yes @@ -32,16 +34,20 @@ post-extract: ${GUNZIP_CMD} ${WRKSRC}/examples/colorize-tail.sh.gz do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/colorize.pl ${PREFIX}/bin/colorize - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/colorize - ${INSTALL_DATA} ${WRKSRC}/colorizerc ${PREFIX}/share/examples/colorize - ${INSTALL_MAN} ${WRKSRC}/colorize.pl.1 ${PREFIX}/${PKGMANDIR}/man1/colorize.1 - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/colorize - cd ${WRKSRC} && ${INSTALL_DATA} README TIPS ${PREFIX}/share/doc/colorize + ${INSTALL_SCRIPT} ${WRKSRC}/colorize.pl ${DESTDIR}${PREFIX}/bin/colorize + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/colorize + ${INSTALL_DATA} ${WRKSRC}/colorizerc \ + ${DESTDIR}${PREFIX}/share/examples/colorize + ${INSTALL_MAN} ${WRKSRC}/colorize.pl.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/colorize.1 + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/colorize + cd ${WRKSRC} && ${INSTALL_DATA} README TIPS \ + ${DESTDIR}${PREFIX}/share/doc/colorize ${INSTALL_SCRIPT} ${WRKSRC}/examples/colorize-fifo.sh \ - ${PREFIX}/share/examples/colorize + ${DESTDIR}${PREFIX}/share/examples/colorize ${INSTALL_SCRIPT} ${WRKSRC}/examples/colorize-tail.sh \ - ${PREFIX}/share/examples/colorize - ${INSTALL_DATA} ${WRKSRC}/examples/Xlog.tar.gz ${PREFIX}/share/examples/colorize + ${DESTDIR}${PREFIX}/share/examples/colorize + ${INSTALL_DATA} ${WRKSRC}/examples/Xlog.tar.gz \ + ${DESTDIR}${PREFIX}/share/examples/colorize .include "../../mk/bsd.pkg.mk" diff --git a/misc/cowsay/Makefile b/misc/cowsay/Makefile index f7822c6bbe3..dd7678c384d 100644 --- a/misc/cowsay/Makefile +++ b/misc/cowsay/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2007/01/07 09:14:00 rillig Exp $ +# $NetBSD: Makefile,v 1.11 2008/03/04 19:21:11 jlam Exp $ DISTNAME= cowsay-3.03 PKGREVISION= 1 @@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.nog.net/~tony/warez/cowsay.shtml COMMENT= Configurable talking cow +PKG_DESTDIR_SUPPORT= user-destdir + USE_TOOLS+= perl:run SUBST_CLASSES+= pap @@ -23,10 +25,10 @@ NO_BUILD= yes INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/cows do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/cowsay ${PREFIX}/bin - cd ${PREFIX}/bin; ${LN} -s cowsay cowthink - ${INSTALL_DATA} ${WRKSRC}/cowsay.1 ${PREFIX}/${PKGMANDIR}/man1 - cd ${PREFIX}/${PKGMANDIR}/man1; ${LN} -s cowsay.1 cowthink.1 - ${INSTALL_DATA} ${WRKSRC}/cows/*.cow ${PREFIX}/share/cows + ${INSTALL_SCRIPT} ${WRKSRC}/cowsay ${DESTDIR}${PREFIX}/bin + cd ${DESTDIR}${PREFIX}/bin; ${LN} -s cowsay cowthink + ${INSTALL_DATA} ${WRKSRC}/cowsay.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + cd ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; ${LN} -s cowsay.1 cowthink.1 + ${INSTALL_DATA} ${WRKSRC}/cows/*.cow ${DESTDIR}${PREFIX}/share/cows .include "../../mk/bsd.pkg.mk" diff --git a/misc/cuecat/Makefile b/misc/cuecat/Makefile index a8d0c31b800..8abe755a284 100644 --- a/misc/cuecat/Makefile +++ b/misc/cuecat/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2006/03/04 21:30:10 jlam Exp $ +# $NetBSD: Makefile,v 1.13 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= cuecat-0.2.1 @@ -19,13 +19,15 @@ NO_SRC_ON_CDROM= ${RESTRICTED} NO_BIN_ON_FTP= ${RESTRICTED} NO_BIN_ON_CDROM= ${RESTRICTED} +PKG_DESTDIR_SUPPORT= user-destdir + USE_TOOLS+= gmake INSTALLATION_DIRS= bin do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/read_cuecat ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cuecat - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/cuecat + ${INSTALL_PROGRAM} ${WRKSRC}/read_cuecat ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/cuecat + ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/cuecat .include "../../mk/bsd.pkg.mk" diff --git a/misc/cuetools/Makefile b/misc/cuetools/Makefile index 41bda1b53e7..ae52e5a037a 100644 --- a/misc/cuetools/Makefile +++ b/misc/cuetools/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2007/01/07 09:14:00 rillig Exp $ +# $NetBSD: Makefile,v 1.12 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= cuetools-1.2 @@ -11,22 +11,27 @@ HOMEPAGE= http://cuetools.berlios.de/ COMMENT= Set of utilities to manipulate cue and toc files PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir USE_TOOLS+= flex gmake yacc INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/tools/cuebreakpoints ${PREFIX}/bin/ - ${INSTALL_PROGRAM} ${WRKSRC}/tools/cueconvert ${PREFIX}/bin/ - ${INSTALL_PROGRAM} ${WRKSRC}/tools/cueprint ${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/tools/cuebreakpoints \ + ${DESTDIR}${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/tools/cueconvert \ + ${DESTDIR}${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/tools/cueprint \ + ${DESTDIR}${PREFIX}/bin/ ${INSTALL_DATA} ${WRKSRC}/man/cuebreakpoints.man \ - ${PREFIX}/${PKGMANDIR}/man1/cuebreakpoints.1 + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/cuebreakpoints.1 ${INSTALL_DATA} ${WRKSRC}/man/cueconvert.man \ - ${PREFIX}/${PKGMANDIR}/man1/cueconvert.1 + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/cueconvert.1 ${INSTALL_DATA} ${WRKSRC}/man/cueprint.man \ - ${PREFIX}/${PKGMANDIR}/man1/cueprint.1 - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cuetools/ - ${INSTALL_DATA} ${WRKSRC}/formats.txt ${PREFIX}/share/doc/cuetools/ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/cueprint.1 + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/cuetools/ + ${INSTALL_DATA} ${WRKSRC}/formats.txt \ + ${DESTDIR}${PREFIX}/share/doc/cuetools/ .include "../../mk/bsd.pkg.mk" diff --git a/misc/dnetc/Makefile b/misc/dnetc/Makefile index 58f783bb37d..1dca6f7053e 100644 --- a/misc/dnetc/Makefile +++ b/misc/dnetc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2006/09/06 20:38:57 wiz Exp $ +# $NetBSD: Makefile,v 1.19 2008/03/04 19:21:11 jlam Exp $ DISTNAME= ${DISTNAME_${OPSYS}_${MACHINE_ARCH}} PKGNAME= dnetc-2.${DISTVER_${OPSYS}_${MACHINE_ARCH}} @@ -15,9 +15,11 @@ ONLY_FOR_PLATFORM= Darwin-*-powerpc NetBSD-*-alpha NetBSD-*-arm \ NetBSD-*-mipsel NetBSD-*-powerpc NetBSD-*-sparc \ NetBSD-*-sparc64 NetBSD-*-vax SunOS-*-sparc \ SunOS-*-sparc64 -NO_BUILD= YES + +PKG_DESTDIR_SUPPORT= user-destdir USE_TOOLS+= gtar +NO_BUILD= YES DISTNAME_Darwin_powerpc= dnetc-macosx-ppc DISTNAME_NetBSD_m68k= dnetc-netbsd-m68k-elf @@ -60,16 +62,16 @@ do-extract: .endif do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dnetc/ + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/dnetc/ .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32" \ || ${MACHINE_ARCH} == "sparc" - ${INSTALL_DATA} ${WRKSRC}/readme.* ${PREFIX}/share/doc/dnetc/ - ${INSTALL_DATA} ${WRKSRC}/*.txt ${PREFIX}/share/doc/dnetc/ + ${INSTALL_DATA} ${WRKSRC}/readme.* ${DESTDIR}${PREFIX}/share/doc/dnetc/ + ${INSTALL_DATA} ${WRKSRC}/*.txt ${DESTDIR}${PREFIX}/share/doc/dnetc/ .else - ${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/dnetc/ + ${INSTALL_DATA} ${WRKSRC}/docs/* ${DESTDIR}${PREFIX}/share/doc/dnetc/ .endif - ${INSTALL_MAN} ${WRKSRC}/dnetc.1 ${PREFIX}/${PKGMANDIR}/man1/ - ${INSTALL_PROGRAM} ${WRKSRC}/dnetc ${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/dnetc.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ + ${INSTALL_PROGRAM} ${WRKSRC}/dnetc ${DESTDIR}${PREFIX}/bin/ .if defined(PKG_DEVELOPER) && defined(ALL_DISTFILES) all-distfiles: diff --git a/misc/dtach/Makefile b/misc/dtach/Makefile index 3459f80c45d..9cc53099537 100644 --- a/misc/dtach/Makefile +++ b/misc/dtach/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2007/06/14 01:09:42 jlam Exp $ +# $NetBSD: Makefile,v 1.5 2008/03/04 19:21:11 jlam Exp $ DISTNAME= dtach-0.7 CATEGORIES= misc @@ -8,6 +8,8 @@ MAINTAINER= fgudin@nerim.net HOMEPAGE= http://dtach.sourceforge.net/ COMMENT= Small program that emulates the detach feature of screen +PKG_DESTDIR_SUPPORT= user-destdir + GNU_CONFIGURE= yes BUILD_TARGET= dtach @@ -17,11 +19,12 @@ DOCDIR= ${PREFIX}/share/doc/${PKGBASE} INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: - ${INSTALL_PROGRAM} ${WRKSRC:Q}/dtach ${PREFIX:Q}/bin - ${INSTALL_MAN} ${WRKSRC:Q}/dtach.1 ${PREFIX:Q}/${PKGMANDIR:Q}/man1 - ${INSTALL_DATA_DIR} ${DOCDIR:Q} + ${INSTALL_PROGRAM} ${WRKSRC:Q}/dtach ${DESTDIR}${PREFIX:Q}/bin + ${INSTALL_MAN} ${WRKSRC:Q}/dtach.1 \ + ${DESTDIR}${PREFIX:Q}/${PKGMANDIR:Q}/man1 + ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR:Q} cd ${WRKSRC:Q}; for f in ${DOCS}; do \ - ${INSTALL_DATA} $$f ${DOCDIR}/$$f; \ + ${INSTALL_DATA} $$f ${DESTDIR}${DOCDIR}/$$f; \ done .include "../../mk/bsd.pkg.mk" diff --git a/misc/dvorakng/Makefile b/misc/dvorakng/Makefile index 3e21134300e..4b533f66508 100644 --- a/misc/dvorakng/Makefile +++ b/misc/dvorakng/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2007/02/22 19:26:49 wiz Exp $ +# $NetBSD: Makefile,v 1.7 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= dvorakng-0.6.0rc1 @@ -12,6 +12,7 @@ MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= US English Dvorak keyboard tutor PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir USE_NCURSES= # strange keyboard handling @@ -20,7 +21,7 @@ INSTALLATION_DIRS= bin USE_LANGUAGES= c++ do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/dvorakng ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/dvorakng ${DESTDIR}${PREFIX}/bin .include "../../devel/ncurses/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/misc/easymenu/Makefile b/misc/easymenu/Makefile index 30f8b0a213d..bc552ee2e56 100644 --- a/misc/easymenu/Makefile +++ b/misc/easymenu/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2007/03/25 05:47:34 wiz Exp $ +# $NetBSD: Makefile,v 1.6 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= easymenu-0.7.2 @@ -9,40 +9,42 @@ MAINTAINER= ola@mrEriksson.net HOMEPAGE= http://www.mreriksson.net/dev/easymenu/ COMMENT= Software used to generate menu systems +PKG_DESTDIR_SUPPORT= user-destdir + NO_BUILD= yes INSTALLATION_DIRS= bin do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/bin/easymenu ${PREFIX}/bin/ - ${INSTALL_DATA_DIR} ${PREFIX}/share/easymenu - ${INSTALL_DATA_DIR} ${PREFIX}/share/easymenu/etc - ${INSTALL_DATA_DIR} ${PREFIX}/share/easymenu/etc/menus-sample + ${INSTALL_SCRIPT} ${WRKSRC}/bin/easymenu ${DESTDIR}${PREFIX}/bin/ + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/easymenu + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/easymenu/etc + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/easymenu/etc/menus-sample ${INSTALL_SCRIPT} ${WRKSRC}/easymenu-demo.sh \ - ${PREFIX}/share/easymenu/ + ${DESTDIR}${PREFIX}/share/easymenu/ ${INSTALL_SCRIPT} ${WRKSRC}/easymenu-demo-bash.sh \ - ${PREFIX}/share/easymenu/ + ${DESTDIR}${PREFIX}/share/easymenu/ ${INSTALL_DATA} ${WRKSRC}/README \ - ${PREFIX}/share/easymenu/ + ${DESTDIR}${PREFIX}/share/easymenu/ ${INSTALL_DATA} ${WRKSRC}/CHANGES \ - ${PREFIX}/share/easymenu/ + ${DESTDIR}${PREFIX}/share/easymenu/ ${INSTALL_DATA} ${WRKSRC}/etc/easymenu.conf-minimode \ - ${PREFIX}/share/easymenu/etc/ + ${DESTDIR}${PREFIX}/share/easymenu/etc/ ${INSTALL_DATA} ${WRKSRC}/etc/easymenu.conf-sample \ - ${PREFIX}/share/easymenu/etc/ + ${DESTDIR}${PREFIX}/share/easymenu/etc/ ${INSTALL_DATA} ${WRKSRC}/etc/menus-sample/demo \ - ${PREFIX}/share/easymenu/etc/menus-sample/ + ${DESTDIR}${PREFIX}/share/easymenu/etc/menus-sample/ ${INSTALL_DATA} ${WRKSRC}/etc/menus-sample/demo.1 \ - ${PREFIX}/share/easymenu/etc/menus-sample/ + ${DESTDIR}${PREFIX}/share/easymenu/etc/menus-sample/ ${INSTALL_DATA} ${WRKSRC}/etc/menus-sample/demo.2 \ - ${PREFIX}/share/easymenu/etc/menus-sample/ + ${DESTDIR}${PREFIX}/share/easymenu/etc/menus-sample/ ${INSTALL_DATA} ${WRKSRC}/etc/menus-sample/demo.3 \ - ${PREFIX}/share/easymenu/etc/menus-sample/ + ${DESTDIR}${PREFIX}/share/easymenu/etc/menus-sample/ ${INSTALL_DATA} ${WRKSRC}/etc/menus-sample/main \ - ${PREFIX}/share/easymenu/etc/menus-sample/ + ${DESTDIR}${PREFIX}/share/easymenu/etc/menus-sample/ ${INSTALL_DATA} ${WRKSRC}/etc/menus-sample/post-demo \ - ${PREFIX}/share/easymenu/etc/menus-sample/ + ${DESTDIR}${PREFIX}/share/easymenu/etc/menus-sample/ ${INSTALL_DATA} ${WRKSRC}/etc/menus-sample/pre-demo \ - ${PREFIX}/share/easymenu/etc/menus-sample/ + ${DESTDIR}${PREFIX}/share/easymenu/etc/menus-sample/ .include "../../mk/bsd.pkg.mk" diff --git a/misc/edict/Makefile b/misc/edict/Makefile index 5fbd730e08f..811687e34b1 100644 --- a/misc/edict/Makefile +++ b/misc/edict/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2006/12/08 16:59:56 wiz Exp $ +# $NetBSD: Makefile,v 1.8 2008/03/04 19:21:11 jlam Exp $ # # Update instructions: # . bump PKGNAME to today's date @@ -18,6 +18,8 @@ MAINTAINER= wiz@NetBSD.org HOMEPAGE= http://www.csse.monash.edu.au/~jwb/edict.html COMMENT= Japanese-English dictionary file +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} DIST_SUBDIR= ${PKGNAME_NOREV} EXTRACT_ONLY= edict.gz @@ -25,12 +27,12 @@ EXTRACT_ONLY= edict.gz NO_BUILD= yes do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/edict - ${INSTALL_DATA} ${WRKSRC}/edict ${PREFIX}/share/edict/ + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/edict + ${INSTALL_DATA} ${WRKSRC}/edict ${DESTDIR}${PREFIX}/share/edict/ ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/edict.gz \ - ${PREFIX}/share/edict - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/edict + ${DESTDIR}${PREFIX}/share/edict + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/edict ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/edict_doc.html \ - ${PREFIX}/share/doc/edict + ${DESTDIR}${PREFIX}/share/doc/edict .include "../../mk/bsd.pkg.mk" diff --git a/misc/elscreen/Makefile b/misc/elscreen/Makefile index 6e66ca14a8a..1cb0fe9cd2c 100644 --- a/misc/elscreen/Makefile +++ b/misc/elscreen/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2008/01/04 05:54:57 obache Exp $ +# $NetBSD: Makefile,v 1.14 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= elscreen-1.4.5 @@ -20,13 +20,15 @@ MAINTAINER= uebayasi@NetBSD.org HOMEPAGE= http://www.morishima.net/~naoto/software/elscreen/ COMMENT= Window manager within Emacs +PKG_DESTDIR_SUPPORT= user-destdir + NO_BUILD= yes do-install: - @${INSTALL_DATA_DIR} ${EMACS_LISPPREFIX}/elscreen - @${INSTALL_DATA_DIR} ${PREFIX}/share/doc/elscreen - @${INSTALL_DATA} ${WRKDIR}/*/*.el ${EMACS_LISPPREFIX}/elscreen - @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/elscreen + ${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX}/elscreen + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/elscreen + ${INSTALL_DATA} ${WRKDIR}/*/*.el ${DESTDIR}${EMACS_LISPPREFIX}/elscreen + ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/elscreen .include "../../mk/emacs.mk" diff --git a/misc/emacs-wiki/Makefile b/misc/emacs-wiki/Makefile index 85e012488ff..15ba897657f 100644 --- a/misc/emacs-wiki/Makefile +++ b/misc/emacs-wiki/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2007/01/10 15:18:22 obache Exp $ +# $NetBSD: Makefile,v 1.2 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= ${EMACSWIKI}-${EMACSWIKIVERSION} @@ -15,35 +15,41 @@ EMACSWIKI= emacs-wiki EMACSWIKIVERSION= 2.70 DEPENDS= semi>=1.14.6:../../devel/semi +PKG_DESTDIR_SUPPORT= user-destdir + #WRKSRC= ${WRKDIR}/${EMACSWIKI} .include "../../mk/emacs.mk" -LISPDIR=${EMACS_LISPPREFIX}/emacs-wiki +LISPDIR= ${EMACS_LISPPREFIX}/emacs-wiki -SRCS= emacs-wiki-colors.el emacs-wiki-httpd.el emacs-wiki-id.el emacs-wiki-macros.el emacs-wiki-mathml.el -SRCS+= emacs-wiki-menu.el emacs-wiki-pgg.el emacs-wiki-project.el emacs-wiki-publish.el emacs-wiki-regexps.el -SRCS+= emacs-wiki-srctag.el emacs-wiki-table.el emacs-wiki-transition.el emacs-wiki.el -SRCS+= contrib/cgi.el contrib/htmlize.el contrib/httpd.el contrib/table.el contrib/update-remote.el +SRCS= emacs-wiki-colors.el emacs-wiki-httpd.el emacs-wiki-id.el +SRCS+= emacs-wiki-macros.el emacs-wiki-mathml.el emacs-wiki-menu.el +SRCS+= emacs-wiki-pgg.el emacs-wiki-project.el emacs-wiki-publish.el +SRCS+= emacs-wiki-regexps.el emacs-wiki-srctag.el emacs-wiki-table.el +SRCS+= emacs-wiki-transition.el emacs-wiki.el contrib/cgi.el +SRCS+= contrib/htmlize.el contrib/httpd.el contrib/table.el +SRCS+= contrib/update-remote.el do-build: cd ${WRKSRC} ; \ for i in ${SRCS}; do \ - ${EMACS_BIN} --no-init-file --eval="(add-to-list 'load-path \"${WRKSRC}\")"\ + ${EMACS_BIN} --no-init-file \ + --eval="(add-to-list 'load-path \"${WRKSRC}\")"\ --eval="(add-to-list 'load-path \"${WRKSRC}/contrib\")"\ -batch -q -f batch-byte-compile $$i; \ done do-install: - ${MKDIR} ${LISPDIR} - ${MKDIR} ${LISPDIR}/contrib + ${MKDIR} ${DESTDIR}${LISPDIR} + ${MKDIR} ${DESTDIR}${LISPDIR}/contrib .for i in ${SRCS:Mcontrib/*} - ${INSTALL_DATA} ${WRKSRC}/${i} ${LISPDIR}/contrib - ${INSTALL_DATA} ${WRKSRC}/${i:R}.elc ${LISPDIR}/contrib + ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${LISPDIR}/contrib + ${INSTALL_DATA} ${WRKSRC}/${i:R}.elc ${DESTDIR}${LISPDIR}/contrib .endfor .for i in ${SRCS:Ncontrib/*} - ${INSTALL_DATA} ${WRKSRC}/${i} ${LISPDIR} - ${INSTALL_DATA} ${WRKSRC}/${i:R}.elc ${LISPDIR} + ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${LISPDIR} + ${INSTALL_DATA} ${WRKSRC}/${i:R}.elc ${DESTDIR}${LISPDIR} .endfor .include "../../mk/bsd.pkg.mk" diff --git a/misc/figlet-fonts/Makefile b/misc/figlet-fonts/Makefile index caad1223e20..6edc90b4b78 100644 --- a/misc/figlet-fonts/Makefile +++ b/misc/figlet-fonts/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2007/02/22 19:26:49 wiz Exp $ +# $NetBSD: Makefile,v 1.10 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= figlet-fonts-20021023 @@ -13,6 +13,8 @@ COMMENT= Additional fonts for figlet DEPENDS+= figlet-[0-9]*:../../misc/figlet +PKG_DESTDIR_SUPPORT= user-destdir + DIST_SUBDIR= ${DISTNAME} NO_CONFIGURE= yes NO_BUILD= yes @@ -29,14 +31,16 @@ post-extract: do-install: cd ${WRKDIR}/contributed && \ - ${INSTALL_DATA} *.fl* *.txt ${PREFIX}/share/figlet + ${INSTALL_DATA} *.fl* *.txt ${DESTDIR}${PREFIX}/share/figlet cd ${WRKDIR}/contributed/bdffonts && \ - ${INSTALL_DATA} *.* ${PREFIX}/share/figlet + ${INSTALL_DATA} *.* ${DESTDIR}${PREFIX}/share/figlet cd ${WRKDIR}/contributed/C64-fonts && \ - ${INSTALL_DATA} *.* ${PREFIX}/share/figlet + ${INSTALL_DATA} *.* ${DESTDIR}${PREFIX}/share/figlet cd ${WRKDIR}/international && \ - ${INSTALL_DATA} *.* ${PREFIX}/share/figlet - ${INSTALL_SCRIPT} ${WRKDIR}/international/febrew ${PREFIX}/bin - ${INSTALL_DATA} ${WRKDIR}/ms-dos/dosrebel.flf ${PREFIX}/share/figlet + ${INSTALL_DATA} *.* ${DESTDIR}${PREFIX}/share/figlet + ${INSTALL_SCRIPT} ${WRKDIR}/international/febrew \ + ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKDIR}/ms-dos/dosrebel.flf \ + ${DESTDIR}${PREFIX}/share/figlet .include "../../mk/bsd.pkg.mk" diff --git a/misc/firelib/Makefile b/misc/firelib/Makefile index f0f2738921b..c1d193a04e4 100644 --- a/misc/firelib/Makefile +++ b/misc/firelib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2006/10/04 21:49:19 wiz Exp $ +# $NetBSD: Makefile,v 1.4 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= firelib-1.0.1 @@ -10,6 +10,7 @@ HOMEPAGE= http://fire.org/ COMMENT= Library for predicting fire spread rate, intensity, and more PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir WRKSRC= ${WRKDIR} @@ -23,11 +24,11 @@ post-build: cd ${WRKSRC} && ${RANLIB} libfire.a do-install: - ${INSTALL_LIB} ${WRKSRC}/libfire.a ${PREFIX}/lib - ${INSTALL_DATA} ${WRKSRC}/fireLib.h ${PREFIX}/include - ${INSTALL_PROGRAM} ${WRKSRC}/fireSim ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/firelib - ${INSTALL_DATA} ${WRKSRC}/firelib.ps ${PREFIX}/share/doc/firelib - ${INSTALL_DATA} ${WRKSRC}/license.txt ${PREFIX}/share/doc/firelib + ${INSTALL_LIB} ${WRKSRC}/libfire.a ${DESTDIR}${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/fireLib.h ${DESTDIR}${PREFIX}/include + ${INSTALL_PROGRAM} ${WRKSRC}/fireSim ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/firelib + ${INSTALL_DATA} ${WRKSRC}/firelib.ps ${DESTDIR}${PREFIX}/share/doc/firelib + ${INSTALL_DATA} ${WRKSRC}/license.txt ${DESTDIR}${PREFIX}/share/doc/firelib .include "../../mk/bsd.pkg.mk" diff --git a/misc/gkrellm-launch/Makefile b/misc/gkrellm-launch/Makefile index 7b4466b9048..bc1ef37c6ac 100644 --- a/misc/gkrellm-launch/Makefile +++ b/misc/gkrellm-launch/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2008/01/18 05:08:33 tnn Exp $ +# $NetBSD: Makefile,v 1.14 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= gkrellmlaunch-0.5 @@ -11,13 +11,16 @@ MAINTAINER= cube@NetBSD.org HOMEPAGE= http://gkrellmlaunch.sourceforge.net/ COMMENT= GKrellM plugin to allow quick launch of applications +PKG_DESTDIR_SUPPORT= user-destdir + BUILD_TARGET= gkrellmlaunch.so USE_TOOLS+= pkg-config INSTALLATION_DIRS= lib/gkrellm2/plugins do-install: - ${INSTALL_DATA} ${WRKSRC}/gkrellmlaunch.so ${PREFIX}/lib/gkrellm2/plugins + ${INSTALL_DATA} ${WRKSRC}/gkrellmlaunch.so \ + ${DESTDIR}${PREFIX}/lib/gkrellm2/plugins .include "../../sysutils/gkrellm/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/misc/gnuls/Makefile b/misc/gnuls/Makefile index 2d7aba223c0..84de493659f 100644 --- a/misc/gnuls/Makefile +++ b/misc/gnuls/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2007/07/20 12:41:29 tnn Exp $ +# $NetBSD: Makefile,v 1.19 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= coreutils-6.9 @@ -13,6 +13,8 @@ COMMENT= GNU ls utility with color support CONFLICTS= coreutils-[0-9]* linuxls-[0-9]* +PKG_DESTDIR_SUPPORT= user-destdir + GNU_CONFIGURE= YES PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX:Q} @@ -33,13 +35,13 @@ CONFIGURE_ENV+= MKDIR_P=${MKDIR:Q} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/dircolors \ - ${PREFIX}/bin/${GNU_PROGRAM_PREFIX}dircolors + ${DESTDIR}${PREFIX}/bin/${GNU_PROGRAM_PREFIX}dircolors ${INSTALL_PROGRAM} ${WRKSRC}/src/ls \ - ${PREFIX}/bin/${GNU_PROGRAM_PREFIX}ls + ${DESTDIR}${PREFIX}/bin/${GNU_PROGRAM_PREFIX}ls ${INSTALL_DATA} ${WRKSRC}/man/dircolors.1 \ - ${PREFIX}/${PKGMANDIR}/man1/${GNU_PROGRAM_PREFIX}dircolors.1 + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${GNU_PROGRAM_PREFIX}dircolors.1 ${INSTALL_DATA} ${WRKSRC}/man/ls.1 \ - ${PREFIX}/${PKGMANDIR}/man1/${GNU_PROGRAM_PREFIX}ls.1 + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${GNU_PROGRAM_PREFIX}ls.1 .include "../../converters/libiconv/buildlink3.mk" .include "../../devel/gettext-lib/buildlink3.mk" diff --git a/misc/granulate/Makefile b/misc/granulate/Makefile index 39e6323bf78..1ef6a029d40 100644 --- a/misc/granulate/Makefile +++ b/misc/granulate/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2005/06/17 03:50:21 jlam Exp $ +# $NetBSD: Makefile,v 1.6 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= granulate-0.1 @@ -8,11 +8,13 @@ MASTER_SITES= ftp://134.74.16.12/pub/ MAINTAINER= zuntum@NetBSD.org COMMENT= Program for splitting files in place +PKG_DESTDIR_SUPPORT= user-destdir + INSTALLATION_DIRS= bin do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/granulate ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/granulate - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/granulate + ${INSTALL_PROGRAM} ${WRKSRC}/granulate ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/granulate + ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/granulate .include "../../mk/bsd.pkg.mk" diff --git a/misc/ipbt/Makefile b/misc/ipbt/Makefile index a3bd0b1bf32..c2936fc02f8 100644 --- a/misc/ipbt/Makefile +++ b/misc/ipbt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2007/06/08 06:07:25 pooka Exp $ +# $NetBSD: Makefile,v 1.2 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= ipbt-r7471 @@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.chiark.greenend.org.uk/~sgtatham/ipbt/ COMMENT= High-tech ttyrec player +PKG_DESTDIR_SUPPORT= user-destdir + USE_TOOLS+= perl BUILD_TARGET= ipbt @@ -22,10 +24,11 @@ post-build: ${WRKSRC}/ttygrep > ${WRKSRC}/ttygrep.path do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/ipbt ${PREFIX}/bin/ipbt - ${INSTALL_MAN} ${WRKSRC}/ipbt.1 ${PREFIX}/${PKGMANDIR}/man1/ipbt.1 - ${INSTALL_SCRIPT} ${WRKSRC}/ttydump.path ${PREFIX}/bin/ttydump - ${INSTALL_SCRIPT} ${WRKSRC}/ttygrep.path ${PREFIX}/bin/ttygrep + ${INSTALL_PROGRAM} ${WRKSRC}/ipbt ${DESTDIR}${PREFIX}/bin/ipbt + ${INSTALL_MAN} ${WRKSRC}/ipbt.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ipbt.1 + ${INSTALL_SCRIPT} ${WRKSRC}/ttydump.path ${DESTDIR}${PREFIX}/bin/ttydump + ${INSTALL_SCRIPT} ${WRKSRC}/ttygrep.path ${DESTDIR}${PREFIX}/bin/ttygrep .include "../../devel/ncurses/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/misc/jhd/Makefile b/misc/jhd/Makefile index 16266c8b572..357227aa832 100644 --- a/misc/jhd/Makefile +++ b/misc/jhd/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2007/01/07 09:14:01 rillig Exp $ +# $NetBSD: Makefile,v 1.9 2008/03/04 19:21:11 jlam Exp $ DISTNAME= jhd-2.3 CATEGORIES= japanese misc @@ -9,13 +9,15 @@ COMMENT= Japanese Hexadecimal Dump BUILD_DEPENDS+= nkf>=1.7:../../converters/nkf +PKG_DESTDIR_SUPPORT= user-destdir INSTALLATION_DIRS= bin ${PKGMANDIR}/ja_JP.EUC/man1 post-build: @(cd ${WRKSRC}; ${MV} jhd.1 jhd.1.org; nkf -e jhd.1.org > jhd.1) do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/jhd ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/jhd.1 ${PREFIX}/${PKGMANDIR}/ja_JP.EUC/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/jhd ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/jhd.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/ja_JP.EUC/man1 .include "../../mk/bsd.pkg.mk" diff --git a/misc/kanjidic/Makefile b/misc/kanjidic/Makefile index 1f771e81727..1ae8d3e78ae 100644 --- a/misc/kanjidic/Makefile +++ b/misc/kanjidic/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2007/07/08 09:43:49 wiz Exp $ +# $NetBSD: Makefile,v 1.10 2008/03/04 19:21:11 jlam Exp $ # # Update instructions: # . bump PKGNAME to today's date @@ -18,6 +18,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.csse.monash.edu.au/~jwb/kanjidic.html COMMENT= Japanese Kanji information +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} DIST_SUBDIR= ${PKGNAME_NOREV} EXTRACT_ONLY= kanjidic.gz @@ -25,12 +27,12 @@ EXTRACT_ONLY= kanjidic.gz NO_BUILD= yes do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/kanjidic - ${INSTALL_DATA} ${WRKSRC}/kanjidic ${PREFIX}/share/kanjidic + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/kanjidic + ${INSTALL_DATA} ${WRKSRC}/kanjidic ${DESTDIR}${PREFIX}/share/kanjidic ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/kanjidic.gz \ - ${PREFIX}/share/kanjidic - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/kanjidic + ${DESTDIR}${PREFIX}/share/kanjidic + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/kanjidic ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/kanjidic.doc \ - ${PREFIX}/share/doc/kanjidic + ${DESTDIR}${PREFIX}/share/doc/kanjidic .include "../../mk/bsd.pkg.mk" diff --git a/misc/kanjidic2/Makefile b/misc/kanjidic2/Makefile index 4601538d8b7..b5cf7e9a535 100644 --- a/misc/kanjidic2/Makefile +++ b/misc/kanjidic2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2007/07/08 09:43:49 wiz Exp $ +# $NetBSD: Makefile,v 1.9 2008/03/04 19:21:11 jlam Exp $ # # Update instructions: # . bump PKGNAME to today's date @@ -18,6 +18,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.csse.monash.edu.au/~jwb/kanjidic.html COMMENT= Japanese Kanji information +PKG_DESTDIR_SUPPORT= user-destdir + DIST_SUBDIR= ${PKGNAME_NOREV} EXTRACT_ONLY= kanjidic2.xml.gz kanjidic2_dtd.gz kanjidic2_xsd.gz WRKSRC= ${WRKDIR} @@ -25,16 +27,17 @@ WRKSRC= ${WRKDIR} NO_BUILD= yes do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/kanjidic2 - ${INSTALL_DATA} ${WRKSRC}/kanjidic2.xml ${PREFIX}/share/kanjidic2/ + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/kanjidic2 + ${INSTALL_DATA} ${WRKSRC}/kanjidic2.xml \ + ${DESTDIR}${PREFIX}/share/kanjidic2/ ${INSTALL_DATA} ${WRKSRC}/kanjidic2_dtd \ - ${PREFIX}/share/kanjidic2/kanjidic2.dtd + ${DESTDIR}${PREFIX}/share/kanjidic2/kanjidic2.dtd ${INSTALL_DATA} ${WRKSRC}/kanjidic2_xsd \ - ${PREFIX}/share/kanjidic2/kanjidic2.xsd - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/kanjidic2 + ${DESTDIR}${PREFIX}/share/kanjidic2/kanjidic2.xsd + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/kanjidic2 ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/kanjidic_doc.html \ - ${PREFIX}/share/doc/kanjidic2 + ${DESTDIR}${PREFIX}/share/doc/kanjidic2 ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/kanjidic2_ov.html \ - ${PREFIX}/share/doc/kanjidic2 + ${DESTDIR}${PREFIX}/share/doc/kanjidic2 .include "../../mk/bsd.pkg.mk" diff --git a/misc/latin-words-bin/Makefile b/misc/latin-words-bin/Makefile index 0510e4bdff8..c3ba9b13c2a 100644 --- a/misc/latin-words-bin/Makefile +++ b/misc/latin-words-bin/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2007/07/29 05:19:35 jlam Exp $ +# $NetBSD: Makefile,v 1.9 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= words-1.97-linux @@ -14,6 +14,8 @@ COMMENT= Latin-to-English dictionary program (Linux binary) EMUL_PLATFORMS= linux-i386 EMUL_MODULES.linux= base +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/words-1.97 INSTALLATION_DIRS= bin libexec @@ -22,16 +24,17 @@ do-build: > ${WRKSRC}/latin-words do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/latin-words ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/words ${PREFIX}/libexec/latin-words - ${INSTALL_DATA_DIR} ${PREFIX}/libdata/latin-words + ${INSTALL_SCRIPT} ${WRKSRC}/latin-words ${DESTDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/words \ + ${DESTDIR}${PREFIX}/libexec/latin-words + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/libdata/latin-words .for f in ADDONS.LAT DICTFILE.GEN INDXFILE.GEN INFLECTS.SEC \ STEMFILE.GEN UNIQUES.LAT - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/libdata/latin-words + ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/libdata/latin-words .endfor - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/latin-words + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/latin-words .for f in README wordsdoc.html wordsdoc.txt - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/latin-words + ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/doc/latin-words .endfor .include "../../mk/bsd.pkg.mk" diff --git a/misc/mirmon/Makefile b/misc/mirmon/Makefile index 74be4d17488..2ede4adc6b6 100644 --- a/misc/mirmon/Makefile +++ b/misc/mirmon/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2007/12/02 13:04:11 wiz Exp $ +# $NetBSD: Makefile,v 1.4 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= mirmon-1.36 @@ -10,6 +10,7 @@ HOMEPAGE= http://people.cs.uu.nl/henkp/mirmon/ COMMENT= Monitor the state of mirror servers PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir REPLACE_PERL+= mirmon USE_TOOLS+= perl:run pod2man @@ -36,13 +37,13 @@ do-build: cd ${WRKSRC} && ${POD2MAN} mirmon > ${WRKDIR}/mirmon.1 do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/mirmon ${PREFIX}/bin - ${INSTALL_MAN} ${WRKDIR}/mirmon.1 ${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_DATA_DIR} ${EG_DIR} - ${INSTALL_DATA} ${WRKDIR}/mirmon.conf ${EG_DIR} - ${INSTALL_DATA_DIR} ${MIRMONDIR} - ${INSTALL_DATA} ${WRKSRC}/countries.list ${MIRMONDIR} - ${INSTALL_DATA_DIR} ${MIRMONDIR}/icons - cd ${WRKSRC}/icons && ${INSTALL_DATA} * ${MIRMONDIR}/icons + ${INSTALL_SCRIPT} ${WRKSRC}/mirmon ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKDIR}/mirmon.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_DATA_DIR} ${DESTDIR}${EG_DIR} + ${INSTALL_DATA} ${WRKDIR}/mirmon.conf ${DESTDIR}${EG_DIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${MIRMONDIR} + ${INSTALL_DATA} ${WRKSRC}/countries.list ${DESTDIR}${MIRMONDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${MIRMONDIR}/icons + cd ${WRKSRC}/icons && ${INSTALL_DATA} * ${DESTDIR}${MIRMONDIR}/icons .include "../../mk/bsd.pkg.mk" diff --git a/misc/mmv/Makefile b/misc/mmv/Makefile index 2ce37086382..27a100f115a 100644 --- a/misc/mmv/Makefile +++ b/misc/mmv/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2007/02/22 19:26:50 wiz Exp $ +# $NetBSD: Makefile,v 1.15 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= mmv_1.01b.orig @@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= # none COMMENT= Move, copy, append or link multiple files using wildcard patterns +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/mmv-1.01b.orig BUILD_TARGET= mmv @@ -22,7 +24,8 @@ CFLAGS+= -DIS_SYSV INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/mmv ${PREFIX}/bin/mmv - ${INSTALL_MAN} ${WRKSRC}/mmv.1 ${PREFIX}/${PKGMANDIR}/man1/mmv.1 + ${INSTALL_PROGRAM} ${WRKSRC}/mmv ${DESTDIR}${PREFIX}/bin/mmv + ${INSTALL_MAN} ${WRKSRC}/mmv.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mmv.1 .include "../../mk/bsd.pkg.mk" diff --git a/misc/mtail/Makefile b/misc/mtail/Makefile index 20911850222..040947a826f 100644 --- a/misc/mtail/Makefile +++ b/misc/mtail/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2007/08/08 23:19:57 zuntum Exp $ +# $NetBSD: Makefile,v 1.11 2008/03/04 19:21:12 jlam Exp $ # DISTNAME= mtail-1.1.1 @@ -10,15 +10,19 @@ MAINTAINER= zuntum@NetBSD.org HOMEPAGE= http://matt.immute.net/src/mtail/ COMMENT= Small tail workalike that performs output coloring +PKG_DESTDIR_SUPPORT= user-destdir + NO_BUILD= yes PYTHON_PATCH_SCRIPTS= mtail INSTALLATION_DIRS= bin share/doc share/examples do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/mtail ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/mtail.README - ${INSTALL_DATA} ${WRKSRC}/mtailrc.sample ${PREFIX}/share/examples + ${INSTALL_SCRIPT} ${WRKSRC}/mtail ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/README \ + ${DESTDIR}${PREFIX}/share/doc/mtail.README + ${INSTALL_DATA} ${WRKSRC}/mtailrc.sample \ + ${DESTDIR}${PREFIX}/share/examples .include "../../lang/python/application.mk" .include "../../mk/bsd.pkg.mk" diff --git a/misc/multitail/Makefile b/misc/multitail/Makefile index 81a9994f0c9..dd9b68631f9 100644 --- a/misc/multitail/Makefile +++ b/misc/multitail/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2007/01/07 09:14:01 rillig Exp $ +# $NetBSD: Makefile,v 1.20 2008/03/04 19:21:12 jlam Exp $ # DISTNAME= multitail-4.0.6 @@ -10,17 +10,22 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.vanheusden.com/multitail/ COMMENT= View one or multiple files +PKG_DESTDIR_SUPPORT= user-destdir + USE_NCURSES= yes # Needs the <panel> library. -INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/multitail share/examples/multitail +INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/multitail \ + share/examples/multitail CONF_FILES= ${PREFIX:Q}/share/examples/multitail/multitail.conf \ ${PKG_SYSCONFDIR:Q}/multitail.conf do-install: - ${INSTALL_PROGRAM} ${WRKSRC:Q}/multitail ${PREFIX:Q}/bin/ - ${INSTALL_MAN} ${WRKSRC:Q}/multitail.1 ${PREFIX:Q}/man/man1/ - ${INSTALL_DATA} ${WRKSRC:Q}/multitail.conf ${PREFIX:Q}/share/examples/multitail/ - cd ${WRKSRC:Q} && ${INSTALL_DATA} *.txt manual*.html ${PREFIX:Q}/share/doc/multitail/ + ${INSTALL_PROGRAM} ${WRKSRC:Q}/multitail ${DESTDIR}${PREFIX:Q}/bin/ + ${INSTALL_MAN} ${WRKSRC:Q}/multitail.1 ${DESTDIR}${PREFIX:Q}/man/man1/ + ${INSTALL_DATA} ${WRKSRC:Q}/multitail.conf \ + ${DESTDIR}${PREFIX:Q}/share/examples/multitail/ + cd ${WRKSRC:Q} && ${INSTALL_DATA} *.txt manual*.html \ + ${DESTDIR}${PREFIX:Q}/share/doc/multitail/ .include "../../devel/ncurses/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/misc/parchive/Makefile b/misc/parchive/Makefile index a37743a78ad..8c6e0dfe55a 100644 --- a/misc/parchive/Makefile +++ b/misc/parchive/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2007/12/12 20:42:33 wiz Exp $ +# $NetBSD: Makefile,v 1.10 2008/03/04 19:21:12 jlam Exp $ # DISTNAME= par-v1.1 @@ -11,11 +11,13 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://parchive.sourceforge.net/ COMMENT= Create or use "Parity Volume Set" (PAR and Pnn) files +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/par-cmdline INSTALLATION_DIRS= bin do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/par ${PREFIX}/bin/parchive + ${INSTALL_PROGRAM} ${WRKSRC}/par ${DESTDIR}${PREFIX}/bin/parchive .include "../../mk/bsd.pkg.mk" diff --git a/misc/proj-doc/Makefile b/misc/proj-doc/Makefile index 4078c83c340..7343c9db78b 100644 --- a/misc/proj-doc/Makefile +++ b/misc/proj-doc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2006/12/15 18:20:39 dsainty Exp $ +# $NetBSD: Makefile,v 1.9 2008/03/04 19:21:12 jlam Exp $ DISTNAME= proj-pdf-docs PKGNAME= proj-doc-1.1 @@ -11,10 +11,12 @@ MAINTAINER= gdt@NetBSD.org HOMEPAGE= http://www.remotesensing.org/proj/ COMMENT= PDF documentation for the PROJ cartographic projection software +PKG_DESTDIR_SUPPORT= user-destdir + NO_BUILD= yes do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/proj - ${INSTALL_DATA} ${WRKDIR}/*.pdf ${PREFIX}/share/doc/proj/ + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/proj + ${INSTALL_DATA} ${WRKDIR}/*.pdf ${DESTDIR}${PREFIX}/share/doc/proj/ .include "../../mk/bsd.pkg.mk" diff --git a/misc/reed/Makefile b/misc/reed/Makefile index 86d3847b45f..f233c8d2b11 100644 --- a/misc/reed/Makefile +++ b/misc/reed/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2007/01/07 09:14:01 rillig Exp $ +# $NetBSD: Makefile,v 1.20 2008/03/04 19:21:12 jlam Exp $ DISTNAME= reed-5.4 PKGREVISION= 2 @@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.sacredchao.net/software/reed/index.shtml COMMENT= Auto-scrolling file viewer +PKG_DESTDIR_SUPPORT= user-destdir + CONFIGURE_SCRIPT= ./configures CONFIGURE_ARGS+= -p ${PREFIX} HAS_CONFIGURE= YES @@ -21,14 +23,14 @@ INCOMPAT_CURSES= NetBSD-1.5-* NetBSD-1.5.*-* NetBSD-1.5[A-U]-* INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/reed ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/breed ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/wrap ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/breed.1 ${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_MAN} ${WRKSRC}/reed.1 ${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_MAN} ${WRKSRC}/wrap.1 ${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_DATA_DIR} ${PREFIX}/share/reed - ${INSTALL_DATA} ${WRKSRC}/help ${PREFIX}/share/reed/ + ${INSTALL_PROGRAM} ${WRKSRC}/reed ${DESTDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/breed ${DESTDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/wrap ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/breed.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_MAN} ${WRKSRC}/reed.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_MAN} ${WRKSRC}/wrap.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/reed + ${INSTALL_DATA} ${WRKSRC}/help ${DESTDIR}${PREFIX}/share/reed/ .include "../../devel/ncurses/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/misc/routeplanner-cli/Makefile b/misc/routeplanner-cli/Makefile index c272b28b2bc..f767274a400 100644 --- a/misc/routeplanner-cli/Makefile +++ b/misc/routeplanner-cli/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2006/03/04 21:30:12 jlam Exp $ +# $NetBSD: Makefile,v 1.11 2008/03/04 19:21:12 jlam Exp $ # DISTNAME= routeplanner_0.11 @@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://routeplanner.sourceforge.net/ COMMENT= Highway trip planner written in Python +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/routeplanner-0.11 NO_BUILD= yes USE_TOOLS+= gzip @@ -31,13 +33,13 @@ post-patch: done do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/rpcli ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${RPLIBDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/rpcli ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA_DIR} ${DESTDIR}${RPLIBDIR} for i in ${RPPY}; do \ - ${INSTALL_DATA} ${WRKSRC}/$$i ${RPLIBDIR}; \ + ${INSTALL_DATA} ${WRKSRC}/$$i ${DESTDIR}${RPLIBDIR}; \ done for i in ${RPDB}; do \ - ${GZIP_CMD} -c ${WRKSRC}/$$i >${RPLIBDIR}/$$i.gz; \ + ${GZIP_CMD} -c ${WRKSRC}/$$i >${DESTDIR}${RPLIBDIR}/$$i.gz; \ done # optional speedup diff --git a/misc/rox-memo/Makefile b/misc/rox-memo/Makefile index 2e75f33dbf8..7396e9f65e8 100644 --- a/misc/rox-memo/Makefile +++ b/misc/rox-memo/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2006/02/05 23:10:13 joerg Exp $ +# $NetBSD: Makefile,v 1.3 2008/03/04 19:21:12 jlam Exp $ # DISTNAME= Memo-1.9.5 @@ -14,6 +14,8 @@ COMMENT= Reminds you about things DEPENDS+= rox-lib>=2.0.2nb2:../../devel/rox-lib +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/${DISTNAME}/Memo DIST_SUBDIR= rox @@ -30,7 +32,7 @@ SUBST_FILES.lib= findrox.py SUBST_SED.lib= -e 's,/usr/local/lib,${PREFIX}/share/rox,g' do-install: - cd ${WRKSRC} && ${PAX} -rw . ${PREFIX}/share/rox/Memo + cd ${WRKSRC} && ${PAX} -rw . ${DESTDIR}${PREFIX}/share/rox/Memo .include "../../lang/python/application.mk" .include "../../mk/bsd.pkg.mk" diff --git a/misc/sch/Makefile b/misc/sch/Makefile index fee0deabdda..70cbfec91b3 100644 --- a/misc/sch/Makefile +++ b/misc/sch/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2006/03/04 21:30:13 jlam Exp $ +# $NetBSD: Makefile,v 1.9 2008/03/04 19:21:12 jlam Exp $ DISTNAME= sch-20010224 CATEGORIES= misc @@ -9,6 +9,8 @@ COMMENT= Curses-based schedule management tool LICENSE= no-commercial-use +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/sch/build GNU_CONFIGURE= yes @@ -16,6 +18,6 @@ INSTALLATION_DIRS= bin # manpages are not complete, don't confuse people do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/sch ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/sch ${DESTDIR}${PREFIX}/bin .include "../../mk/bsd.pkg.mk" diff --git a/misc/softmaker-office-demo/Makefile b/misc/softmaker-office-demo/Makefile index f95c7da8167..5db7ba90852 100644 --- a/misc/softmaker-office-demo/Makefile +++ b/misc/softmaker-office-demo/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2007/09/07 21:22:31 wiz Exp $ +# $NetBSD: Makefile,v 1.4 2008/03/04 19:21:12 jlam Exp $ # DISTNAME= ofl06trial @@ -18,6 +18,8 @@ NO_BIN_ON_FTP= ${RESTRICTED} NO_SRC_ON_CDROM= ${RESTRICTED} NO_BIN_ON_CDROM= ${RESTRICTED} +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/officetrial USE_LANGUAGES= # none EMUL_PLATFORMS= linux-i386 @@ -34,8 +36,8 @@ do-build: ${ECHO} './planmaker' >> ${WRKDIR}/planmaker do-install: - ${INSTALL_SCRIPT} ${WRKDIR}/textmaker ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKDIR}/planmaker ${PREFIX}/bin - cd ${WRKSRC} && pax -rwpp * ${PREFIX}/lib/softmaker + ${INSTALL_SCRIPT} ${WRKDIR}/textmaker ${DESTDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/planmaker ${DESTDIR}${PREFIX}/bin + cd ${WRKSRC} && pax -rwpp * ${DESTDIR}${PREFIX}/lib/softmaker .include "../../mk/bsd.pkg.mk" diff --git a/misc/splitvt/Makefile b/misc/splitvt/Makefile index 9468e731251..47871664723 100644 --- a/misc/splitvt/Makefile +++ b/misc/splitvt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2007/01/07 09:14:01 rillig Exp $ +# $NetBSD: Makefile,v 1.19 2008/03/04 19:21:12 jlam Exp $ DISTNAME= splitvt-1.6.3 CATEGORIES= misc @@ -7,13 +7,15 @@ MASTER_SITES= ${MASTER_SITE_SUNSITE:=utils/console/} MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Run two shells in a split window/terminal +PKG_DESTDIR_SUPPORT= user-destdir + BUILD_TARGET= CONFIGURE_SCRIPT= ./Configure HAS_CONFIGURE= yes INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/splitvt ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/splitvt.1 ${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/splitvt ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/splitvt.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 .include "../../mk/bsd.pkg.mk" diff --git a/misc/ttyrec/Makefile b/misc/ttyrec/Makefile index ef4e9b123b5..c9144d221ff 100644 --- a/misc/ttyrec/Makefile +++ b/misc/ttyrec/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2007/01/07 09:14:01 rillig Exp $ +# $NetBSD: Makefile,v 1.10 2008/03/04 19:21:12 jlam Exp $ DISTNAME= ttyrec-1.0.8 CATEGORIES= misc @@ -8,6 +8,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://0xcc.net/ttyrec/ COMMENT= ttyrec is a tty recorder +PKG_DESTDIR_SUPPORT= user-destdir + .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "SunOS" @@ -17,11 +19,11 @@ CFLAGS+= -DSVR4 INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/ttyplay ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/ttyrec ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/ttytime ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/ttyplay.1 ${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_MAN} ${WRKSRC}/ttyrec.1 ${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_MAN} ${WRKSRC}/ttytime.1 ${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/ttyplay ${DESTDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/ttyrec ${DESTDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/ttytime ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/ttyplay.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_MAN} ${WRKSRC}/ttyrec.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_MAN} ${WRKSRC}/ttytime.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 .include "../../mk/bsd.pkg.mk" diff --git a/misc/ukpostcodes/Makefile b/misc/ukpostcodes/Makefile index a8a6f27a81f..2ac5bc6d7ff 100644 --- a/misc/ukpostcodes/Makefile +++ b/misc/ukpostcodes/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2006/03/04 21:30:13 jlam Exp $ +# $NetBSD: Makefile,v 1.4 2008/03/04 19:21:12 jlam Exp $ DISTNAME= postcodes PKGNAME= postcodes-20040515 @@ -11,12 +11,15 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.jibble.org/ COMMENT= UK national postcode information +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} NO_CONFIGURE= yes NO_BUILD= yes do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/ukpostcodes - ${INSTALL_DATA} ${WRKSRC}/jibble-postcodes.csv ${PREFIX}/share/ukpostcodes/ + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/ukpostcodes + ${INSTALL_DATA} ${WRKSRC}/jibble-postcodes.csv \ + ${DESTDIR}${PREFIX}/share/ukpostcodes/ .include "../../mk/bsd.pkg.mk" diff --git a/misc/vera/Makefile b/misc/vera/Makefile index fc224e9be92..2ca897f1951 100644 --- a/misc/vera/Makefile +++ b/misc/vera/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2006/03/20 17:16:13 jlam Exp $ +# $NetBSD: Makefile,v 1.18 2008/03/04 19:21:12 jlam Exp $ DISTNAME= vera-1.16 CATEGORIES= misc @@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://cgi.snafu.de/ohei/user-cgi-bin/veramain-e.cgi COMMENT= Virtual Entity of Relevant Acronyms +PKG_DESTDIR_SUPPORT= user-destdir + USE_TOOLS+= makeinfo INFO_FILES= # PLIST @@ -20,7 +22,7 @@ do-build: do-install: cd ${WRKSRC}; for f in vera.info vera.info-[0-9]*; do \ ${TEST} ! -f "$$f" || \ - ${INSTALL_DATA} "$$f" ${PREFIX}/${PKGINFODIR}; \ + ${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR};\ done .include "../../mk/bsd.pkg.mk" diff --git a/misc/vfu/Makefile b/misc/vfu/Makefile index c42356612f0..09fb38b297c 100644 --- a/misc/vfu/Makefile +++ b/misc/vfu/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.45 2006/10/04 21:49:19 wiz Exp $ +# $NetBSD: Makefile,v 1.46 2008/03/04 19:21:12 jlam Exp $ # DISTNAME= vfu-3.04 @@ -12,6 +12,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://cade.datamax.bg/vfu/ COMMENT= Small, handy, easy-to-use file manager +PKG_DESTDIR_SUPPORT= user-destdir + USE_LANGUAGES= c c++ USE_TOOLS+= perl:run REPLACE_PERL+= rx/rx_* @@ -33,12 +35,12 @@ do-install: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} install post-install: - ${INSTALL_DATA_DIR} ${DOCDIR} ${EGDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} ${DESTDIR}${EGDIR} cd ${WRKSRC} && \ ${INSTALL_DATA} COPYING INSTALL CONFIG FAQ HISTORY NOTES README \ - README.DOS THANKS.TO TODO XWINDOW.NOTES ${DOCDIR} + README.DOS THANKS.TO TODO XWINDOW.NOTES ${DESTDIR}${DOCDIR} cd ${WRKSRC} && \ - ${INSTALL_DATA} ${WRKSRC}/vfu.conf ${EGDIR}/vfu.conf + ${INSTALL_DATA} ${WRKSRC}/vfu.conf ${DESTDIR}${EGDIR}/vfu.conf .include "../../devel/ncurses/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/misc/wdic/Makefile b/misc/wdic/Makefile index 0ac9c506b53..492c6f701dd 100644 --- a/misc/wdic/Makefile +++ b/misc/wdic/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2005/03/07 14:48:09 minskim Exp $ +# $NetBSD: Makefile,v 1.2 2008/03/04 19:21:12 jlam Exp $ # DISTNAME= wdic_wob_v3.0 @@ -11,12 +11,13 @@ HOMEPAGE= http://kldp.net/projects/wdic/ COMMENT= English dictionary for Korean PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir WRKSRC= ${WRKDIR} INSTALLATION_DIRS= bin do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/wdic ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/wdic ${DESTDIR}${PREFIX}/bin .include "../../mk/bsd.pkg.mk" diff --git a/misc/xjdic/Makefile b/misc/xjdic/Makefile index 30264cc0c2c..6cd817df141 100644 --- a/misc/xjdic/Makefile +++ b/misc/xjdic/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2007/12/02 11:24:35 wiz Exp $ +# $NetBSD: Makefile,v 1.14 2008/03/04 19:21:12 jlam Exp $ # DISTNAME= xjdic24 @@ -19,6 +19,8 @@ COMMENT= Japanese dictionary DEPENDS+= edict-[0-9]*:../../misc/edict DEPENDS+= kanjidic-[0-9]*:../../misc/kanjidic +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} MESSAGE_SUBST+= PREFIX=${PREFIX} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} @@ -26,36 +28,37 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: - cd ${WRKSRC} ; \ - for i in exjdxgen xjdic_cl xjdic_sa xjdserver xjdxgen ; \ - do \ - ${INSTALL_PROGRAM} $$i ${PREFIX}/bin ; \ - done - ${MV} ${PREFIX}/bin/xjdic_sa ${PREFIX}/bin/xjdic - ${INSTALL_DATA_DIR} ${PREFIX}/share/xjdic - ${INSTALL_DATA} \ - ${WRKSRC}/kanjstroke \ - ${WRKSRC}/radicals.tm \ - ${WRKSRC}/radkfile \ - ${WRKSRC}/romkana.cnv \ - ${WRKSRC}/vconj \ - ${PREFIX}/share/xjdic - ${INSTALL_MAN_DIR} ${PREFIX}/share/doc/xjdic - ${INSTALL_MAN} \ - ${WRKSRC}/xjdic22.WHATSNEW \ - ${WRKSRC}/xjdic23.WHATSNEW \ - ${WRKSRC}/xjdic24.WHATSNEW \ - ${WRKSRC}/xjdic24.inf \ - ${WRKSRC}/xjdic24.install \ - ${PREFIX}/share/doc/xjdic - ${INSTALL_MAN} ${WRKSRC}/xjdic.1 ${PREFIX}/${PKGMANDIR}/man1 - ${LN} -s ../edict/edict ${PREFIX}/share/xjdic/edict - ${LN} -s ../kanjidic/kanjidic ${PREFIX}/share/xjdic/kanjidic - ${PREFIX}/bin/xjdxgen ${PREFIX}/share/xjdic/edict - ${PREFIX}/bin/xjdxgen ${PREFIX}/share/xjdic/kanjidic - ${SED} \ - -e 's,/home/jwb/nihongo/dics,${PREFIX}/share/xjdic,' \ - -e '/^kdicfile/s/kanjidic_b/kanjidic/' \ - < ${WRKSRC}/.xjdicrc.skel >${PREFIX}/share/doc/xjdic/.xjdicrc + cd ${WRKSRC} ; \ + for i in exjdxgen xjdic_cl xjdic_sa xjdserver xjdxgen ; \ + do \ + ${INSTALL_PROGRAM} $$i ${DESTDIR}${PREFIX}/bin ; \ + done + ${MV} ${DESTDIR}${PREFIX}/bin/xjdic_sa ${DESTDIR}${PREFIX}/bin/xjdic + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/xjdic + ${INSTALL_DATA} \ + ${WRKSRC}/kanjstroke \ + ${WRKSRC}/radicals.tm \ + ${WRKSRC}/radkfile \ + ${WRKSRC}/romkana.cnv \ + ${WRKSRC}/vconj \ + ${DESTDIR}${PREFIX}/share/xjdic + ${INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/share/doc/xjdic + ${INSTALL_MAN} \ + ${WRKSRC}/xjdic22.WHATSNEW \ + ${WRKSRC}/xjdic23.WHATSNEW \ + ${WRKSRC}/xjdic24.WHATSNEW \ + ${WRKSRC}/xjdic24.inf \ + ${WRKSRC}/xjdic24.install \ + ${DESTDIR}${PREFIX}/share/doc/xjdic + ${INSTALL_MAN} ${WRKSRC}/xjdic.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${LN} -s ../edict/edict ${DESTDIR}${PREFIX}/share/xjdic/edict + ${LN} -s ../kanjidic/kanjidic ${DESTDIR}${PREFIX}/share/xjdic/kanjidic + ${PREFIX}/bin/xjdxgen ${DESTDIR}${PREFIX}/share/xjdic/edict + ${PREFIX}/bin/xjdxgen ${DESTDIR}${PREFIX}/share/xjdic/kanjidic + ${SED} \ + -e 's,/home/jwb/nihongo/dics,${PREFIX}/share/xjdic,' \ + -e '/^kdicfile/s/kanjidic_b/kanjidic/' \ + < ${WRKSRC}/.xjdicrc.skel \ + > ${DESTDIR}${PREFIX}/share/doc/xjdic/.xjdicrc .include "../../mk/bsd.pkg.mk" |