mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
@@ -4,36 +4,29 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_GOBJECT_VERSION_MAJOR = 2.28
|
||||
PYTHON_GOBJECT_VERSION = $(PYTHON_GOBJECT_VERSION_MAJOR).6
|
||||
PYTHON_GOBJECT_VERSION_MAJOR = 3.36
|
||||
PYTHON_GOBJECT_VERSION = $(PYTHON_GOBJECT_VERSION_MAJOR).1
|
||||
PYTHON_GOBJECT_SOURCE = pygobject-$(PYTHON_GOBJECT_VERSION).tar.xz
|
||||
PYTHON_GOBJECT_SITE = http://ftp.gnome.org/pub/gnome/sources/pygobject/$(PYTHON_GOBJECT_VERSION_MAJOR)
|
||||
PYTHON_GOBJECT_SITE = https://ftp.gnome.org/pub/gnome/sources/pygobject/$(PYTHON_GOBJECT_VERSION_MAJOR)
|
||||
PYTHON_GOBJECT_LICENSE = LGPL-2.1+
|
||||
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
|
||||
PYTHON_GOBJECT_INSTALL_STAGING = YES
|
||||
PYTHON_GOBJECT_DEPENDENCIES = \
|
||||
gobject-introspection \
|
||||
host-pkgconf \
|
||||
libglib2 \
|
||||
python3
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
||||
PYTHON_GOBJECT_DEPENDENCIES += python host-python
|
||||
PYTHON_GOBJECT_CONF_OPTS += \
|
||||
-Dpycairo=false \
|
||||
-Dtests=false
|
||||
|
||||
PYTHON_GOBJECT_CONF_ENV = \
|
||||
PYTHON=$(HOST_DIR)/bin/python2 \
|
||||
PYTHON_INCLUDES="`$(STAGING_DIR)/usr/bin/python2-config --includes`"
|
||||
else
|
||||
PYTHON_GOBJECT_DEPENDENCIES += python3 host-python3
|
||||
# A sysconfigdata_name must be manually specified or the resulting .so
|
||||
# will have a x86_64 prefix, which causes "import gi" to fail.
|
||||
# A pythonpath must be specified or the host python path will be used resulting
|
||||
# in a "not a valid python" error.
|
||||
PYTHON_GOBJECT_CONF_ENV += \
|
||||
_PYTHON_SYSCONFIGDATA_NAME=$(PKG_PYTHON_SYSCONFIGDATA_NAME) \
|
||||
PYTHONPATH=$(PYTHON3_PATH)
|
||||
|
||||
PYTHON_GOBJECT_CONF_ENV = \
|
||||
PYTHON=$(HOST_DIR)/bin/python3 \
|
||||
PYTHON_INCLUDES="`$(STAGING_DIR)/usr/bin/python3-config --includes`"
|
||||
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))
|
||||
$(eval $(meson-package))
|
||||
|
||||
Reference in New Issue
Block a user