aboutsummaryrefslogtreecommitdiffstats
path: root/print/ghostscript8
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2010-08-21 23:26:11 +0800
committerhrs <hrs@FreeBSD.org>2010-08-21 23:26:11 +0800
commitef310ff9aeb85cdc582ee64559fca9325a62b26f (patch)
treed950bfffacd18bbbd22d986b10b9953a3bc1cef6 /print/ghostscript8
parentd8fa8cce11c1fa999cb11500d65c84a9503dd780 (diff)
downloadfreebsd-ports-gnome-ef310ff9aeb85cdc582ee64559fca9325a62b26f.tar.gz
freebsd-ports-gnome-ef310ff9aeb85cdc582ee64559fca9325a62b26f.tar.zst
freebsd-ports-gnome-ef310ff9aeb85cdc582ee64559fca9325a62b26f.zip
Disable the GTK frontend by default.
Discussed with: ache
Diffstat (limited to 'print/ghostscript8')
-rw-r--r--print/ghostscript8/Makefile3
-rw-r--r--print/ghostscript8/files/Makefile.drivers_post17
2 files changed, 13 insertions, 7 deletions
diff --git a/print/ghostscript8/Makefile b/print/ghostscript8/Makefile
index 27bf5114cba0..c76914ff70de 100644
--- a/print/ghostscript8/Makefile
+++ b/print/ghostscript8/Makefile
@@ -7,7 +7,7 @@
PORTNAME= ghostscript8
PORTVERSION= 8.71
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= print
MASTER_SITES= http://ghostscript.com/releases/:gs_srcs \
SF/ghostscript/files/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \
@@ -71,6 +71,7 @@ OPTIONS= A4SIZE "Set A4 (not Letter) as a default paper size" off \
CUPS "Enable CUPS support" on \
FONTCONFIG "fontconfig support" on \
FT_BRIDGE "FreeType bridge" off \
+ GTK "GTK frontend" off \
X11 "X11 support" on
MAN1= dvipdf.1 font2c.1 gs.1 gslp.1 gsnd.1 \
diff --git a/print/ghostscript8/files/Makefile.drivers_post b/print/ghostscript8/files/Makefile.drivers_post
index 226b26fa36fc..60811ece1ed4 100644
--- a/print/ghostscript8/files/Makefile.drivers_post
+++ b/print/ghostscript8/files/Makefile.drivers_post
@@ -9,7 +9,7 @@ OPTIONS_${D}_DEFAULT= on
OPTIONS_${D}_DEFAULT= off
.endif
.endfor
-.for D in SVGALIB CAIRO CUPS
+.for D in SVGALIB CAIRO CUPS GTK
.if !defined(WITH_${D})
OPTIONS_${D}_DEFAULT= off
.else
@@ -20,6 +20,7 @@ OPTIONS_${D}_DEFAULT= on
# makesum needs lowest common multiple
.if make(makesum)
OPTIONS_X11_DEFAULT= on
+OPTIONS_GTK_DEFAULT= on
OPTIONS_SVGALIB_DEFAULT=on
OPTIONS_ICONV_DEFAULT= on
OPTIONS_CAIRO_DEFAULT= on
@@ -91,7 +92,7 @@ LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
# x11 specific
X11_DEVS= x11 x11alpha x11cmyk x11cmyk2 x11cmyk4 x11cmyk8 x11gray2 \
- x11gray4 x11mono x11rg16x x11rg32x
+ x11gray4 x11mono x11rg16x x11rg32x display
.undef _X11_DEVS
.for D in ${X11_DEVS}
@@ -108,13 +109,17 @@ CONFIGURE_ARGS+=--with-x \
--x-includes=${X11BASE}/include \
--x-libraries=${X11BASE}/lib
CONFLICTS+= ghostscript8-nox11-[0-9]*
+.if defined(WITH_GTK)
+USE_GNOME= atk gdkpixbuf glib20 gtk20
+CONFIGURE_ARGS+=--enable-gtk
.else
-CONFIGURE_ARGS+=--without-x
-CONFLICTS+= ghostscript8-[0-9]*
+CONFIGURE_ARGS+=--disable-gtk
.endif
-.if defined(WITHOUT_X11)
+.else # defined(_X11_DEVS)
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-nox11
-.endif
+CONFIGURE_ARGS+=--without-x --disable-gtk
+CONFLICTS+= ghostscript8-[0-9]*
+.endif # defined(_X11_DEVS)
# iconv specific
ICONV_DEVS= oprp opvp