summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-12 00:12:11 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-12 00:12:11 +0000
commit056489cdd22bd49a160f046d30a5c2776de7b122 (patch)
tree35c40df128b0e4b913cf4ad559f8ffd2caf56032
parenta84480e2a860a11713c207f2aca5bf1d2add8587 (diff)
downloadpkgsrc-056489cdd22bd49a160f046d30a5c2776de7b122.tar.gz
DESTDIR support. Create spooldir at install time. Bump revision.
-rw-r--r--print/stylewriter/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/print/stylewriter/Makefile b/print/stylewriter/Makefile
index ef41b3c11e8..d22683adc1f 100644
--- a/print/stylewriter/Makefile
+++ b/print/stylewriter/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.21 2008/06/16 13:22:49 joerg Exp $
+# $NetBSD: Makefile,v 1.22 2010/02/12 00:12:11 joerg Exp $
#
DISTNAME= stylewriter
PKGNAME= stylewriter-0.9.9
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= print
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/packages/distfiles/
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://homepage.mac.com/monroe/styl/
COMMENT= Apple StyleWriter driver for un*x
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= enscript>=1.6.3nb1:../../print/enscript
USE_TOOLS+= gs:run
@@ -31,34 +33,34 @@ PRINTCAP_SED= -e "s,/var/spool/stylps,/var/spool/lpd/stylps,g" \
post-extract:
${CP} ${FILESDIR}/Makefile ${WRKSRC}
+INSTALLATION_DIRS+= ${FILTER_DIR} share/doc/stylewriter share/examples/stylewriter
+
+OWN_DIRS+= /var/spool/lpd/stylps
+
post-install:
${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
- ${INSTALL_DATA_DIR} ${PREFIX}/${FILTER_DIR}
(cd ${WRKSRC}/scripts; \
for FILTER in ${FILTERS}; do \
${SED} ${FILTER_SED} \
< $${FILTER} > ${WRKDIR}/$${FILTER}; \
${INSTALL_SCRIPT} ${WRKDIR}/$${FILTER} \
- ${PREFIX}/${FILTER_DIR}/$${FILTER}; \
+ ${DESTDIR}${PREFIX}/${FILTER_DIR}/$${FILTER}; \
${RM} ${WRKDIR}/$${FILTER}; \
done)
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/stylewriter
for FILE in README README.protocol README.troubleshooting; do \
${INSTALL_DATA} ${WRKSRC}/$${FILE} \
- ${PREFIX}/share/doc/stylewriter; \
+ ${DESTDIR}${PREFIX}/share/doc/stylewriter; \
done
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/stylewriter
(cd ${WRKSRC}; \
for PRINTCAP in printcap printcap.a4; do \
${SED} ${PRINTCAP_SED} \
< $${PRINTCAP} > ${WRKDIR}/$${PRINTCAP}; \
${INSTALL_DATA} ${WRKDIR}/$${PRINTCAP} \
- ${PREFIX}/share/examples/stylewriter; \
+ ${DESTDIR}${PREFIX}/share/examples/stylewriter; \
${RM} ${WRKDIR}/$${PRINTCAP}; \
done)
- ${INSTALL_DATA} ${WRKSRC}/styl.ppd ${PREFIX}/share/examples/stylewriter
- ${INSTALL_DATA_DIR} /var/spool/lpd/stylps
+ ${INSTALL_DATA} ${WRKSRC}/styl.ppd ${DESTDIR}${PREFIX}/share/examples/stylewriter
.include "../../mk/bsd.pkg.mk"