blob: 87af43fc680d393f2918fff876530ee9246dc246 (
plain)
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
|
# New ports collection makefile for: enscript
# Version required: 1.5.0
# Date created: 24 Jul, 1997
# Whom: kline
#
# $NetBSD: Makefile,v 1.3 1998/02/23 14:27:51 agc Exp $
# FreeBSD Id: Makefile,v 1.4 1997/11/27 08:10:30 tg Exp
#
DISTNAME= enscript-1.5.0
PKGNAME= enscript-${PAPERSIZE}-1.5.0
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_GNU}
MAINTAINER= kline@thought.org
MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to Letter or A4
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-nls --with-media=${PAPERSIZE}
CONFIGURE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
MAKE_ENV+= `${CAT} ${PAPER}`
MAN1= diffpp.1 enscript.1 sliceprint.1 states.1
# If you want to build a static binary, uncomment the following line
#LDFLAGS+=-static
PAPERSIZE?= A4
PAPER= ${.CURDIR}/${WRKDIR:T}/PaperSize
pre-configure:
@case "X${PAPERSIZE}" in \
XA4) \
${ECHO} "WIDTH=8.27 HEIGHT=11.64" > ${PAPER}; \
;; \
XLetter) \
${ECHO} "WIDTH=8.5 HEIGHT=11.0" > ${PAPER}; \
;; \
XLetterdj) \
;; \
*) \
@${ECHO} "Error: PAPERSIZE invalid: \"${PAPERSIZE}\""; \
@${ECHO} "Possible values are: A4 (default) or Letter";\
${FALSE}; \
;; \
esac
post-install:
.for file in enscript mkafmmap states
strip ${PREFIX}/bin/${file}
.endfor
.include <bsd.port.mk>
|