ports/145248: [PATCH] print/ghostscript8-nox11: fix cairo support

Martin Matuska mm at FreeBSD.org
Wed Mar 31 18:00:22 UTC 2010


>Number:         145248
>Category:       ports
>Synopsis:       [PATCH] print/ghostscript8-nox11: fix cairo support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 31 18:00:19 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Martin Matuska
>Release:        FreeBSD 8.0-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD neo.vx.sk 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #16: Fri Jan 15 21:10:48 CET 2010
>Description:
If cairo is installed on the system ghostscript automatically links against it.
The package doesn't know about this.

The attached patch resolves ths issue.

Port maintainer (doceng at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- ghostscript8-nox11-8.70_3.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/print/ghostscript8/Makefile,v
retrieving revision 1.193
diff -u -r1.193 Makefile
--- Makefile	28 Mar 2010 06:42:29 -0000	1.193
+++ Makefile	31 Mar 2010 17:56:21 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	ghostscript8
 PORTVERSION=	8.70
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	print
 MASTER_SITES=	SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \
 		ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs${PORTVERSION:S/.//}/:gs_srcs \
@@ -60,6 +60,7 @@
 DATADIR=	${PREFIX}/share/${PORTNAME:S,8$,,}
 
 OPTIONS=	A4SIZE	"Set A4 (not Letter) as a default paper size"	off \
+		CAIRO	"Enable Cairo support"	off \
 		CUPS	"Enable CUPS support"	on \
 		FONTCONFIG	"fontconfig support"	on \
 		FT_BRIDGE	"FreeType bridge"	off \
@@ -193,6 +194,13 @@
 CONFIGURE_ARGS+=	--disable-fontconfig
 .endif
 
+.if defined(WITH_CAIRO)
+LIB_DEPENDS+=	cairo.2:${PORTSDIR}/graphics/cairo
+CONFIGURE_ARGS+=	--enable-cairo
+.else
+CONFIGURE_ARGS+=	--disable-cairo
+.endif
+
 .if !defined(WITHOUT_FT_BRIDGE)
 LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
 MAKE_ENV+=	FT_BRIDGE=1 FT_ROOT="${WRKSRC}/freetype" FT_LIB_EXT=".so"
--- ghostscript8-nox11-8.70_3.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list