2004-11-08 17:43:03 +01:00
|
|
|
# New ports collection makefile for: cairo
|
|
|
|
# Date created: 2004-10-06
|
|
|
|
# Whom: Michael Johnson <ahze@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2005-11-05 05:53:48 +01:00
|
|
|
# $MCom: ports/graphics/cairo/Makefile,v 1.30 2005/10/04 04:35:57 ahze Exp $
|
2004-11-08 17:43:03 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cairo
|
2006-03-15 22:37:02 +01:00
|
|
|
PORTVERSION= 1.0.4
|
2004-11-08 17:43:03 +01:00
|
|
|
CATEGORIES= graphics
|
2006-03-15 22:37:02 +01:00
|
|
|
MASTER_SITES= http://cairographics.org/releases/ \
|
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= ahze
|
2004-11-08 17:43:03 +01:00
|
|
|
|
2005-03-03 10:03:33 +01:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2005-02-24 12:15:30 +01:00
|
|
|
COMMENT= Vector graphics library with cross-device output support
|
2004-11-08 17:43:03 +01:00
|
|
|
|
2006-05-10 21:43:18 +02:00
|
|
|
.if !defined(REFERENCE_PORT)
|
|
|
|
|
|
|
|
PORTREVISION= 1
|
|
|
|
|
2005-11-05 05:53:48 +01:00
|
|
|
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
|
2005-03-09 14:43:32 +01:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
|
2004-11-08 17:43:03 +01:00
|
|
|
|
2005-11-05 05:53:48 +01:00
|
|
|
CONFIGURE_ARGS= --with-html-dir=${DOCSDIR} \
|
|
|
|
--enable-pdf \
|
|
|
|
--enable-ps
|
2006-05-10 21:43:18 +02:00
|
|
|
USE_GNOME= gnometarget gnomehack ltverhack referencehack
|
2006-03-15 22:37:02 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2004-11-08 17:43:03 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2005-03-10 19:31:38 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I${X11BASE}/include" \
|
2005-03-08 10:34:18 +01:00
|
|
|
LDFLAGS="${PTHREAD_LIBS}"
|
2004-11-08 17:43:03 +01:00
|
|
|
|
2005-02-16 06:52:43 +01:00
|
|
|
OPTIONS+= GLITZ "Enable Glitz OpenGL Support" Off
|
|
|
|
|
2005-02-17 01:59:40 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-11-05 05:53:48 +01:00
|
|
|
.if defined(WITH_GLITZ)
|
2005-02-16 06:52:43 +01:00
|
|
|
LIB_DEPENDS+= glitz-glx.1:${PORTSDIR}/graphics/glitz
|
2005-11-05 05:53:48 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-glitz
|
2005-03-09 05:13:40 +01:00
|
|
|
PLIST_SUB+= GLITZ=""
|
|
|
|
.else
|
2005-11-05 05:53:48 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-glitz
|
2005-03-09 05:13:40 +01:00
|
|
|
PLIST_SUB+= GLITZ="@comment "
|
2005-02-16 06:52:43 +01:00
|
|
|
.endif
|
|
|
|
|
2005-03-09 14:43:32 +01:00
|
|
|
.if defined(WITHOUT_X11)
|
|
|
|
CONFIGURE_ARGS+=--disable-xlib
|
|
|
|
PLIST_SUB+= X11="@comment "
|
|
|
|
.else
|
2005-02-16 06:52:43 +01:00
|
|
|
USE_XLIB= yes
|
2005-03-09 14:43:32 +01:00
|
|
|
PLIST_SUB+= X11=""
|
2005-02-16 06:52:43 +01:00
|
|
|
.endif
|
2004-11-08 17:43:03 +01:00
|
|
|
|
2004-11-10 05:21:03 +01:00
|
|
|
post-patch:
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
@${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' \
|
2005-11-05 05:53:48 +01:00
|
|
|
${WRKSRC}/src/*.* \
|
|
|
|
${WRKSRC}/pixman/src/*.*
|
2004-11-10 05:21:03 +01:00
|
|
|
.endif
|
2005-11-05 05:53:48 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \
|
|
|
|
${WRKSRC}/test/Makefile.in
|
2004-11-10 05:21:03 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|
2006-05-10 21:43:18 +02:00
|
|
|
|
|
|
|
.endif
|