2012-09-26 10:12:42 +00:00
|
|
|
# Created by: Michael Johnson <ahze@FreeBSD.org>
|
2004-11-08 16:43:03 +00:00
|
|
|
# $FreeBSD$
|
2010-11-20 15:37:08 +00:00
|
|
|
# $MCom: ports/graphics/cairo/Makefile,v 1.101 2010/10/29 15:40:04 kwm Exp $
|
2004-11-08 16:43:03 +00:00
|
|
|
|
|
|
|
PORTNAME= cairo
|
2012-05-26 03:54:11 +00:00
|
|
|
PORTVERSION= 1.10.2
|
2014-04-23 13:25:16 +00:00
|
|
|
PORTREVISION= 10
|
2012-05-26 03:54:11 +00:00
|
|
|
PORTEPOCH?= 2
|
2004-11-08 16:43:03 +00:00
|
|
|
CATEGORIES= graphics
|
2008-03-30 02:27:00 +00:00
|
|
|
MASTER_SITES= http://cairographics.org/releases/
|
2004-11-08 16:43:03 +00:00
|
|
|
|
2005-03-03 09:03:33 +00:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2005-02-24 11:15:30 +00:00
|
|
|
COMMENT= Vector graphics library with cross-device output support
|
2004-11-08 16:43:03 +00:00
|
|
|
|
2006-05-10 19:43:18 +00:00
|
|
|
.if !defined(REFERENCE_PORT)
|
|
|
|
|
2014-04-11 15:20:44 +00:00
|
|
|
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \
|
|
|
|
libpng15.so:${PORTSDIR}/graphics/png \
|
|
|
|
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
|
2004-11-08 16:43:03 +00:00
|
|
|
|
2014-04-11 15:20:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-11-05 04:53:48 +00:00
|
|
|
CONFIGURE_ARGS= --with-html-dir=${DOCSDIR} \
|
2010-06-03 12:35:42 +00:00
|
|
|
--disable-directfb \
|
2013-03-19 16:15:33 +00:00
|
|
|
--enable-tee
|
2014-04-23 13:25:16 +00:00
|
|
|
USES= libtool:keepla pathfix pkgconfig
|
2013-05-26 08:48:28 +00:00
|
|
|
USE_XORG= pixman
|
2014-04-11 15:20:44 +00:00
|
|
|
USE_GNOME= referencehack
|
2006-10-14 08:35:50 +00:00
|
|
|
USE_LDCONFIG= yes
|
2014-04-11 15:20:44 +00:00
|
|
|
INSTALL_TARGET= install-strip
|
2004-11-08 16:43:03 +00:00
|
|
|
|
2010-11-20 15:37:08 +00:00
|
|
|
CPPFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
2004-11-08 16:43:03 +00:00
|
|
|
|
2012-09-26 10:12:42 +00:00
|
|
|
OPTIONS_DEFINE= OPENGL XCB GLIB X11
|
|
|
|
OPTIONS_DEFAULT= XCB GLIB X11
|
|
|
|
XCB_DESC= Enable XCB (X C-language Binding) Support
|
|
|
|
GLIB_DESC= Enable GObject Functions Feature
|
2005-02-16 05:52:43 +00:00
|
|
|
|
2005-02-17 00:59:40 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-09-04 03:05:23 +00:00
|
|
|
.if ${ARCH} == "arm"
|
|
|
|
BROKEN= Does not compile on arm
|
|
|
|
.endif
|
|
|
|
|
2012-09-26 10:12:42 +00:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
|
|
|
USE_XORG+= xrender
|
|
|
|
PLIST_SUB+= X11=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-xlib
|
|
|
|
PLIST_SUB+= X11="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MOPENGL}
|
2010-11-20 15:37:08 +00:00
|
|
|
USE_GL= gl
|
2013-01-16 11:38:15 +00:00
|
|
|
USE_XORG+= glproto:both dri2proto:both
|
2010-11-20 15:37:08 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-gl
|
|
|
|
PLIST_SUB+= GL=""
|
2005-03-09 04:13:40 +00:00
|
|
|
.else
|
2010-11-20 15:37:08 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-gl
|
|
|
|
PLIST_SUB+= GL="@comment "
|
2005-02-16 05:52:43 +00:00
|
|
|
.endif
|
|
|
|
|
2012-09-26 10:12:42 +00:00
|
|
|
.if ${PORT_OPTIONS:MXCB}
|
2012-01-15 12:48:11 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/xcb-renderutil.pc:${PORTSDIR}/x11/xcb-util-renderutil
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/xcb-renderutil.pc:${PORTSDIR}/x11/xcb-util-renderutil
|
2008-10-19 16:02:22 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-xcb
|
2010-11-20 15:37:08 +00:00
|
|
|
# this option exposes a bug --enable-xlib-xcb=auto
|
2008-10-19 16:02:22 +00:00
|
|
|
PLIST_SUB+= XCB=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-xcb
|
|
|
|
PLIST_SUB+= XCB="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-09-26 10:12:42 +00:00
|
|
|
.if ${PORT_OPTIONS:MGLIB}
|
2011-03-29 12:43:28 +00:00
|
|
|
USE_GNOME+= glib20
|
2011-03-30 09:26:16 +00:00
|
|
|
PLIST_SUB+= GLIB=""
|
2011-03-29 12:43:28 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-gobject=no
|
|
|
|
PLIST_SUB+= GLIB="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-11-10 04:21:03 +00:00
|
|
|
post-patch:
|
2012-05-26 03:54:11 +00:00
|
|
|
@${REINPLACE_CMD} -e '/test/s/==/=/g' \
|
|
|
|
-e '/LIBS/s/-lrt//' \
|
|
|
|
${WRKSRC}/configure
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 05:14:07 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-lcairo|-lcairo ${PTHREAD_LIBS}|' \
|
|
|
|
${WRKSRC}/src/*.pc.in
|
2010-11-20 15:37:08 +00:00
|
|
|
@${REINPLACE_CMD} -e '/@CAIRO_HAS_PNG_FUNCTIONS_TRUE@.*=/d' \
|
2006-10-14 08:35:50 +00:00
|
|
|
${WRKSRC}/Makefile.in
|
2012-09-26 10:12:42 +00:00
|
|
|
.if ${PORT_OPTIONS:MOPENGL}
|
2010-11-20 15:37:08 +00:00
|
|
|
@${REINPLACE_CMD} 's|@CAIRO_CFLAGS@|-I$$(top_srcdir)/src/glew &|' \
|
|
|
|
${WRKSRC}/src/Makefile.in
|
|
|
|
.endif
|
2004-11-10 04:21:03 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|
2006-05-10 19:43:18 +00:00
|
|
|
|
|
|
|
.endif
|