2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2009-03-18 12:27:49 +01:00
|
|
|
#
|
|
|
|
# dbus-python
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2021-10-09 22:55:04 +02:00
|
|
|
DBUS_PYTHON_VERSION = 1.2.18
|
2014-07-31 10:46:58 +02:00
|
|
|
DBUS_PYTHON_SITE = http://dbus.freedesktop.org/releases/dbus-python
|
2009-03-18 12:27:49 +01:00
|
|
|
DBUS_PYTHON_INSTALL_STAGING = YES
|
2019-10-27 15:28:59 +01:00
|
|
|
DBUS_PYTHON_LICENSE = MIT (dbus-python), AFL-2.1 or GPL-2.0+ (dbus-gmain)
|
|
|
|
DBUS_PYTHON_LICENSE_FILES = COPYING dbus-gmain/COPYING
|
|
|
|
DBUS_PYTHON_DEPENDENCIES = dbus libglib2
|
|
|
|
HOST_DBUS_PYTHON_DEPENDENCIES = host-dbus host-libglib2
|
2018-11-09 01:38:55 +01:00
|
|
|
|
2014-11-20 14:53:31 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
|
|
|
DBUS_PYTHON_DEPENDENCIES += python host-python
|
2009-03-18 12:27:49 +01:00
|
|
|
|
2014-11-20 14:53:31 +01:00
|
|
|
DBUS_PYTHON_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`" \
|
|
|
|
PYTHON_LIBS="`$(STAGING_DIR)/usr/bin/python2-config --ldflags`"
|
2018-11-09 01:38:55 +01:00
|
|
|
|
|
|
|
HOST_DBUS_PYTHON_DEPENDENCIES += host-python
|
|
|
|
|
|
|
|
HOST_DBUS_PYTHON_CONF_ENV += \
|
|
|
|
PYTHON=$(HOST_DIR)/bin/python2 \
|
|
|
|
PYTHON_INCLUDES="`$(HOST_DIR)/usr/bin/python2-config --includes`" \
|
|
|
|
PYTHON_LIBS="`$(HOST_DIR)/usr/bin/python2-config --ldflags`"
|
2014-11-20 14:53:31 +01:00
|
|
|
else
|
|
|
|
DBUS_PYTHON_DEPENDENCIES += python3 host-python3
|
|
|
|
|
|
|
|
DBUS_PYTHON_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`" \
|
2019-10-23 23:19:21 +02:00
|
|
|
PYTHON_LIBS="`$(STAGING_DIR)/usr/bin/python3-config --ldflags`" \
|
|
|
|
PYTHON_EXTRA_LIBS="`$(STAGING_DIR)/usr/bin/python3-config --libs --embed`"
|
2018-11-09 01:38:55 +01:00
|
|
|
|
|
|
|
HOST_DBUS_PYTHON_DEPENDENCIES += host-python3
|
|
|
|
|
|
|
|
HOST_DBUS_PYTHON_CONF_ENV += \
|
|
|
|
PYTHON=$(HOST_DIR)/bin/python3 \
|
|
|
|
PYTHON_INCLUDES="`$(HOST_DIR)/usr/bin/python3-config --includes`" \
|
2019-10-23 23:19:21 +02:00
|
|
|
PYTHON_LIBS="`$(HOST_DIR)/usr/bin/python3-config --ldflags`" \
|
|
|
|
PYTHON_EXTRA_LIBS="`$(HOST_DIR)/usr/bin/python3-config --libs --embed`"
|
2014-11-20 14:53:31 +01:00
|
|
|
endif
|
2009-03-18 12:27:49 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2018-11-09 01:38:55 +01:00
|
|
|
$(eval $(host-autotools-package))
|