blob: fd41cc9293a9ed519259fa578b0907dec18f8dc3 (
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$
#
PORTNAME= cairo
PORTVERSION= 0.5.0
CATEGORIES= graphics python
MASTER_SITES= http://cairographics.org/snapshots/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py${PORTNAME}-${PORTVERSION}
MAINTAINER= ahze@FreeBSD.org
COMMENT= Python bindings for Cairo
BUILD_DEPENDS= ${PYNUMERIC}
LIB_DEPENDS= cairo.1:${PORTSDIR}/graphics/cairo
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_PYTHON= yes
USE_REINPLACE= yes
WANT_GNOME= yes
USE_LIBTOOL_VER=15
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_PYGTK)
USE_GNOME= pygtk2
PLIST_SUB+= GTK=""
.else
PLIST_SUB+= GTK="@comment "
.endif
.if !defined(WITHOUT_SVG)
LIB_DEPENDS+= svg-cairo.1:${PORTSDIR}/graphics/libsvg-cairo
PLIST_SUB+= SVG=""
.else
PLIST_SUB+= SVG="@comment "
.endif
pre-everything::
@${ECHO_MSG} "Disable SVG support by defining WITHOUT_SVG"
@${ECHO_MSG} "Disable PyGtk support by defining WITHOUT_PYGTK"
@${ECHO_MSG}
post-patch:
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
${WRKSRC}/Makefile.in
.include <bsd.port.post.mk>
|