Fix NOPORTDOCS=yes case.

This commit is contained in:
Hiroki Sato 2008-10-05 02:51:07 +00:00
parent cf46a4a7a3
commit 0b55dd0a5e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=221207
2 changed files with 24 additions and 29 deletions

View File

@ -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
${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
.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
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
@${ECHO_MSG} ""
@${ECHO_MSG} Now edit your /etc/printcap
@${ECHO_MSG} ""
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/lprps
@${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/lprps
.endif
.include <bsd.port.mk>

View File

@ -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%%