ports/146421: [patch] graphics/cairo: add DIRECTFB knob

Anonymous swell.k at gmail.com
Sun May 9 04:00:13 UTC 2010


>Number:         146421
>Category:       ports
>Synopsis:       [patch] graphics/cairo: add DIRECTFB knob
>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:   Sun May 09 04:00:07 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
directfb-1.4.3, built with FREETYPE2, X11, SDL, cf. ports/144765
>Description:
Required to build gtk-directfb-2.18.7.
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: graphics/cairo/Makefile
===================================================================
RCS file: /a/.cvsup/ports/graphics/cairo/Makefile,v
retrieving revision 1.45
diff -u -p -r1.45 Makefile
--- graphics/cairo/Makefile	28 Mar 2010 09:58:58 -0000	1.45
+++ graphics/cairo/Makefile	9 May 2010 03:52:04 -0000
@@ -43,11 +43,21 @@ USE_XORG+=	xrender
 PLIST_SUB+=	X11=""
 .endif
 
-OPTIONS+=	GLITZ "Enable Glitz OpenGL Support" Off \
+OPTIONS+=	DIRECTFB "Enable DirectFB Support" Off \
+		GLITZ "Enable Glitz OpenGL Support" Off \
 		XCB "Enable XCB (X C-language Binding) Support" On
 
 .include <bsd.port.pre.mk>
 
+.if defined(WITH_DIRECTFB)
+LIB_DEPENDS+=	directfb-1.[0-9].3:${PORTSDIR}/devel/directfb
+CONFIGURE_ARGS+=	--enable-directfb
+PLIST_SUB+=	DIRECTFB=""
+.else
+CONFIGURE_ARGS+=	--disable-directfb
+PLIST_SUB+=	DIRECTFB="@comment "
+.endif
+
 .if defined(WITH_GLITZ)
 LIB_DEPENDS+=	glitz-glx.1:${PORTSDIR}/graphics/glitz
 CONFIGURE_ARGS+=	--enable-glitz
Index: graphics/cairo/pkg-plist
===================================================================
RCS file: /a/.cvsup/ports/graphics/cairo/pkg-plist,v
retrieving revision 1.10
diff -u -p -r1.10 pkg-plist
--- graphics/cairo/pkg-plist	10 Jan 2009 05:21:31 -0000	1.10
+++ graphics/cairo/pkg-plist	9 May 2010 02:04:20 -0000
@@ -1,4 +1,5 @@
 include/cairo/cairo-deprecated.h
+%%DIRECTFB%%include/cairo/cairo-directfb.h
 include/cairo/cairo-features.h
 include/cairo/cairo-ft.h
 %%GLITZ%%include/cairo/cairo-glitz.h
@@ -16,6 +17,7 @@ lib/libcairo.la
 lib/libcairo.so
 lib/libcairo.so.2
 libdata/pkgconfig/cairo.pc
+%%DIRECTFB%%libdata/pkgconfig/cairo-directfb.pc
 libdata/pkgconfig/cairo-ft.pc
 %%GLITZ%%libdata/pkgconfig/cairo-glitz.pc
 libdata/pkgconfig/cairo-pdf.pc
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list