blob: 3c720e1856890cc348e8cb693853910c6d22e315 (
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
54
|
# $NetBSD: Makefile,v 1.13 1998/07/02 14:04:53 frueauf Exp $
# FreeBSD Id: Makefile,v 1.12 1998/02/15 21:24:42 steve Exp
#
DISTNAME= a2ps-4.10.3
PKGNAME= a2ps-${PAPERSIZE}-4.10.3
CATEGORIES= print
MASTER_SITES= http://www-inf.enst.fr/~demaille/ftp/a2ps/
MAINTAINER= packages@netbsd.org
GNU_CONFIGURE= yes
CONFLICTS= a2ps-A4-4.9.9 a2ps-Letter-4.9.9 a2ps-Letterdj-4.9.9
STRIP=
CONFIGURE_ARGS+=--with-medium=${PAPERSIZE}
CONFIGURE_ENV+= LPR=lpr
USE_GTEXINFO= YES
INFO_FILES= a2ps.info ogonkify.info regex.info
ALL_TARGET= all PAPERSIZE=${PAPERSIZE}
PAPERSIZE?= A4
pre-build:
${TOUCH} ${WRKSRC}/doc/*.info
${TOUCH} ${WRKSRC}/doc/*.dvi
pre-configure:
@(case "X${PAPERSIZE}" in \
XA4|XLetter|XLetterdj) \
goodsize=yes; \
;; \
*) \
goodsize=no; \
${ECHO} "PAPERSIZE incorrect value: ${PAPERSIZE}."; \
;; \
esac; \
if [ $$goodsize = "no" ]; then \
${ECHO} ""; \
${ECHO} "Must specify PAPERSIZE as one of A4, Letter,"; \
${ECHO} "or Letterdj, either in the environment, or "; \
${ECHO} "via Makefile definitions of the same name. "; \
${ECHO} "Note that each PAPERSIZE has a leading "; \
${ECHO} "capital letter, and Letterdj allows a "; \
${ECHO} "slightly larger margins for DeskJets."; \
${FALSE}; \
fi)
post-install:
${LDCONFIG} || ${TRUE}
.include "../../mk/bsd.pkg.mk"
|