2017-01-19 13:01:49 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libgpiod
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-05-10 18:25:58 +02:00
|
|
|
LIBGPIOD_VERSION = v0.2
|
2017-01-19 13:01:49 +01:00
|
|
|
LIBGPIOD_SITE = $(call github,brgl,libgpiod,$(LIBGPIOD_VERSION))
|
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-05-10 18:25:58 +02:00
|
|
|
|
|
|
|
# Needed for autoreconf to work properly
|
|
|
|
define LIBGPIOD_FIXUP_M4_DIR
|
|
|
|
mkdir $(@D)/m4
|
|
|
|
endef
|
|
|
|
LIBGPIOD_POST_EXTRACT_HOOKS += LIBGPIOD_FIXUP_M4_DIR
|
|
|
|
|
2017-01-19 13:01:49 +01:00
|
|
|
# fetched from github, no configure script provided
|
|
|
|
LIBGPIOD_AUTORECONF = YES
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGPIOD_TOOLS),y)
|
|
|
|
LIBGPIOD_CONF_OPTS += --enable-tools
|
|
|
|
else
|
|
|
|
LIBGPIOD_CONF_OPTS += --disable-tools
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|