aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2008-10-05 10:51:07 +0800
committerhrs <hrs@FreeBSD.org>2008-10-05 10:51:07 +0800
commit79731abbe85ac2ce655308bede677bccba255c9e (patch)
treee0e0bbcabfa5766f209baba569f786da5e2d67b6 /print
parent34dfc6c2c952cf7c883afc76a59712a48b5eb8fb (diff)
downloadfreebsd-ports-gnome-79731abbe85ac2ce655308bede677bccba255c9e.tar.gz
freebsd-ports-gnome-79731abbe85ac2ce655308bede677bccba255c9e.tar.zst
freebsd-ports-gnome-79731abbe85ac2ce655308bede677bccba255c9e.zip
Fix NOPORTDOCS=yes case.
Diffstat (limited to 'print')
-rw-r--r--print/lprps-letter/Makefile46
-rw-r--r--print/lprps-letter/pkg-plist7
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%%