2017-01-19 13:01:49 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libgpiod
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-03-25 15:29:43 +01:00
|
|
|
LIBGPIOD_VERSION = 1.3
|
2017-09-13 08:36:06 +02:00
|
|
|
LIBGPIOD_SOURCE = libgpiod-$(LIBGPIOD_VERSION).tar.xz
|
|
|
|
LIBGPIOD_SITE = https://www.kernel.org/pub/software/libs/libgpiod
|
2017-05-10 18:25:58 +02:00
|
|
|
LIBGPIOD_LICENSE = LGPL-2.1+
|
2017-01-19 13:01:49 +01:00
|
|
|
LIBGPIOD_LICENSE_FILES = COPYING
|
2017-07-29 04:44:43 +02:00
|
|
|
LIBGPIOD_INSTALL_STAGING = YES
|
2017-06-24 11:30:25 +02:00
|
|
|
LIBGPIOD_DEPENDENCIES = host-pkgconf
|
|
|
|
|
2017-01-19 13:01:49 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGPIOD_TOOLS),y)
|
|
|
|
LIBGPIOD_CONF_OPTS += --enable-tools
|
|
|
|
else
|
|
|
|
LIBGPIOD_CONF_OPTS += --disable-tools
|
|
|
|
endif
|
|
|
|
|
2018-06-06 16:28:24 +02:00
|
|
|
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
|
|
|
LIBGPIOD_CONF_OPTS += --enable-bindings-cxx
|
|
|
|
else
|
|
|
|
LIBGPIOD_CONF_OPTS += --disable-bindings-cxx
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
|
|
|
LIBGPIOD_CONF_OPTS += --enable-bindings-python
|
|
|
|
LIBGPIOD_DEPENDENCIES += python3
|
|
|
|
LIBGPIOD_CONF_ENV += \
|
|
|
|
PYTHON=$(HOST_DIR)/bin/python3 \
|
|
|
|
PYTHON_CPPFLAGS="`$(STAGING_DIR)/usr/bin/python3-config --includes`" \
|
|
|
|
PYTHON_LIBS="`$(STAGING_DIR)/usr/bin/python3-config --ldflags`"
|
|
|
|
else
|
|
|
|
LIBGPIOD_CONF_OPTS += --disable-bindings-python
|
|
|
|
endif
|
|
|
|
|
2017-01-19 13:01:49 +01:00
|
|
|
$(eval $(autotools-package))
|