cd3c6e26c5
[Thomas: - Use BR2_INSTALL_LIBSTDCPP instead of BR2_TOOLCHAIN_BUILDROOT_CXX, so that the condition also works with external toolchains. - Use a 'if BR2_PACKAGE_LIBSIGROK' instead of duplicating the dependency.] Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# libsigrok
|
|
#
|
|
################################################################################
|
|
|
|
LIBSIGROK_VERSION = 380ee96fdfe0895ca0aa0b158d5c332ef08f8b3c
|
|
# No https access on upstream git
|
|
LIBSIGROK_SITE = git://sigrok.org/libsigrok
|
|
LIBSIGROK_LICENSE = GPLv3+
|
|
LIBSIGROK_LICENSE_FILES = COPYING
|
|
# Git checkout has no configure script
|
|
LIBSIGROK_AUTORECONF = YES
|
|
LIBSIGROK_INSTALL_STAGING = YES
|
|
LIBSIGROK_DEPENDENCIES = libglib2 libzip host-pkgconf
|
|
LIBSIGROK_CONF_OPTS = --disable-glibtest --disable-java --disable-python
|
|
|
|
define LIBSIGROK_ADD_MISSING
|
|
mkdir -p $(@D)/autostuff
|
|
endef
|
|
|
|
LIBSIGROK_PRE_CONFIGURE_HOOKS += LIBSIGROK_ADD_MISSING
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSERIALPORT),y)
|
|
LIBSIGROK_CONF_OPTS += --enable-libserialport
|
|
LIBSIGROK_DEPENDENCIES += libserialport
|
|
else
|
|
LIBSIGROK_CONF_OPTS += --disable-libserialport
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFTDI),y)
|
|
LIBSIGROK_CONF_OPTS += --enable-libftdi
|
|
LIBSIGROK_DEPENDENCIES += libftdi
|
|
else
|
|
LIBSIGROK_CONF_OPTS += --disable-libftdi
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
|
LIBSIGROK_CONF_OPTS += --enable-libusb
|
|
LIBSIGROK_DEPENDENCIES += libusb
|
|
else
|
|
LIBSIGROK_CONF_OPTS += --disable-libusb
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GLIBMM),y)
|
|
LIBSIGROK_DEPENDENCIES += glibmm
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSIGROKCXX),y)
|
|
LIBSIGROK_CONF_OPTS += --enable-cxx
|
|
LIBSIGROK_DEPENDENCIES += host-autoconf-archive glibmm
|
|
else
|
|
LIBSIGROK_CONF_OPTS += --disable-cxx
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|