2004-11-08 16:43:03 +00:00
|
|
|
# New ports collection makefile for: cairo
|
|
|
|
# Date created: 2004-10-06
|
|
|
|
# Whom: Michael Johnson <ahze@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $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
|
2011-02-28 11:38:15 +00:00
|
|
|
PORTVERSION= 1.10.2
|
2011-03-30 09:26:16 +00:00
|
|
|
PORTREVISION= 2
|
2008-03-30 02:27:00 +00:00
|
|
|
PORTEPOCH?= 1
|
2004-11-08 16:43:03 +00:00
|
|
|
CATEGORIES= graphics
|
2008-03-30 02:27:00 +00:00
|
|
|
MASTER_SITES= http://cairographics.org/releases/
|
|
|
|
#MASTER_SITES= http://cairographics.org/snapshots/
|
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)
|
|
|
|
|
2005-11-05 04:53:48 +00:00
|
|
|
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
|
2010-03-28 06:47:48 +00:00
|
|
|
png.6:${PORTSDIR}/graphics/png \
|
2008-03-24 03:52:36 +00:00
|
|
|
fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \
|
|
|
|
pixman-1.9:${PORTSDIR}/x11/pixman
|
2004-11-08 16:43:03 +00:00
|
|
|
|
2005-11-05 04:53:48 +00:00
|
|
|
CONFIGURE_ARGS= --with-html-dir=${DOCSDIR} \
|
2010-06-03 12:35:42 +00:00
|
|
|
--disable-directfb \
|
2011-03-02 13:53:46 +00:00
|
|
|
--enable-tee \
|
2010-11-20 15:37:08 +00:00
|
|
|
--enable-gobject
|
2011-03-29 12:43:28 +00:00
|
|
|
USE_GNOME= gnomehack ltverhack referencehack
|
2010-12-04 07:34:27 +00:00
|
|
|
USE_AUTOTOOLS= libtool
|
2006-10-14 08:35:50 +00:00
|
|
|
USE_LDCONFIG= yes
|
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
|
|
|
|
2007-10-24 23:37:25 +00:00
|
|
|
.if defined(WITHOUT_X11)
|
|
|
|
CONFIGURE_ARGS+=--disable-xlib
|
|
|
|
PLIST_SUB+= X11="@comment "
|
|
|
|
.else
|
|
|
|
USE_XORG+= xrender
|
|
|
|
PLIST_SUB+= X11=""
|
|
|
|
.endif
|
|
|
|
|
2010-11-20 15:37:08 +00:00
|
|
|
OPTIONS+= GL "Enable OpenGL Support" Off \
|
2011-03-29 12:43:28 +00:00
|
|
|
XCB "Enable XCB (X C-language Binding) Support" On \
|
|
|
|
GLIB "Enable GObject Functions Feature" On
|
2005-02-16 05:52:43 +00:00
|
|
|
|
2005-02-17 00:59:40 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2010-11-20 15:37:08 +00:00
|
|
|
.if defined(WITH_GL)
|
|
|
|
USE_GL= gl
|
|
|
|
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
|
|
|
|
|
2010-11-20 15:37:08 +00:00
|
|
|
.if defined(WITH_XCB)
|
2008-10-19 16:02:22 +00:00
|
|
|
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
|
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
|
|
|
|
|
2011-03-29 12:43:28 +00:00
|
|
|
.if defined(WITH_GLIB)
|
|
|
|
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:
|
2010-11-20 15:37:08 +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
|
2010-11-20 15:37:08 +00:00
|
|
|
.if defined(WITH_GL)
|
|
|
|
@${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
|