diff options
author | chuckr <chuckr@FreeBSD.org> | 1997-08-19 11:44:07 +0800 |
---|---|---|
committer | chuckr <chuckr@FreeBSD.org> | 1997-08-19 11:44:07 +0800 |
commit | f421b8eb10d6c98ab1d3026d1e25cdd455e9bb99 (patch) | |
tree | 125b8a2788c37d9ffd529bcbfbd85387c6f6054a /print/a2ps-letter/Makefile | |
parent | 0d1f6d76efbe325924e50d049d6397b8882a1ec3 (diff) | |
download | freebsd-ports-gnome-f421b8eb10d6c98ab1d3026d1e25cdd455e9bb99.tar.gz freebsd-ports-gnome-f421b8eb10d6c98ab1d3026d1e25cdd455e9bb99.tar.zst freebsd-ports-gnome-f421b8eb10d6c98ab1d3026d1e25cdd455e9bb99.zip |
Major upgrade of a2ps. The feature that I liked most was the
automatic context sensitive font emphasis for software (pretty
printing).
Diffstat (limited to 'print/a2ps-letter/Makefile')
-rw-r--r-- | print/a2ps-letter/Makefile | 108 |
1 files changed, 52 insertions, 56 deletions
diff --git a/print/a2ps-letter/Makefile b/print/a2ps-letter/Makefile index db9e95479d0e..db1aaafc21fd 100644 --- a/print/a2ps-letter/Makefile +++ b/print/a2ps-letter/Makefile @@ -1,75 +1,71 @@ # New ports collection makefile for: a2ps -# Version required: 4.3 -# Date created: 6 November 1994 -# Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu) +# Version required: 4.9.7 +# Date created: 18 August 1997 +# Whom: Chuck Robey (chuckr@freebsd.org) # -# $Id: Makefile,v 1.7 1996/05/27 08:47:50 asami Exp $ +# $Id: Makefile,v 1.8 1996/11/17 08:44:16 obrien Exp $ # DISTNAME= a2ps -PKGNAME= a2ps-${PAPERSIZE}-4.3 +PKGNAME= a2ps-${PAPERSIZE}-4.9.7 CATEGORIES= print -MASTER_SITES= ftp://ftp.imag.fr/archive/postscript/format.translators/ -DISTFILES= a2ps.V4.3.tar.gz +MASTER_SITES= http://www-inf.enst.fr/~demaille/ftp/a2ps/ +DISTFILES= a2ps-4.9.7.tar.gz -MAINTAINER= jmz@FreeBSD.org +MAINTAINER= chuckr@FreeBSD.org -MAKE_FLAGS?= WIDTH=${WIDTH} HEIGHT=${HEIGHT} A4_PAPERSIZE=${A4_PAPERSIZE} -f -NO_WRKSUBDIR= yes -MAN1= a2ps.1 +WRKSRC= $(WRKDIR)/$(DISTNAME)-4.9.7 +GNU_CONFIGURE= yes +MAN1= a2ps.1 ogonkify.1 -letter:: - ${MAKE} PAPERSIZE=letter - -letter-install:: - ${MAKE} PAPERSIZE=letter install +PAPERSIZE?= +STRIP= +CONFIGURE_ARGS= --with-medium=$(PAPERSIZE) -a4:: - ${MAKE} PAPERSIZE=a4 -a4-install:: - ${MAKE} PAPERSIZE=a4 install +Letter:: + $(MAKE) PAPERSIZE=Letter +letter:: + $(MAKE) PAPERSIZE=Letter -.if !defined(PAPERSIZE) -PAPERSIZE=a4 -WIDTH=8.27 -HEIGHT=11.64 -A4_PAPERSIZE=1 -PAPERSIZE_UNSPECIFIED= yes -.elif ${PAPERSIZE} == A4 || ${PAPERSIZE} == a4 -PAPERSIZE=a4 -WIDTH=8.27 -HEIGHT=11.64 -A4_PAPERSIZE=1 -.elif ${PAPERSIZE} == letter || ${PAPERSIZE} == LETTER -PAPERSIZE=letter -WIDTH=8.5 -HEIGHT=11.0 -A4_PAPERSIZE=0 -.else -PAPERSIZE_INVALID= yes -.endif # not defined PAPERSIZE +Letterdj:: + $(MAKE) PAPERSIZE=Letterdj +letterdj:: + $(MAKE) PAPERSIZE=Letterdj -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 (default) or letter" -.elif defined(PAPERSIZE_INVALID) - @echo "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\"" - @echo "Possible values are: A4 (default) or letter" - @/usr/bin/false -.endif +A4:: + $(MAKE) PAPERSIZE=A4 -pre-install: - @${MKDIR} ${PREFIX}/bin - @${MKDIR} ${PREFIX}/man/man1 - @(cd ${WRKSRC}; make install.man) +a4:: + $(MAKE) PAPERSIZE=A4 -post-install: - strip ${PREFIX}/bin/a2ps +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 |