ports/137634: [PATCH] print/ghostscript8: Register cairo libdepends

Ulrich Spoerlein uspoerlein at gmail.com
Mon Aug 10 11:20:01 UTC 2009


>Number:         137634
>Category:       ports
>Synopsis:       [PATCH] print/ghostscript8: Register cairo libdepends
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 10 11:20:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 8.0-BETA2 amd64
>Organization:
>Environment:
>Description:
- Since 8.63 ghostscript has a cairo output driver for PDF, SVG, EPS or PNG files
- configure will detect the library if present and link against it, this is not
  registered in /var/db/pkg
- fix this by requiring explicit WITH_CAIRO option to link against cairo

This could probably be solved better by using Makefile.drivers, but I'm not sure
what is involved there.

Port maintainer (doceng at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
install cairo, install ghostscript8, deinstall cairo which will not give you an error
try to run gs(1) which will fail, as it cannot load libcairo.so.n
>Fix:

--- ghostscript8-8.64_7.patch begins here ---
Index: Makefile
===================================================================
RCS file: /tank/ncvs/ports/print/ghostscript8/Makefile,v
retrieving revision 1.187
diff -u -p -u -r1.187 Makefile
--- Makefile	18 Jul 2009 11:11:18 -0000	1.187
+++ Makefile	10 Aug 2009 11:11:07 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	ghostscript8
 PORTVERSION=	8.64
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	print
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs/} \
 		ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs${PORTVERSION:S/.//}/:gs_srcs \
@@ -57,6 +57,7 @@ PKGMESSAGE=	${WRKDIR}/pkg-message
 DATADIR=	${PREFIX}/share/${PORTNAME:S,8$,,}
 
 OPTIONS=	A4SIZE	"Set A4 (not Letter) as a default paper size"	off \
+		CAIRO	"Enable (experimental) Cairo output device"	off \
 		CUPS	"Enable CUPS support"	on \
 		FONTCONFIG	"fontconfig support"	on \
 		FT_BRIDGE	"FreeType bridge"	off \
@@ -86,6 +87,13 @@ PLIST_SUB+=	GS_${D}="@comment "
 .endif
 .endfor
 
+.if !defined(WITH_CAIRO)
+CONFIGURE_ARGS+=	--disable-cairo
+.else
+LIB_DEPENDS+=	cairo.2:${PORTSDIR}/graphics/cairo
+CONFIGURE_ARGS+=	--enable-cairo
+.endif
+
 .if !defined(WITHOUT_CUPS)
 LIB_DEPENDS+=	cupsimage.2:${PORTSDIR}/print/cups-image
 CONFIGURE_ARGS+=	--enable-cups
--- ghostscript8-8.64_7.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list