2013-08-28 13:50:04 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# ola
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-09-22 01:31:41 +02:00
|
|
|
OLA_VERSION = 0.10.2
|
|
|
|
OLA_SITE = https://github.com/OpenLightingProject/ola/releases/download/$(OLA_VERSION)
|
2013-08-28 13:50:04 +02:00
|
|
|
OLA_LICENSE = LGPLv2.1+ (libola, libolacommon, Python bindings), GPLv2+ (libolaserver, olad, Python examples and tests)
|
|
|
|
OLA_LICENSE_FILES = LICENCE GPL LGPL
|
|
|
|
OLA_INSTALL_STAGING = YES
|
2014-01-09 20:15:01 +01:00
|
|
|
OLA_AUTORECONF = YES
|
|
|
|
|
2013-08-28 13:50:04 +02:00
|
|
|
# util-linux provides uuid lib
|
2014-12-08 01:39:39 +01:00
|
|
|
OLA_DEPENDENCIES = protobuf util-linux host-bison host-flex host-ola
|
2013-08-28 13:50:04 +02:00
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS = \
|
2014-01-14 22:36:05 +01:00
|
|
|
ac_cv_have_pymod_google_protobuf=yes \
|
2013-08-28 13:50:04 +02:00
|
|
|
--disable-gcov \
|
|
|
|
--disable-tcmalloc \
|
|
|
|
--disable-unittests \
|
|
|
|
--disable-root-check \
|
2013-11-21 23:18:25 +01:00
|
|
|
--disable-java-libs \
|
2014-12-08 01:39:39 +01:00
|
|
|
--disable-fatal-warnings \
|
2015-01-30 04:35:08 +01:00
|
|
|
--with-ola-protoc-plugin=$(HOST_DIR)/usr/bin/ola_protoc_plugin
|
2014-12-08 01:39:39 +01:00
|
|
|
|
|
|
|
HOST_OLA_DEPENDENCIES = host-util-linux host-protobuf
|
|
|
|
|
|
|
|
# When building the host part, disable as much as possible to speed up
|
|
|
|
# the configure step and avoid missing host dependencies.
|
|
|
|
HOST_OLA_CONF_OPTS = \
|
|
|
|
--disable-all-plugins \
|
|
|
|
--disable-slp \
|
|
|
|
--disable-osc \
|
|
|
|
--disable-uart \
|
|
|
|
--disable-libusb \
|
|
|
|
--disable-libftdi \
|
|
|
|
--disable-http \
|
|
|
|
--disable-examples \
|
|
|
|
--disable-unittests \
|
|
|
|
--disable-doxygen-html \
|
2016-09-22 01:31:42 +02:00
|
|
|
--disable-doxygen-doc \
|
|
|
|
--disable-fatal-warnings
|
2014-12-08 01:39:39 +01:00
|
|
|
|
2015-01-30 04:35:08 +01:00
|
|
|
# On the host side, we only need ola_protoc_plugin, so build and install this
|
|
|
|
# only.
|
|
|
|
HOST_OLA_MAKE_OPTS = protoc/ola_protoc_plugin
|
2014-12-08 01:39:39 +01:00
|
|
|
define HOST_OLA_INSTALL_CMDS
|
2015-01-30 04:35:08 +01:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/protoc/ola_protoc_plugin $(HOST_DIR)/usr/bin/ola_protoc_plugin
|
2014-12-08 01:39:39 +01:00
|
|
|
endef
|
2013-08-28 13:50:04 +02:00
|
|
|
|
|
|
|
# sets where to find python libs built for target and required by ola
|
|
|
|
OLA_CONF_ENV = PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages
|
|
|
|
OLA_MAKE_ENV = PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages
|
|
|
|
|
|
|
|
## OLA Bindings and Interface selections
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_WEB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-http
|
2013-08-28 13:50:04 +02:00
|
|
|
OLA_DEPENDENCIES += libmicrohttpd
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-http
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_SLP),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-slp
|
2013-08-28 13:50:04 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-slp
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_PYTHON_BINDINGS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-python-libs
|
2013-08-28 13:50:04 +02:00
|
|
|
OLA_DEPENDENCIES += python python-protobuf
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-python-libs
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
## OLA Examples and Tests
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_EXAMPLES),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-examples
|
2013-08-28 13:50:04 +02:00
|
|
|
OLA_DEPENDENCIES += ncurses
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-examples
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_RDM_TESTS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-rdm-tests
|
2016-11-24 22:18:18 +01:00
|
|
|
OLA_DEPENDENCIES += python-numpy
|
|
|
|
# needed as numpy builds some shared libraries and ola checks for
|
|
|
|
# numpy using a host python test program which fails with 'wrong ELF
|
|
|
|
# class'.
|
|
|
|
OLA_CONF_ENV = ac_cv_have_pymod_numpy=yes
|
2013-08-28 13:50:04 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-rdm-tests
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
## OLA Plugin selections
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_E131),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-e131
|
2013-08-28 13:50:04 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-e131
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_ARTNET),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-artnet
|
2013-08-28 13:50:04 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-artnet
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_OPENDMX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-opendmx
|
2013-08-28 13:50:04 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-opendmx
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_DUMMY),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-dummy
|
2013-08-28 13:50:04 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-dummy
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_ESPNET),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-espnet
|
2013-08-28 13:50:04 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-espnet
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_KINET),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-kinet
|
2013-08-28 13:50:04 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-kinet
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_OSC),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-osc
|
2013-08-28 13:50:04 +02:00
|
|
|
OLA_DEPENDENCIES += liblo
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-osc
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_MILINT),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-milinst
|
2013-08-28 13:50:04 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-milinst
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_PATHPORT),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-pathport
|
2013-08-28 13:50:04 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-pathport
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_SANDNET),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-sandnet
|
2013-08-28 13:50:04 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-sandnet
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_SHOWNET),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-shownet
|
2013-08-28 13:50:04 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-shownet
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_STAGEPROFI),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-stageprofi --enable-libusb
|
2013-08-28 13:50:04 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-stageprofi
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_USBPRO),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --enable-usbpro --enable-libusb
|
2013-08-28 13:50:04 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OLA_CONF_OPTS += --disable-usbpro
|
2013-08-28 13:50:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|
2014-12-08 01:39:39 +01:00
|
|
|
$(eval $(host-autotools-package))
|