summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorfrueauf <frueauf>1998-02-22 17:05:12 +0000
committerfrueauf <frueauf>1998-02-22 17:05:12 +0000
commit7893485907d7600506a6c7edfc47240139e390a8 (patch)
tree85e6c4b0ea20890c814639a5782e45b8bf3b9d47 /print
parentb2e8fd0bacfafa182f7ac86c1758d1cb55c08f36 (diff)
downloadpkgsrc-7893485907d7600506a6c7edfc47240139e390a8.tar.gz
- include mk.conf/make.conf to get user defined PAPERSIZE
- s/PAPER_SIZE/PAPERSIZE to keep FreeBSD compatibility - add pre-clean rule to clean jpeg and png too
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript5/Makefile27
1 files changed, 24 insertions, 3 deletions
diff --git a/print/ghostscript5/Makefile b/print/ghostscript5/Makefile
index 75279071051..bdea41ea598 100644
--- a/print/ghostscript5/Makefile
+++ b/print/ghostscript5/Makefile
@@ -3,7 +3,7 @@
# Date created: Tue Jun 10 21:58:54 CEST 1997
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
#
-# $NetBSD: Makefile,v 1.8 1998/01/19 11:26:50 agc Exp $
+# $NetBSD: Makefile,v 1.9 1998/02/22 17:05:12 frueauf Exp $
# FreeBSD Id: Makefile,v 1.14 1997/10/13 11:22:43 asami Exp
#
@@ -42,6 +42,23 @@ GS_FONTS_OTHER= ghostscript-fonts-other-4.40.tar.gz
# Additional driver HP 850, see http://bonk.ethz.ch/hp850/hp850.html
HP850_DRV= hp850.zip
+# Include local make config file here. It is essential to have this
+# precede any override targets (those that override defaults in
+# <bsd.port.mk> that test variables that may be set here. Note that
+# this inclusion is otherwise redundant, since <bsd.port.mk> includes
+# <bsd.own.mk>, which includes it.
+
+OPSYS!= uname -s
+.if (${OPSYS} == "FreeBSD")
+.if exists(/etc/make.conf)
+.include "/etc/make.conf"
+.endif
+.else
+.if exists(/etc/mk.conf)
+.include "/etc/mk.conf"
+.endif
+.endif
+
post-extract:
${TOUCH} ${WRKSRC}/adler32.c
${TOUCH} ${WRKSRC}/deflate.c
@@ -64,13 +81,13 @@ do-configure:
do-build:
@(paper=""; \
- case X"${PAPER_SIZE}" in \
+ case X"${PAPERSIZE}" in \
X[aA]4) \
paper="-DA4"; \
${ECHO_MSG} "Using $$paper to set default paper size to A4."; \
;; \
*) \
- ${ECHO_MSG} "Using default letter paper size (Set PAPER_SIZE=A4 for A4 paper size)."; \
+ ${ECHO_MSG} "Using default Letter paper size (Set PAPERSIZE=A4 for A4 paper size)."; \
;; \
esac; \
cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \
@@ -86,4 +103,8 @@ pre-install:
post-install:
strip ${PREFIX}/bin/gs
+pre-clean:
+ @cd ${PORTSDIR}/graphics/jpeg && ${MAKE} clean
+ @cd ${PORTSDIR}/graphics/png && ${MAKE} clean
+
.include <bsd.port.mk>