blob: 4ed0994c10c970763817e18eacc3e521a0e07ef2 (
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
53
54
|
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
# $MCom$
PORTNAME= gobject
PORTVERSION= 2.28.6
PORTREVISION= 3
CATEGORIES= devel python
MASTER_SITES= GNOME
MASTER_SITE_SUBDIR= sources/pygobject/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pygobject-${PORTVERSION}
DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= Python bindings for GObject
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection \
${LOCALBASE}/libdata/pkgconfig/pycairo.pc:${PORTSDIR}/graphics/py-cairo
RUN_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection \
${LOCALBASE}/libdata/pkgconfig/pycairo.pc:${PORTSDIR}/graphics/py-cairo
USE_XZ= yes
USE_GMAKE= yes
USE_GNOME= gnomehack glib20
USE_PYTHON= 2.5+
USE_PKGCONFIG= build
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --disable-docs --disable-introspection
CONFLICTS= py*-gtk-0*
PLIST_SUB= PYTHON_VER="${PYTHON_VER}"
OPTIONS_DEFINE= LIBFFI
LIBFFI_DESC= Enable libffi support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLIBFFI}
LIB_DEPENDS+= ffi:${PORTSDIR}/devel/libffi
CONFIGURE_ARGS+=--with-ffi
.else
CONFIGURE_ARGS+=--without-ffi
.endif
post-install:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
${PREFIX}/share/pygobject/2.0/codegen
.include <bsd.port.mk>
|