blob: db1aaafc21fdd3b093784fb7e792391657f67617 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# New ports collection makefile for: a2ps
# Version required: 4.9.7
# Date created: 18 August 1997
# Whom: Chuck Robey (chuckr@freebsd.org)
#
# $Id: Makefile,v 1.8 1996/11/17 08:44:16 obrien Exp $
#
DISTNAME= a2ps
PKGNAME= a2ps-${PAPERSIZE}-4.9.7
CATEGORIES= print
MASTER_SITES= http://www-inf.enst.fr/~demaille/ftp/a2ps/
DISTFILES= a2ps-4.9.7.tar.gz
MAINTAINER= chuckr@FreeBSD.org
WRKSRC= $(WRKDIR)/$(DISTNAME)-4.9.7
GNU_CONFIGURE= yes
MAN1= a2ps.1 ogonkify.1
PAPERSIZE?=
STRIP=
CONFIGURE_ARGS= --with-medium=$(PAPERSIZE)
Letter::
$(MAKE) PAPERSIZE=Letter
letter::
$(MAKE) PAPERSIZE=Letter
Letterdj::
$(MAKE) PAPERSIZE=Letterdj
letterdj::
$(MAKE) PAPERSIZE=Letterdj
A4::
$(MAKE) PAPERSIZE=A4
a4::
$(MAKE) PAPERSIZE=A4
pre-configure:
.if empty(PAPERSIZE)
@echo
@echo "PAPERSIZE not specified."
@echo
@echo "Must specify PAPERSIZE as one of A4, Letter, or Letterdj, either"
@echo "using setenv, or via Makefile targets of the same name. Note"
@echo "that each PAPERSIZE has a leading capital letter, and Letterdj"
@echo "allows a slightly larger margins for DeskJets."
@false
.elif $(PAPERSIZE)!=A4 && $(PAPERSIZE)!=Letter && $(PAPERSIZE)!=Letterdj
@echo
@echo "PAPERSIZE incorrect value: $(PAPERSIZE)."
@echo
@echo "Must specify PAPERSIZE as one of A4, Letter, or Letterdj, either"
@echo "using setenv, or via Makefile targets of the same name. Note"
@echo "that each PAPERSIZE has a leading capital letter, and Letterdj"
@echo "allows a slightly larger margins for DeskJets."
@false
.endif
echo $(PAPERSIZE) > $(WRKDIR)/.media
.include <bsd.port.mk>
.if exists($(WRKDIR)/.media)
PAPERSIZE=
PAPERSIZE!= cat $(WRKDIR)/.media
.endif
|