Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Aug 2010 16:50:52 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        gnome@FreeBSD.org
Cc:        hrs@FreeBSD.org
Subject:   print/ghostscript8 gtk support
Message-ID:  <20100808.165052.64910211.hrs@allbsd.org>

next in thread | raw e-mail | index | archive | help
----Security_Multipart0(Sun_Aug__8_16_50_52_2010_881)--
Content-Type: Multipart/Mixed;
	boundary="--Next_Part(Sun_Aug__8_16_50_52_2010_068)--"
Content-Transfer-Encoding: 7bit

----Next_Part(Sun_Aug__8_16_50_52_2010_068)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

 Can anyone try the attached patch for print/ghostscript8 and let me
 know if there is something wrong in your desktop?

 This patch removes GTK+ dependency from GhostScript by default. The
 difference before and after applying the patch is that "gsx
 -sDEVICE=display" no longer generates display window (via GTK).

 I guess this is not directly related to GNOME itself, but I am
 interested in whether this change is safe in standard GNOME
 environment; some applications may use the "display" device as a
 backend for postscript rendering.  Thank you.

-- Hiroki

----Next_Part(Sun_Aug__8_16_50_52_2010_068)--
Content-Type: Text/X-Patch; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="ghostscript8_nogtk_20100808.diff"

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/print/ghostscript8/Makefile,v
retrieving revision 1.200
diff -d -u -I \$FreeBSD:.*\$ -I \$NetBSD:.*\$ -I \$OpenBSD:.*\$ -I \$DragonFly:.*\$ -I \$Id:.*\$ -I \$Translation:.*\$ -I \$hrs:.*\$ -r1.200 Makefile
--- Makefile	3 Aug 2010 15:39:45 -0000	1.200
+++ Makefile	8 Aug 2010 07:02:07 -0000
@@ -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,7 +71,8 @@
 		CUPS	"Enable CUPS support"	on \
 		FONTCONFIG	"fontconfig support"	on \
 		FT_BRIDGE	"FreeType bridge"	off \
-		X11	"X11 support"	on
+		X11	"X11 support"	on \
+		GTK	"GTK frontend"	off

 MAN1=		dvipdf.1 font2c.1 gs.1 gslp.1 gsnd.1 \
 		pdf2dsc.1 pdf2ps.1 pdfopt.1 pf2afm.1 pfbtopfa.1 printafm.1 \
Index: files/Makefile.drivers_post
===================================================================
RCS file: /home/ncvs/ports/print/ghostscript8/files/Makefile.drivers_post,v
retrieving revision 1.3
diff -d -u -I \$FreeBSD:.*\$ -I \$NetBSD:.*\$ -I \$OpenBSD:.*\$ -I \$DragonFly:.*\$ -I \$Id:.*\$ -I \$Translation:.*\$ -I \$hrs:.*\$ -r1.3 Makefile.drivers_post
--- files/Makefile.drivers_post	2 Aug 2010 06:15:08 -0000	1.3
+++ files/Makefile.drivers_post	8 Aug 2010 07:06:37 -0000
@@ -9,7 +9,7 @@
 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 @@
 # 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 @@

 # 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,12 +109,20 @@
 		--x-includes=${X11BASE}/include \
 		--x-libraries=${X11BASE}/lib
 CONFLICTS+=	ghostscript8-nox11-[0-9]*
-.else
-CONFIGURE_ARGS+=--without-x
+.if defined(WITH_GTK)
+PKGNAMESUFFIX:=	${PKGNAMESUFFIX}-gtk
+USE_GNOME=	atk gdkpixbuf glib20 gtk20
+CONFIGURE_ARGS+=--enable-gtk
 CONFLICTS+=	ghostscript8-[0-9]*
+.else
+CONFIGURE_ARGS+=--disable-gtk
+CONFLICTS+=	ghostscript8-gtk-[0-9]*
 .endif
-.if defined(WITHOUT_X11)
+.else
 PKGNAMESUFFIX:=	${PKGNAMESUFFIX}-nox11
+CONFIGURE_ARGS+=--without-x \
+		--disable-gtk
+CONFLICTS+=	ghostscript8-[0-9]*
 .endif

 # iconv specific

----Next_Part(Sun_Aug__8_16_50_52_2010_068)----

----Security_Multipart0(Sun_Aug__8_16_50_52_2010_881)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEABECAAYFAkxeYdwACgkQTyzT2CeTzy2o2wCeIA/lXvqsuq7yISqZ/p/GjoDE
djUAoNOu9nyWmifq+94GC9wNmzQze58s
=1d1M
-----END PGP SIGNATURE-----

----Security_Multipart0(Sun_Aug__8_16_50_52_2010_881)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100808.165052.64910211.hrs>