blob: 98d62a0b3d10787eebad65be25fe896696fa9a80 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# ex:ts=8
# New ports collection makefile for: lprps
# Version required: 2.50
# Date created: Sat Aug 3, 1996
# Whom: David O'Brien (obrien@cs.ucdavis.edu)
#
# $Id: Makefile,v 1.1.1.1 1996/08/16 07:23:00 asami Exp $
#
DISTNAME= lprps-2.5
CATEGORIES= print
MASTER_SITES= ftp://ftp.jclark.com/pub/lprps/
EXTRACT_SUFX= .tar.Z
MAINTAINER= obrien@cs.ucdavis.edu
MAKE_FLAGS?= PAPERSIZE=${PAPERSIZE} -f
MAN1= psrev.1 textps.1
MAN8= lprps.8 psif.8 psof.8
letter::
${MAKE} PAPERSIZE=letter
letter-install::
${MAKE} PAPERSIZE=letter install
a4::
${MAKE} PAPERSIZE=a4
a4-install::
${MAKE} PAPERSIZE=a4 install
.if !defined(PAPERSIZE)
PAPERSIZE=LETTER
PAPERSIZE_UNSPECIFIED= yes
.elif ${PAPERSIZE} == A4 || ${PAPERSIZE} == a4
PAPERSIZE=A4
.elif ${PAPERSIZE} == letter || ${PAPERSIZE} == LETTER
PAPERSIZE=LETTER
.else
PAPERSIZE_INVALID= yes
.endif # not defined PAPERSIZE
pre-fetch:
.if defined(PAPERSIZE_UNSPECIFIED)
@echo "Defaulting to ${PAPERSIZE} sized paper."
@echo ""
@echo "Set the environment variable PAPERSIZE if you want to use other sizes."
@echo "Possible values are: A4 or letter (default)"
.elif defined(PAPERSIZE_INVALID)
@echo "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
@echo "Possible values are: A4 or letter (default)"
@/usr/bin/false
.endif
pre-install:
-test -d ${PREFIX}/share/lprps || ${MKDIR} ${PREFIX}/share/lprps
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/psif ${PREFIX}/libexec
${INSTALL_PROGRAM} ${WRKSRC}/lprps ${PREFIX}/libexec
${INSTALL_PROGRAM} ${WRKSRC}/psof ${PREFIX}/libexec
${INSTALL_PROGRAM} ${WRKSRC}/textps ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/psrev ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/psif-text ${PREFIX}/libexec
${INSTALL_SCRIPT} ${WRKSRC}/psif-ps ${PREFIX}/libexec
${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} Now edit /etc/printcap
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/lprps
${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/lprps
.endif
.include <bsd.port.mk>
|