mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
751790b51a
share most files. Repository copy the default to explicitly named directories to avoid any confusion. Greatly simplify the shared Makefiles, since we are now in different subdirectories, we don't need "a4-install" stuff. While I'm here, consistently name the variables. Here are the guidelines (master port is in brackets) DOCFORMAT: [html] pdf ps KONFONT: 14dot [16dot] PAPERSIZE: a4 [letter] letterdj RESOLUTION: 118 240 [300] 360 400 600 "math/r" has been copied to "R-a4" and "R-letter", to follow the spirit of the original port. "japanese/kon" is renamed to "kon2-*", since that seems to be the basename.
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
# ex:ts=8
|
|
# New ports collection makefile for: lprps (letter)
|
|
# Version required: 2.50
|
|
# Date created: Sat Aug 3, 1996
|
|
# Whom: David O'Brien (obrien@cs.ucdavis.edu)
|
|
#
|
|
# $Id: Makefile,v 1.5 1998/10/30 08:35:36 asami Exp $
|
|
#
|
|
|
|
DISTNAME= lprps-2.5
|
|
PKGNAME= lprps-${PAPERSIZE}-2.5
|
|
CATEGORIES= print
|
|
MASTER_SITES= ftp://ftp.jclark.com/pub/lprps/
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
|
|
|
MAKE_FLAGS?= PAPERSIZE=${PS} -f
|
|
MAN1= psrev.1 textps.1
|
|
MAN8= lprps.8 psif.8 psof.8
|
|
|
|
|
|
PAPERSIZE?= letter
|
|
PS!= echo ${PAPERSIZE} | awk '{print toupper($$1)}'
|
|
|
|
.if ${PAPERSIZE} != a4 && ${PAPERSIZE} != letter
|
|
.BEGIN:
|
|
@${ECHO} "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
|
|
@${ECHO} "Possible values are: a4 or letter"
|
|
@${FALSE}
|
|
.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} ""
|
|
@${ECHO} Now edit your /etc/printcap
|
|
@${ECHO} ""
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${PREFIX}/share/doc/lprps
|
|
@${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/lprps
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|