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
|
|
|
|
2018-11-28 19:17:47 +01:00
|
|
|
DBUS_PYTHON_VERSION = 1.2.8
|
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
|
2014-06-26 21:20:32 +02:00
|
|
|
DBUS_PYTHON_LICENSE = MIT
|
|
|
|
DBUS_PYTHON_LICENSE_FILES = COPYING
|
2014-11-20 14:53:31 +01:00
|
|
|
DBUS_PYTHON_DEPENDENCIES = dbus-glib
|
|
|
|
DBUS_PYTHON_CONF_OPTS = --disable-html-docs --disable-api-docs
|
|
|
|
|
2018-11-09 01:38:55 +01:00
|
|
|
HOST_DBUS_PYTHON_DEPENDENCIES = host-dbus-glib
|
|
|
|
HOST_DBUS_PYTHON_CONF_OPTS = --disable-html-docs --disable-api-docs
|
|
|
|
|
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`" \
|
|
|
|
PYTHON_LIBS="`$(STAGING_DIR)/usr/bin/python3-config --ldflags`"
|
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`" \
|
|
|
|
PYTHON_LIBS="`$(HOST_DIR)/usr/bin/python3-config --ldflags`"
|
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))
|