-
Notifications
You must be signed in to change notification settings - Fork 106
/
Makefile
38 lines (29 loc) · 916 Bytes
/
Makefile
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
# $NetBSD: Makefile,v 1.37 2012/10/06 14:11:16 asau Exp $
#
DISTNAME= py2cairo-1.8.10
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py2//}
PKGREVISION= 5
CATEGORIES= graphics
MASTER_SITES= http://cairographics.org/releases/
MAINTAINER= leuzi@trash.net
HOMEPAGE= http://cairographics.org/pycairo/
COMMENT= Python bindings for cairo
LICENSE= gnu-lgpl-v2.1 OR mpl-1.1
WRKSRC= ${WRKDIR}/${DISTNAME:S/py2/py/}
USE_PKGLOCALEDIR= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
PKGCONFIG_OVERRIDE+= pycairo.pc.in
PY_PATCHPLIST= yes
PYTHON_SELF_CONFLICT= yes
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-2*) || \
${OPSYS} == "SunOS"
BUILDLINK_TRANSFORM+= rm:-std=c99
.endif
.include "../../lang/python/extension.mk"
BUILDLINK_API_DEPENDS.cairo+= cairo>=1.8.10
.include "../../graphics/cairo/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"