blob: 74dc2c92312a382b9aefe31ceb1ba9dde86a1fb4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# 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.14 2005/09/02 03:44:43 marcus Exp $
#
PORTNAME= cairo
PORTVERSION= 1.0.2
CATEGORIES= graphics python
MASTER_SITES= http://cairographics.org/releases/
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_REINPLACE= yes
USE_GMAKE= yes
USE_GNOME= gnometarget gnomehack
USE_AUTOTOOLS= libtool:15
CONFIGURE_ARGS= --without-pygtk
.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>
|