diff options
author | tron <tron@pkgsrc.org> | 2008-02-15 15:47:56 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2008-02-15 15:47:56 +0000 |
commit | b11d094ebf0968734ea3da7e4113aee01f077768 (patch) | |
tree | f7e6e4096117c4d7157a11122e701779d64e7c41 /print | |
parent | fa95565c2ef7ad1a957c8e3c260e97d12ccd14d5 (diff) | |
download | pkgsrc-b11d094ebf0968734ea3da7e4113aee01f077768.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/Makefile | 10 |
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+= \ |