2015-01-29 12:35:38 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libsigrok
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-06-26 15:21:42 +02:00
|
|
|
LIBSIGROK_VERSION = 0.5.0
|
2016-01-31 14:58:54 +01:00
|
|
|
LIBSIGROK_SITE = http://sigrok.org/download/source/libsigrok
|
2017-03-30 15:43:33 +02:00
|
|
|
LIBSIGROK_LICENSE = GPL-3.0+
|
2015-01-29 12:35:38 +01:00
|
|
|
LIBSIGROK_LICENSE_FILES = COPYING
|
|
|
|
LIBSIGROK_INSTALL_STAGING = YES
|
|
|
|
LIBSIGROK_DEPENDENCIES = libglib2 libzip host-pkgconf
|
2015-02-23 12:32:48 +01:00
|
|
|
LIBSIGROK_CONF_OPTS = --disable-glibtest --disable-java --disable-python
|
2015-01-29 12:35:38 +01:00
|
|
|
|
2015-02-20 13:28:58 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSERIALPORT),y)
|
|
|
|
LIBSIGROK_CONF_OPTS += --enable-libserialport
|
|
|
|
LIBSIGROK_DEPENDENCIES += libserialport
|
|
|
|
else
|
|
|
|
LIBSIGROK_CONF_OPTS += --disable-libserialport
|
|
|
|
endif
|
|
|
|
|
2015-01-29 12:35:38 +01:00
|
|
|
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
|
|
|
|
|
2015-02-23 12:32:48 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSIGROKCXX),y)
|
|
|
|
LIBSIGROK_CONF_OPTS += --enable-cxx
|
host-autoconf-archive: install to a non-standard location
The host-autoconf-archive package was added to provide the necessary
autoconf macros for the libsigrok package, and later also used for the
thrift package.
However, it installs its autoconf macro in
$(HOST_DIR)/usr/share/aclocal, which is part of the include directory
of autoconf macros used for all autoreconf invocations. Unfortunately,
using those macros for all packages is causing a number of
regressions: one on host-ola fixed in commit
884af65fd5ddc548f19a26162f905a32ef0b53b3, and one in snmpp. Those
packages are autoreconf'ed, but if they are autoreconf'ed with the
autoconf-archive macros installed, they no longer work.
To solve this problem, this commit implements a simple solution that
makes using host-autoconf-archive macros an opt-in mechanism. To
achieve this, the autoconf-archive package is modified to install its
macros in a special directory, and only the packages that really want
to use those macros will have to pass a -I flag pointing to this
directory in their <pkg>_AUTORECONF_OPTS variable.
Fixes:
http://autobuild.buildroot.org/results/712/712c8083b9eeafa41b60790961028c40b28f59ad/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Tested-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-05-14 22:57:15 +02:00
|
|
|
LIBSIGROK_AUTORECONF_OPTS += -I $(HOST_DIR)/usr/share/autoconf-archive
|
2015-04-10 11:49:58 +02:00
|
|
|
LIBSIGROK_DEPENDENCIES += \
|
|
|
|
host-autoconf-archive \
|
|
|
|
glibmm \
|
|
|
|
host-doxygen \
|
|
|
|
$(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python)
|
2015-02-23 12:32:48 +01:00
|
|
|
else
|
|
|
|
LIBSIGROK_CONF_OPTS += --disable-cxx
|
|
|
|
endif
|
|
|
|
|
2015-01-29 12:35:38 +01:00
|
|
|
$(eval $(autotools-package))
|