2001-03-03 16:19:13 -05:00
|
|
|
# New ports collection makefile for: pnm2ppa
|
1998-11-18 10:50:24 -05:00
|
|
|
# Date created: 18 November 1998
|
2001-01-27 00:43:30 -05:00
|
|
|
# Whom: smace@freebsd.org
|
1998-11-18 10:50:24 -05:00
|
|
|
#
|
1999-08-30 21:53:22 -04:00
|
|
|
# $FreeBSD$
|
1998-11-18 10:50:24 -05:00
|
|
|
#
|
|
|
|
|
2001-03-03 16:19:13 -05:00
|
|
|
PORTNAME= pnm2ppa
|
|
|
|
PORTVERSION= 1.04
|
1998-11-18 10:50:24 -05:00
|
|
|
CATEGORIES= print
|
2001-03-03 16:19:13 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1998-11-18 10:50:24 -05:00
|
|
|
|
2001-01-27 00:28:29 -05:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1998-11-18 10:50:24 -05:00
|
|
|
|
2001-03-03 16:19:13 -05:00
|
|
|
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
|
2000-11-25 05:31:07 -05:00
|
|
|
RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript55 \
|
1998-11-23 03:52:12 -05:00
|
|
|
enscript:${PORTSDIR}/print/enscript-letter
|
|
|
|
|
2001-03-03 16:19:13 -05:00
|
|
|
MAN1= pnm2ppa.1
|
1998-11-18 10:50:24 -05:00
|
|
|
|
2001-03-03 16:19:13 -05:00
|
|
|
post-patch:
|
|
|
|
@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \
|
|
|
|
${WRKSRC}/pnm2ppa.conf > ${WRKSRC}/pnm2ppa.conf.sample
|
|
|
|
@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \
|
|
|
|
${WRKSRC}/docs/en/pnm2ppa.1 > ${WRKSRC}/pnm2ppa.1
|
|
|
|
@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \
|
|
|
|
-e "s:%%LOCALBASE%%:${LOCALBASE}:g" \
|
|
|
|
${FILESDIR}/asciippafilter.SH > ${WRKSRC}/asciippafilter
|
|
|
|
@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \
|
|
|
|
-e "s:%%LOCALBASE%%:${LOCALBASE}:g" \
|
|
|
|
${FILESDIR}/ppafilter.SH > ${WRKSRC}/ppafilter
|
1998-11-18 10:50:24 -05:00
|
|
|
|
|
|
|
do-install:
|
2001-03-03 16:19:13 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/calibrate_ppa ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pnm2ppa ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/asciippafilter ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/ppafilter ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pnm2ppa.1 ${MANPREFIX}/man/man1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/pnm2ppa.conf.sample ${PREFIX}/etc
|
|
|
|
.if !exists(${PREFIX}/etc/pnm2ppa.conf)
|
|
|
|
${CP} ${PREFIX}/etc/pnm2ppa.conf.sample ${PREFIX}/etc/pnm2ppa.conf
|
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
1998-11-18 10:50:24 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|