1995-04-15 04:34:11 +00:00
|
|
|
# New ports collection makefile for: a2ps
|
1997-08-19 03:44:07 +00:00
|
|
|
# Version required: 4.9.7
|
|
|
|
# Date created: 18 August 1997
|
|
|
|
# Whom: Chuck Robey (chuckr@freebsd.org)
|
1995-04-15 04:34:11 +00:00
|
|
|
#
|
1997-11-10 11:23:41 +00:00
|
|
|
# $Id: Makefile,v 1.10 1997/10/11 02:57:02 chuckr Exp $
|
1995-04-15 04:34:11 +00:00
|
|
|
#
|
|
|
|
|
1994-11-06 02:13:39 +00:00
|
|
|
DISTNAME= a2ps
|
1997-10-11 02:57:19 +00:00
|
|
|
PKGNAME= a2ps-${PAPERSIZE}-4.9.8
|
1996-11-17 08:45:20 +00:00
|
|
|
CATEGORIES= print
|
1997-08-19 03:44:07 +00:00
|
|
|
MASTER_SITES= http://www-inf.enst.fr/~demaille/ftp/a2ps/
|
1997-10-11 02:57:19 +00:00
|
|
|
DISTFILES= a2ps-4.9.8.tar.gz
|
1995-04-15 04:34:11 +00:00
|
|
|
|
1997-08-19 03:44:07 +00:00
|
|
|
MAINTAINER= chuckr@FreeBSD.org
|
1994-11-06 02:13:39 +00:00
|
|
|
|
1997-11-10 11:23:41 +00:00
|
|
|
MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to Letter A4
|
1997-10-11 02:57:19 +00:00
|
|
|
WRKSRC= $(WRKDIR)/$(DISTNAME)-4.9.8
|
1997-08-19 03:44:07 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
MAN1= a2ps.1 ogonkify.1
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1997-08-19 03:44:07 +00:00
|
|
|
PAPERSIZE?=
|
|
|
|
STRIP=
|
|
|
|
CONFIGURE_ARGS= --with-medium=$(PAPERSIZE)
|
1996-05-27 08:48:10 +00:00
|
|
|
|
|
|
|
|
1997-08-19 03:44:07 +00:00
|
|
|
Letter::
|
|
|
|
$(MAKE) PAPERSIZE=Letter
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1997-08-19 03:44:07 +00:00
|
|
|
letter::
|
|
|
|
$(MAKE) PAPERSIZE=Letter
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1997-08-19 03:44:07 +00:00
|
|
|
Letterdj::
|
|
|
|
$(MAKE) PAPERSIZE=Letterdj
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1997-08-19 03:44:07 +00:00
|
|
|
letterdj::
|
|
|
|
$(MAKE) PAPERSIZE=Letterdj
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1997-08-19 03:44:07 +00:00
|
|
|
A4::
|
|
|
|
$(MAKE) PAPERSIZE=A4
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1997-08-19 03:44:07 +00:00
|
|
|
a4::
|
|
|
|
$(MAKE) PAPERSIZE=A4
|
1994-11-06 02:13:39 +00:00
|
|
|
|
1997-10-11 02:57:19 +00:00
|
|
|
pre-build:
|
|
|
|
/usr/bin/touch $(WRKSRC)/doc/*.info
|
|
|
|
/usr/bin/touch $(WRKSRC)/doc/*.dvi
|
|
|
|
|
1997-08-19 03:44:07 +00:00
|
|
|
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
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1994-11-06 02:13:39 +00:00
|
|
|
.include <bsd.port.mk>
|
1997-08-19 03:44:07 +00:00
|
|
|
|
|
|
|
.if exists($(WRKDIR)/.media)
|
|
|
|
PAPERSIZE=
|
|
|
|
PAPERSIZE!= cat $(WRKDIR)/.media
|
|
|
|
.endif
|