mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Add XCB support with optional. Enable it by default, since future version of
x11-wm/awesome needs it. Bump the PORTREVISION. PR: ports/126993 Submitted by: bf <bf2006a@yahoo.com> Requested by: Nikos Ntarmos <ntarmos@ceid.upatras.gr>
This commit is contained in:
parent
c3afa705b2
commit
73e672e245
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=221799
@ -8,7 +8,7 @@
|
||||
|
||||
PORTNAME= cairo
|
||||
PORTVERSION= 1.6.4
|
||||
PORTREVISION?= 2
|
||||
PORTREVISION?= 3
|
||||
PORTEPOCH?= 1
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= http://cairographics.org/releases/
|
||||
@ -42,7 +42,8 @@ USE_XORG+= xrender
|
||||
PLIST_SUB+= X11=""
|
||||
.endif
|
||||
|
||||
OPTIONS+= GLITZ "Enable Glitz OpenGL Support" Off
|
||||
OPTIONS+= GLITZ "Enable Glitz OpenGL Support" Off \
|
||||
XCB "Enable XCB (X C-language Binding) Support" On
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
@ -55,6 +56,16 @@ CONFIGURE_ARGS+= --disable-glitz
|
||||
PLIST_SUB+= GLITZ="@comment "
|
||||
.endif
|
||||
|
||||
.ifdef(WITH_XCB)
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/xcb-renderutil.pc:${PORTSDIR}/x11/xcb-util
|
||||
RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/xcb-renderutil.pc:${PORTSDIR}/x11/xcb-util
|
||||
CONFIGURE_ARGS+= --enable-xcb
|
||||
PLIST_SUB+= XCB=""
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-xcb
|
||||
PLIST_SUB+= XCB="@comment "
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \
|
||||
${WRKSRC}/test/Makefile.in
|
||||
|
@ -5,6 +5,8 @@ include/cairo/cairo-ft.h
|
||||
include/cairo/cairo-pdf.h
|
||||
include/cairo/cairo-ps.h
|
||||
include/cairo/cairo-svg.h
|
||||
%%XCB%%include/cairo/cairo-xcb-xrender.h
|
||||
%%XCB%%include/cairo/cairo-xcb.h
|
||||
%%X11%%include/cairo/cairo-xlib-xrender.h
|
||||
%%X11%%include/cairo/cairo-xlib.h
|
||||
include/cairo/cairo.h
|
||||
@ -19,6 +21,7 @@ libdata/pkgconfig/cairo-pdf.pc
|
||||
libdata/pkgconfig/cairo-png.pc
|
||||
libdata/pkgconfig/cairo-ps.pc
|
||||
libdata/pkgconfig/cairo-svg.pc
|
||||
%%XCB%%libdata/pkgconfig/cairo-xcb.pc
|
||||
%%X11%%libdata/pkgconfig/cairo-xlib.pc
|
||||
%%X11%%libdata/pkgconfig/cairo-xlib-xrender.pc
|
||||
@dirrm include/cairo
|
||||
|
Loading…
Reference in New Issue
Block a user