1 ################################################################################
5 ################################################################################
7 PYTHON_GOBJECT_VERSION_MAJOR
= 2.28
8 PYTHON_GOBJECT_VERSION
= $(PYTHON_GOBJECT_VERSION_MAJOR
).6
9 PYTHON_GOBJECT_SOURCE
= pygobject-
$(PYTHON_GOBJECT_VERSION
).
tar.xz
10 PYTHON_GOBJECT_SITE
= http
://ftp.gnome.org
/pub
/gnome
/sources
/pygobject
/$(PYTHON_GOBJECT_VERSION_MAJOR
)
11 PYTHON_GOBJECT_LICENSE
= LGPLv2.1
+
12 PYTHON_GOBJECT_LICENSE_FILES
= COPYING
13 PYTHON_GOBJECT_DEPENDENCIES
= host-pkgconf libglib2
14 PYTHON_GOBJECT_CONF_OPTS
= --disable-introspection
15 # for 0001-add-PYTHON_INCLUDES-override.patch
16 PYTHON_GOBJECT_AUTORECONF
= YES
18 ifeq ($(BR2_PACKAGE_PYTHON
),y
)
19 PYTHON_GOBJECT_DEPENDENCIES
+= python host-python
21 PYTHON_GOBJECT_CONF_ENV
= \
22 PYTHON
=$(HOST_DIR
)/usr
/bin
/python2 \
23 PYTHON_INCLUDES
="`$(STAGING_DIR)/usr/bin/python2-config --includes`"
25 PYTHON_GOBJECT_DEPENDENCIES
+= python3 host-python3
27 PYTHON_GOBJECT_CONF_ENV
= \
28 PYTHON
=$(HOST_DIR
)/usr
/bin
/python3 \
29 PYTHON_INCLUDES
="`$(STAGING_DIR)/usr/bin/python3-config --includes`"
32 ifeq ($(BR2_PACKAGE_LIBFFI
),y
)
33 PYTHON_GOBJECT_CONF_OPTS
+= --with-ffi
34 PYTHON_GOBJECT_DEPENDENCIES
+= libffi
36 PYTHON_GOBJECT_CONF_OPTS
+= --without-ffi
39 $(eval
$(autotools-package
))