diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2008-10-05 02:51:07 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2008-10-05 02:51:07 +0000 |
commit | 0b55dd0a5e251e034046e5bdf1e86e57384e4086 (patch) | |
tree | 8a35af9dd5b7fac95d135e2adc73ae3d48f9aba3 /print/lprps-letter | |
parent | cf46a4a7a340b7d532867d0fb3bf9343db178a48 (diff) | |
download | ports-0b55dd0a5e251e034046e5bdf1e86e57384e4086.tar.gz ports-0b55dd0a5e251e034046e5bdf1e86e57384e4086.zip |
Notes
Diffstat (limited to 'print/lprps-letter')
-rw-r--r-- | print/lprps-letter/Makefile | 46 | ||||
-rw-r--r-- | print/lprps-letter/pkg-plist | 7 |
2 files changed, 24 insertions, 29 deletions
diff --git a/print/lprps-letter/Makefile b/print/lprps-letter/Makefile index b481ee2c8323..9b76d902dc82 100644 --- a/print/lprps-letter/Makefile +++ b/print/lprps-letter/Makefile @@ -6,22 +6,24 @@ # $FreeBSD$ # -PORTNAME= lprps-${PAPERSIZE} +PORTNAME= lprps PORTVERSION= 2.5 CATEGORIES= print MASTER_SITES= ftp://ftp.jclark.com/pub/lprps/ -DISTNAME= lprps-2.5 +PKGNAMESUFFIX= -${PAPERSIZE} EXTRACT_SUFX= .tar.Z MAINTAINER= ports@FreeBSD.org COMMENT= PostScript printer filter package supporting a bidirectional serial channel MAKE_FLAGS?= PAPERSIZE=${PS} -f +PORTDOCS= INSTALL + MAN1= psrev.1 textps.1 MAN8= lprps.8 psif.8 psof.8 PAPERSIZE?= letter -PS!= echo ${PAPERSIZE} | awk '{print toupper($$1)}' +PS= ${PAPERSIZE:U} .if ${PAPERSIZE} != a4 && ${PAPERSIZE} != letter .BEGIN: @@ -31,31 +33,25 @@ PS!= echo ${PAPERSIZE} | awk '{print toupper($$1)}' .endif do-install: -.for f in textps psrev - @${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin -.endfor -.for f in psif lprps psof - @${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/libexec -.endfor -.for f in psif-text psif-ps - @${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/libexec - -.endfor - @-test -d ${PREFIX}/share/lprps || ${MKDIR} ${PREFIX}/share/lprps - @${INSTALL_DATA} ${WRKSRC}/banner.ps ${PREFIX}/share/lprps - @${INSTALL_MAN} ${WRKSRC}/textps.n ${PREFIX}/man/man1/textps.1 - @${INSTALL_MAN} ${WRKSRC}/psrev.n ${PREFIX}/man/man1/psrev.1 - @${INSTALL_MAN} ${WRKSRC}/lprps.n ${PREFIX}/man/man8/lprps.8 - @${INSTALL_MAN} ${WRKSRC}/psif.n ${PREFIX}/man/man8/psif.8 - @${INSTALL_MAN} ${WRKSRC}/psof.n ${PREFIX}/man/man8/psof.8 - @${ECHO_MSG} "" - @${ECHO_MSG} Now edit your /etc/printcap - @${ECHO_MSG} "" + ${MKDIR} ${DATADIR} + cd ${WRKSRC} && \ + ${INSTALL_PROGRAM} textps psrev ${PREFIX}/bin && \ + ${INSTALL_PROGRAM} psif lprps psof ${PREFIX}/libexec && \ + ${INSTALL_SCRIPT} psif-text psif-ps ${PREFIX}/libexec && \ + ${INSTALL_DATA} banner.ps ${DATADIR} && \ + ${INSTALL_MAN} textps.n ${PREFIX}/man/man1/textps.1 && \ + ${INSTALL_MAN} psrev.n ${PREFIX}/man/man1/psrev.1 && \ + ${INSTALL_MAN} lprps.n ${PREFIX}/man/man8/lprps.8 && \ + ${INSTALL_MAN} psif.n ${PREFIX}/man/man8/psif.8 && \ + ${INSTALL_MAN} psof.n ${PREFIX}/man/man8/psof.8 post-install: .if !defined(NOPORTDOCS) - @${MKDIR} ${PREFIX}/share/doc/lprps - @${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/lprps + ${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif + @${ECHO_MSG} "" + @${ECHO_MSG} Now edit your /etc/printcap + @${ECHO_MSG} "" .include <bsd.port.mk> diff --git a/print/lprps-letter/pkg-plist b/print/lprps-letter/pkg-plist index e1ffa66c38d9..35b900630e6e 100644 --- a/print/lprps-letter/pkg-plist +++ b/print/lprps-letter/pkg-plist @@ -1,11 +1,10 @@ +@comment $FreeBSD$ libexec/psif libexec/lprps libexec/psof libexec/psif-text libexec/psif-ps -share/lprps/banner.ps +%%DATADIR%%/banner.ps bin/textps bin/psrev -share/doc/lprps/INSTALL -@dirrm share/doc/lprps -@dirrm share/lprps +@dirrm %%DATADIR%% |