2002-03-13 18:36:35 +01:00
|
|
|
# $NetBSD: Makefile,v 1.12 2002/03/13 17:37:38 fredb Exp $
|
1999-09-04 17:56:04 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= stylewriter
|
|
|
|
PKGNAME= stylewriter-0.9.9
|
2002-03-13 18:36:35 +01:00
|
|
|
PKGREVISION= 1
|
1999-09-04 17:56:04 +02:00
|
|
|
CATEGORIES= print
|
2001-05-04 17:45:39 +02:00
|
|
|
MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/
|
1999-09-04 17:56:04 +02:00
|
|
|
|
|
|
|
MAINTAINER= packages@netbsd.org
|
|
|
|
HOMEPAGE= http://www.pobox.com/~monroe/styl/
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= Apple StyleWriter driver for un*x
|
1999-09-04 17:56:04 +02:00
|
|
|
|
2000-05-10 17:39:06 +02:00
|
|
|
DEPENDS+= ghostscript{,-nox11}-[6-9]*:../../print/ghostscript
|
2002-01-28 03:30:08 +01:00
|
|
|
DEPENDS+= enscript>=1.6.1:../../print/enscript
|
1999-09-04 17:56:04 +02:00
|
|
|
|
|
|
|
NO_CONFIGURE= yes
|
|
|
|
|
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
|
|
|
FILTER_DIR= libexec/stylewriter
|
|
|
|
FILTERS= direct_stylpbm direct_stylps \
|
|
|
|
stylascii stylascii.a4 \
|
|
|
|
stylps stylps-color stylps-color.a4 stylps.a4
|
2000-04-20 18:32:47 +02:00
|
|
|
FILTER_SED= -e "s,/usr/local/gnu/bin/gs,${LOCALBASE}/bin/gs,g" \
|
1999-09-04 17:56:04 +02:00
|
|
|
-e "s,/usr/local,${PREFIX},g"
|
|
|
|
PRINTCAP_SED= -e "s,/var/spool/stylps,/var/spool/lpd/stylps,g" \
|
|
|
|
-e "s,/usr/local/sbin,${PREFIX}/libexec/stylewriter,g"
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/Makefile ${WRKSRC}
|
|
|
|
|
|
|
|
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}; \
|
|
|
|
${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; \
|
|
|
|
done
|
|
|
|
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/stylewriter
|
1999-09-08 05:08:02 +02:00
|
|
|
(cd ${WRKSRC}; \
|
|
|
|
for PRINTCAP in printcap printcap.a4; do \
|
1999-09-04 17:56:04 +02:00
|
|
|
${SED} ${PRINTCAP_SED} \
|
|
|
|
< $${PRINTCAP} > ${WRKDIR}/$${PRINTCAP}; \
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/$${PRINTCAP} \
|
|
|
|
${PREFIX}/share/examples/stylewriter; \
|
|
|
|
${RM} ${WRKDIR}/$${PRINTCAP}; \
|
1999-09-08 05:08:02 +02:00
|
|
|
done)
|
1999-09-04 17:56:04 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/styl.ppd ${PREFIX}/share/examples/stylewriter
|
|
|
|
${INSTALL_DATA_DIR} /var/spool/lpd/stylps
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|