summaryrefslogtreecommitdiff
path: root/print/magicfilter
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-12 00:13:23 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-12 00:13:23 +0000
commit5b6fb829eeb3dc96c4b4e25c522677803dbdd467 (patch)
tree6d54f53c6cd1e9785b37a8a43078849f2f8dda89 /print/magicfilter
parent056489cdd22bd49a160f046d30a5c2776de7b122 (diff)
downloadpkgsrc-5b6fb829eeb3dc96c4b4e25c522677803dbdd467.tar.gz
DESTDIR support
Diffstat (limited to 'print/magicfilter')
-rw-r--r--print/magicfilter/Makefile12
1 files changed, 8 insertions, 4 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"