diff options
Diffstat (limited to 'print')
-rw-r--r-- | print/magicfilter/Makefile | 12 | ||||
-rw-r--r-- | print/mpage/Makefile | 7 |
2 files changed, 13 insertions, 6 deletions
diff --git a/print/magicfilter/Makefile b/print/magicfilter/Makefile index ff41186d437..cc754dc01d1 100644 --- a/print/magicfilter/Makefile +++ b/print/magicfilter/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.56 2009/08/31 22:16:39 tron Exp $ +# $NetBSD: Makefile,v 1.57 2010/02/12 00:18:29 joerg Exp $ DISTNAME= magicfilter-1.2 PKGREVISION= 7 @@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Customizable, extensible automatic printer filter LICENSE= gnu-gpl-v2 +PKG_DESTDIR_SUPPORT= user-destdir + # Any version will do: # DEPENDS+= a2ps-[0-9]*:../../print/a2ps @@ -50,12 +52,14 @@ GENERATE_PLIST+= \ ${ECHO} ${FILTER_DIR}/"$$f"; \ done; -post-install: +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/magicfilter ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/magicfilter.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/magicfilter.8 set -e; \ cd ${WRKSRC}/filters; \ for f in *-filter; do \ - ${ECHO} "Installing $$f as ${PREFIX}/${FILTER_DIR}/$$f"; \ - ${INSTALL_SCRIPT} "$$f" ${PREFIX}/${FILTER_DIR}/"$$f"; \ + ${ECHO} "Installing $$f as ${DESTDIR}${PREFIX}/${FILTER_DIR}/$$f"; \ + ${INSTALL_SCRIPT} "$$f" ${DESTDIR}${PREFIX}/${FILTER_DIR}/"$$f"; \ done .include "../../mk/bsd.pkg.mk" diff --git a/print/mpage/Makefile b/print/mpage/Makefile index 1fd60c147bc..23a687748a3 100644 --- a/print/mpage/Makefile +++ b/print/mpage/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2008/10/04 14:51:16 reed Exp $ +# $NetBSD: Makefile,v 1.21 2010/02/12 00:13:23 joerg Exp $ # DISTNAME= mpage-2.5.5 @@ -12,8 +12,11 @@ MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Print multiple pages per sheet of paper HOMEPAGE= http://www.mesa.nl/download.html +PKG_DESTDIR_SUPPORT= user-destdir + BUILD_TARGET= default -MAKE_ENV+= MANDIR=${PREFIX}/${PKGMANDIR}/man1 +INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX} \ + MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 .include "../../mk/bsd.prefs.mk" MAKE_ENV+= PAGESIZE=${PAPERSIZE} |