summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2012-03-17 10:01:39 +0000
committerHiroki Sato <hrs@FreeBSD.org>2012-03-17 10:01:39 +0000
commitd883589acd255335bb6f59242065a0341543bb9d (patch)
treebcdd0377b76f24834696df966089f600dbdd968a /print
parent- Update to 0.5.2 (diff)
Use libpaper for default paper size configuration. It is no longer hardcoded
and can be changed by PAPERSIZE environment variable at run time. Feature safe: yes
Notes
Notes: svn path=/head/; revision=293448
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript9/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/print/ghostscript9/Makefile b/print/ghostscript9/Makefile
index 5705de4efa98..4951f41aa53c 100644
--- a/print/ghostscript9/Makefile
+++ b/print/ghostscript9/Makefile
@@ -7,7 +7,7 @@
PORTNAME= ghostscript9
PORTVERSION= 9.05
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= print
MASTER_SITES= http://downloads.ghostscript.com/public/:gs_srcs \
SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \
@@ -78,7 +78,7 @@ DATADIR= ${PREFIX}/share/${PORTNAME:S,9$,,}
OPTIONS= A4SIZE "Set A4 (not Letter) as the default paper size" off \
CUPS "Enable CUPS support" on \
FONTCONFIG "fontconfig support" on \
- LIBPAPER "libpaper support" off \
+ LIBPAPER "libpaper support" on \
GTK "GTK frontend" off \
X11 "X11 support" on
@@ -111,14 +111,19 @@ PLIST_SUB+= GS_${D}="@comment "
.if !defined(WITH_LETTERSIZE)
.if defined(A4) || defined(WITH_A4SIZE)
+DEFAULTPAPERSIZE?= a4
XCFLAGS+= -DA4
MSG_PAPERSIZE= "NOTE: Default paper size will be A4."
.endif
.endif
+DEFAULTPAPERSIZE?= letter
.if !defined(WITHOUT_LIBPAPER)
LIB_DEPENDS+= paper:${PORTSDIR}/print/libpaper
CONFIGURE_ARGS+= --with-libpaper
+.if ${DEFAULTPAPERSIZE:L} == a4
+RUN_DEPENDS+= ${LOCALBASE}/etc/papersize:${PORTSDIR}/print/papersize-default-a4
+.endif
.else
CONFIGURE_ARGS+= --without-libpaper
.endif