diff options
author | smace <smace@FreeBSD.org> | 1998-11-18 23:50:24 +0800 |
---|---|---|
committer | smace <smace@FreeBSD.org> | 1998-11-18 23:50:24 +0800 |
commit | daf8fa1283c5d79a88ec949f5c1db35738618a04 (patch) | |
tree | 7322debdb24da5098e362989afbe83bb9f58c7e9 /print/pnm2ppa/Makefile | |
parent | 801b1eec1047d0a716b51ac7cfde8306baa4f6ed (diff) | |
download | freebsd-ports-gnome-daf8fa1283c5d79a88ec949f5c1db35738618a04.tar.gz freebsd-ports-gnome-daf8fa1283c5d79a88ec949f5c1db35738618a04.tar.zst freebsd-ports-gnome-daf8fa1283c5d79a88ec949f5c1db35738618a04.zip |
Initial import of pbm2ppa.
Submitted by: smace@freebsd.org
Diffstat (limited to 'print/pnm2ppa/Makefile')
-rw-r--r-- | print/pnm2ppa/Makefile | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/print/pnm2ppa/Makefile b/print/pnm2ppa/Makefile new file mode 100644 index 000000000000..bfb9d6e78584 --- /dev/null +++ b/print/pnm2ppa/Makefile @@ -0,0 +1,76 @@ +# New ports collection makefile for: pbm2ppa +# Version required: 0.8.6 +# Date created: 18 November 1998 +# Whom: smace@freebsd.org +# +# $Id: Makefile,v 1.1 1998/09/17 00:32:53 smace Exp $ +# + +PKGNAME= pbm2ppa-0.8.6 +DISTNAME= ppa-0.8.6 +CATEGORIES= print +MASTER_SITES= http://www.rpi.edu/~normat/technical/ppa/files/ + +WRKSRC= ${WRKDIR}/pbm2ppa-0.8.6 +USE_GMAKE= yes + +MAINTAINER= smace@freebsd.org + +RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript5 \ + enscript:${PORTSDIR}/print/enscript + +HPMODEL?= 720 +ALL_TARGET= ${HPMODEL} + +pre-configure: +.if ${HPMODEL} != 720 && ${HPMODEL} != 820 && ${HPMODEL} != 1000 + @${ECHO} "HPMODEL is invalid: ${HPMODEL}." + @${ECHO} "You must specify the model of your printer:" + @${ECHO} "720 -- HP720 family (HP 722C, etc.)" + @${ECHO} "820 -- HP820 family" + @${ECHO} "1000 -- HP820 family" + @false +.endif +.if !defined(PAPERSIZE) + @${ECHO} + @${ECHO} "No PAPERSIZE environment variable found, will default to enscript-A4" + @${ECHO} +.endif + +do-install: + sed s#CHANGETHIS#${PREFIX}# < ${FILESDIR}/ppafilter.SH > ${WRKSRC}/ppafilter + sed s#CHANGETHIS#${PREFIX}# < ${FILESDIR}/asciippafilter.SH > ${WRKSRC}/asciippafilter + cd ${WRKSRC} && \ + (${INSTALL_PROGRAM} pbm2ppa pbmtpg \ + ${PREFIX}/bin; \ + ${INSTALL_DATA} pbm2ppa.conf.hp${HPMODEL} \ + ${PREFIX}/etc/pbm2ppa.conf; \ + ${INSTALL_SCRIPT} ppafilter asciippafilter \ + ${PREFIX}/bin ) + +post-install: + @${ECHO} + @${ECHO} "To configure your printcap to print either ascii" + @${ECHO} "or Postscript files, add the following lines to your" + @${ECHO} "/etc/printcap file" + @${ECHO} + @${ECHO} " lp|ascii|unix:\\" + @${ECHO} " :lp=/dev/lpt0:\\" + @${ECHO} " :sd=/var/spool/lpd:\\" + @${ECHO} " :if=/usr/local/bin/asciippafilter:\\" + @${ECHO} " :mx#0:\\" + @${ECHO} " :sh:" + @${ECHO} + @${ECHO} " ps:\\" + @${ECHO} " :lp=/dev/lpt0:\\" + @${ECHO} " :sd=/var/spool/ps:\\" + @${ECHO} " :if=/usr/local/bin/ppafilter:\\" + @${ECHO} " :mx#0:\\" + @${ECHO} " :sh:" + @${ECHO} + @${ECHO} "Please be sure that you install the proper flavor of" + @${ECHO} "enscript, either A4 or Letter, by setting the PAPERSIZE" + @${ECHO} "environment variable." + @${ECHO} + +.include <bsd.port.mk> |