diff options
author | steve <steve@FreeBSD.org> | 1998-02-26 10:16:32 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-02-26 10:16:32 +0800 |
commit | 8465450ed0f45579291fef013749c489925d1b70 (patch) | |
tree | c04c695504e38ae537d126eedf8d5cdce43f772b /print/a2ps-letter | |
parent | eb660dd74f6717656dd100b2e0c0df170c07b427 (diff) | |
download | freebsd-ports-gnome-8465450ed0f45579291fef013749c489925d1b70.tar.gz freebsd-ports-gnome-8465450ed0f45579291fef013749c489925d1b70.tar.zst freebsd-ports-gnome-8465450ed0f45579291fef013749c489925d1b70.zip |
Use {} consistently and strip bin/a2ps.
PR: part of 5840
Diffstat (limited to 'print/a2ps-letter')
-rw-r--r-- | print/a2ps-letter/Makefile | 55 |
1 files changed, 18 insertions, 37 deletions
diff --git a/print/a2ps-letter/Makefile b/print/a2ps-letter/Makefile index 3965a3527c7f..8cf3b86fac8f 100644 --- a/print/a2ps-letter/Makefile +++ b/print/a2ps-letter/Makefile @@ -3,7 +3,7 @@ # Date created: 18 August 1997 # Whom: Chuck Robey (chuckr@freebsd.org) # -# $Id: Makefile,v 1.11 1997/11/10 11:23:14 asami Exp $ +# $Id: Makefile,v 1.12 1998/02/15 21:24:42 steve Exp $ # DISTNAME= a2ps-4.9.9 @@ -13,49 +13,26 @@ MASTER_SITES= http://www-inf.enst.fr/~demaille/ftp/a2ps/ MAINTAINER= chuckr@FreeBSD.org -MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to Letter A4 GNU_CONFIGURE= yes MAN1= a2ps.1 ogonkify.1 -PAPERSIZE?= +PAPERSIZE?= Letter STRIP= -CONFIGURE_ARGS= --with-medium=$(PAPERSIZE) +CONFIGURE_ARGS= --with-medium=${PAPERSIZE} -Letter:: - $(MAKE) PAPERSIZE=Letter +Letter letter: + ${MAKE} PAPERSIZE=Letter -letter:: - $(MAKE) PAPERSIZE=Letter +Letterdj letterdj: + ${MAKE} PAPERSIZE=Letterdj -Letterdj:: - $(MAKE) PAPERSIZE=Letterdj - -letterdj:: - $(MAKE) PAPERSIZE=Letterdj - -A4:: - $(MAKE) PAPERSIZE=A4 - -a4:: - $(MAKE) PAPERSIZE=A4 - -pre-build: - ${TOUCH} $(WRKSRC)/doc/*.info - ${TOUCH} $(WRKSRC)/doc/*.dvi +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 +.if ${PAPERSIZE} != A4 && ${PAPERSIZE} != Letter && ${PAPERSIZE} != Letterdj @${ECHO} - @${ECHO} "PAPERSIZE incorrect value: $(PAPERSIZE)." + @${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" @@ -63,11 +40,15 @@ pre-configure: @${ECHO} "allows a slightly larger margins for DeskJets." @false .endif - ${ECHO} $(PAPERSIZE) > $(WRKDIR)/.media + ${ECHO} ${PAPERSIZE} > ${WRKDIR}/.media + +post-install: + ${LDCONFIG} -R ${PREFIX}/lib + strip ${PREFIX}/bin/a2ps .include <bsd.port.mk> -.if exists($(WRKDIR)/.media) +.if exists(${WRKDIR}/.media) PAPERSIZE= -PAPERSIZE!= ${CAT} $(WRKDIR)/.media +PAPERSIZE!= ${CAT} ${WRKDIR}/.media .endif |