2014-12-01 18:48:30 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# python-gobject
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
PYTHON_GOBJECT_VERSION_MAJOR = 2.28
|
|
|
|
PYTHON_GOBJECT_VERSION = $(PYTHON_GOBJECT_VERSION_MAJOR).6
|
|
|
|
PYTHON_GOBJECT_SOURCE = pygobject-$(PYTHON_GOBJECT_VERSION).tar.xz
|
|
|
|
PYTHON_GOBJECT_SITE = http://ftp.gnome.org/pub/gnome/sources/pygobject/$(PYTHON_GOBJECT_VERSION_MAJOR)
|
2017-03-30 15:43:34 +02:00
|
|
|
PYTHON_GOBJECT_LICENSE = LGPL-2.1+
|
2014-12-01 18:48:30 +01:00
|
|
|
PYTHON_GOBJECT_LICENSE_FILES = COPYING
|
|
|
|
PYTHON_GOBJECT_DEPENDENCIES = host-pkgconf libglib2
|
|
|
|
PYTHON_GOBJECT_CONF_OPTS = --disable-introspection
|
|
|
|
# for 0001-add-PYTHON_INCLUDES-override.patch
|
|
|
|
PYTHON_GOBJECT_AUTORECONF = YES
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
|
|
|
PYTHON_GOBJECT_DEPENDENCIES += python host-python
|
|
|
|
|
|
|
|
PYTHON_GOBJECT_CONF_ENV = \
|
2017-07-05 13:14:19 +02:00
|
|
|
PYTHON=$(HOST_DIR)/bin/python2 \
|
2015-07-12 16:35:26 +02:00
|
|
|
PYTHON_INCLUDES="`$(STAGING_DIR)/usr/bin/python2-config --includes`"
|
2014-12-01 18:48:30 +01:00
|
|
|
else
|
|
|
|
PYTHON_GOBJECT_DEPENDENCIES += python3 host-python3
|
|
|
|
|
|
|
|
PYTHON_GOBJECT_CONF_ENV = \
|
2017-07-05 13:14:19 +02:00
|
|
|
PYTHON=$(HOST_DIR)/bin/python3 \
|
2015-07-12 16:35:26 +02:00
|
|
|
PYTHON_INCLUDES="`$(STAGING_DIR)/usr/bin/python3-config --includes`"
|
2014-12-01 18:48:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFFI),y)
|
|
|
|
PYTHON_GOBJECT_CONF_OPTS += --with-ffi
|
|
|
|
PYTHON_GOBJECT_DEPENDENCIES += libffi
|
|
|
|
else
|
|
|
|
PYTHON_GOBJECT_CONF_OPTS += --without-ffi
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|