summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authortron <tron>2008-02-15 15:47:56 +0000
committertron <tron>2008-02-15 15:47:56 +0000
commit42648d95e0ad776f7a7f6ae1a9de47311240e804 (patch)
treef7e6e4096117c4d7157a11122e701779d64e7c41 /print
parent2001676d985cdfa2b15ee67d422a9ae2f492baff (diff)
downloadpkgsrc-42648d95e0ad776f7a7f6ae1a9de47311240e804.tar.gz
Set temporary directory before invoking Ghostscript to avoid random
failures when attempting to print Postscript files. Bump package revision because of this fix. Based on a patch contributed by Paul Goyette in PR pkg/38037.
Diffstat (limited to 'print')
-rw-r--r--print/magicfilter/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/print/magicfilter/Makefile b/print/magicfilter/Makefile
index a878e3b00f2..5ce1e13322b 100644
--- a/print/magicfilter/Makefile
+++ b/print/magicfilter/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.51 2007/03/24 19:21:31 joerg Exp $
+# $NetBSD: Makefile,v 1.52 2008/02/15 15:47:56 tron Exp $
DISTNAME= magicfilter-1.2
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SUNSITE:=system/printing/}
@@ -35,6 +35,12 @@ SUBST_MESSAGE.mf= Adjusting paper size in filters.
SUBST_FILES.mf= filters/*-filter
SUBST_SED.mf= -e 's/-sOutputFile=-/& -sPAPERSIZE=${LOWER_PAPERSIZE:Q:Q}/'
+SUBST_CLASSES+= gs
+SUBST_STAGE.gs= post-configure
+SUBST_MESSAGE.gs= Adjusting ghostscript temporary directory.
+SUBST_FILES.gs= filters/filters2.h
+SUBST_SED.gs= -e 's,${PREFIX}/bin/gs,${SETENV} TEMP=$${TMPDIR:-/tmp} &,'
+
INSTALLATION_DIRS+= bin ${FILTER_DIR} ${PKGMANDIR}/man8
GENERATE_PLIST+= \