diff options
Diffstat (limited to 'graphics/py-cairo/Makefile')
-rw-r--r-- | graphics/py-cairo/Makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/graphics/py-cairo/Makefile b/graphics/py-cairo/Makefile new file mode 100644 index 000000000..607ed06f7 --- /dev/null +++ b/graphics/py-cairo/Makefile @@ -0,0 +1,53 @@ +# New ports collection makefile for: py-cairo +# Date created: 2004-12-05 +# Whom: Michael Johnson <ahze@FreeBSD.org> +# +# $FreeBSD$ +# $MCom: ports/graphics/py-cairo/Makefile,v 1.15 2005/10/12 16:31:53 ahze Exp $ +# + +PORTNAME= cairo +PORTVERSION= 1.1.6 +CATEGORIES= graphics python +MASTER_SITES= http://cairographics.org/snapshots/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= py${PORTNAME}-${PORTVERSION} + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Python bindings for Cairo + +BUILD_DEPENDS= ${PYNUMERIC} +LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo +RUN_DEPENDS= ${PYNUMERIC} + +USE_PYTHON= yes +USE_GMAKE= yes +USE_GNOME= gnometarget gnomehack +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --without-pygtk +CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \ + LDFLAGS="-L${X11BASE}/lib" + +.include <bsd.port.pre.mk> + +.if defined(WITHOUT_SVG) && !exists(${LOCALBASE}/lib/libsvg-cairo.a) +PLIST_SUB+= SVG="@comment " +.else +PLIST_SUB+= SVG="" +LIB_DEPENDS+= svg-cairo.1:${PORTSDIR}/graphics/libsvg-cairo +.endif + +pre-everything:: + @${ECHO_MSG} "Disable SVG support by defining WITHOUT_SVG" + @${ECHO_MSG} + +post-patch: + @${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|; \ + s|SUBDIRS = cairo examples test|SUBDIRS = cairo examples|' \ + ${WRKSRC}/Makefile.in +.if ${OSVERSION} < 500000 + @${REINPLACE_CMD} -e 's|-std=c99||' \ + ${WRKSRC}/configure +.endif + +.include <bsd.port.post.mk> |