[Buildroot] Patch to add package Open Lighting Architecture

Thomas De Schampheleire patrickdepinguin+buildroot at gmail.com
Mon Aug 5 13:46:40 UTC 2013


Hi David,

On Mon, Aug 5, 2013 at 3:02 PM, David Skok <blanco.ether at gmail.com> wrote:
> From 88115b80563b93ff253fcde9c7b39bdc13d73ad5 Mon Sep 17 00:00:00 2001
> From: Dave Skok <blanco.ether at gmail.com>
> Date: Mon, 5 Aug 2013 08:47:41 -0400
> Subject: [PATCH 1/1] new package ola added.
>
>
> Signed-off-by: Dave Skok <blanco.ether at gmail.com>
> ---
>  package/Config.in     |    1 +
>  package/ola/Config.in |  145 +++++++++++++++++++++++++++++++++++++++++++
>  package/ola/ola.mk    |  162 +++++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 308 insertions(+)
>  create mode 100644 package/ola/Config.in
>  create mode 100644 package/ola/ola.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 7069d77..a042f8c 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -702,6 +702,7 @@ source "package/shared-mime-info/Config.in"
>  source "package/snowball-init/Config.in"
>  source "package/sound-theme-borealis/Config.in"
>  source "package/sound-theme-freedesktop/Config.in"
> +source "package/ola/Config.in"
>  endmenu



>
>  menu "Networking applications"
> diff --git a/package/ola/Config.in b/package/ola/Config.in
> new file mode 100644
> index 0000000..eeb9839
> --- /dev/null
> +++ b/package/ola/Config.in
> @@ -0,0 +1,145 @@
> +config BR2_PACKAGE_OLA
> +       bool "open lighting architecture"
> +        select BR2_PACKAGE_PROTOBUF
> +       select BR2_PACKAGE_UTIL_LINUX_LIBUUID
> +       help
> +         Open Lighting Architecture provides applications
> +          with a mechanism to send and receive DMX512 & RDM
> +          commands using hardware devices and DMX over IP protocols.
> +
> +         http://www.opendmx.net/index.php/OLA
> +
> +comment "OLA requires a toolchain with C++ support enabled"
> +       depends on !BR2_INSTALL_LIBSTDCPP
> +
> +comment "OLA functionality desired may require a USB driver"
> +       depends on !BR2_PACKAGE_LIBFTDI && !BR2_PACKAGE_LIBUSB
> +
> +if BR2_PACKAGE_OLA
> +
> +config BR2_PACKAGE_OLA_GIT_TAG
> +       string "git version tag"
> +       default "0.8.30"
> +       help
> +         Git tag of version to checkout and build.
> +
> +menu "OLA Bindings and Interface"
> +
> +config BR2_PACKAGE_OLA_WEB
> +       bool "http interface"
> +        select BR2_PACKAGE_LIBMICROHTTPD
> +       help
> +         Build OLA with browser interface.
> +
> +config BR2_PACKAGE_OLA_SLP
> +       bool "slp tools"
> +       help
> +         Build OLA with slp tools.
> +
> +config BR2_PACKAGE_OLA_BINDING_PYTHON
> +       bool "python bindings"
> +        select BR2_PACKAGE_PYTHON
> +       select BR2_PACKAGE_PYTHON_PROTOBUF
> +       help
> +         Build OLA with support for the Python language.
> +
> +endmenu
> +
> +
> +menu "Tests and Examples"
> +
> +config BR2_PACKAGE_OLA_EXAMPLES
> +       bool "examples"
> +       select BR2_PACKAGE_NCURSES
> +       help
> +         Build OLA examples.
> +
> +config BR2_PACKAGE_OLA_RDM_TESTS
> +       bool "rdm tests"
> +       depends on BR2_PACKAGE_OLA_BINDING_PYTHON
> +       help
> +         Build OLA RDM tests.
> +
> +endmenu
> +
> +menu "OLA Plugin selections"
> +
> +config BR2_PACKAGE_OLA_PLUGIN_ARTNET
> +       bool "artnet"
> +        default y
> +       help
> +         Build Artnet plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_DUMMY
> +       bool "dummy"
> +        default y
> +       help
> +         Build Dummy plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_E131
> +       bool "acn E131"
> +        default y
> +       help
> +         Build ACN E131 plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_ESPNET
> +       bool "espnet"
> +       help
> +         Build EspNet plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_KINET
> +       bool "kinet"
> +       help
> +         Build KiNet plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_OPENDMX
> +       bool "DMX4Linux"
> +       help
> +         Build DMX4Linux plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_PATHPORT
> +       bool "pathport"
> +       help
> +         Build Pathport plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_SANDNET
> +       bool "sandnet"
> +       help
> +         Build SandNet plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_SHOWNET
> +       bool "shownet"
> +       help
> +         Build ShowNet plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_KARATE
> +       bool "karate"
> +       help
> +         Build Karate plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_SPI
> +       bool "spi"
> +       help
> +         Build SPI plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_STAGEPROFI
> +       bool "stageprofi"
> +       depends on BR2_PACKAGE_LIBFTDI || BR2_PACKAGE_LIBUSB
> +       help
> +         Build StageProfi plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_USBPRO
> +       bool "usbpro"
> +       depends on BR2_PACKAGE_LIBFTDI || BR2_PACKAGE_LIBUSB
> +       help
> +         Build UsbPro plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_OSC
> +       bool "osc"
> +       select BR2_PACKAGE_LIBLO
> +       help
> +         Build Open sound control plugin for OLA.
> +
> +endmenu
> +
> +endif
> diff --git a/package/ola/ola.mk b/package/ola/ola.mk
> new file mode 100644
> index 0000000..3e77bb4
> --- /dev/null
> +++ b/package/ola/ola.mk
> @@ -0,0 +1,162 @@
> +#############################################################
> +#
> +# ola - open lighting architecture
> +#
> +# Open Lighting Architecture provides applications
> +# with a mechanism to send and receive DMX512 & RDM
> +# commands using hardware devices and DMX over IP protocols.
> +#
> +#############################################################
> +
> +OLA_VERSION = $(call qstrip,$(BR2_PACKAGE_OLA_GIT_TAG))
> +OLA_SITE = https://code.google.com/p/open-lighting/
> +OLA_SITE_METHOD = git
> +
> +OLA_AUTORECONF = YES
> +OLA_LICENSE = LGPLv2.1+
> +OLA_LICENSE_FILES = LICENSE COPYING.LGPLv2.1
> +
> +# util-linux provides uuid lib
> +OLA_DEPENDENCIES += protobuf util-linux
> +
> +OLA_CONF_OPT = --prefix=/usr
> +OLA_CONF_OPT += --disable-gcov
> +OLA_CONF_OPT += --disable-tcmalloc
> +OLA_CONF_OPT += --disable-unittests
> +OLA_CONF_OPT += --disable-root-check
> +OLA_CONF_OPT += --disable-java-libs
> +
> +# 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)
> +OLA_CONF_OPT += --enable-http
> +OLA_DEPENDENCIES += libmicrohttpd
> +else
> +OLA_CONF_OPT += --disable-http
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_SLP),y)
> +OLA_CONF_OPT += --enable-slp
> +else
> +OLA_CONF_OPT += --disable-slp
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_BINDING_PYTHON),y)
> +OLA_CONF_OPT += --enable-python-libs
> +OLA_DEPENDENCIES += python python-protobuf
> +else
> +OLA_CONF_OPT += --disable-python-libs
> +endif
> +
> +## OLA Examples and Tests
> +
> +ifeq ($(BR2_PACKAGE_OLA_EXAMPLES),y)
> +OLA_CONF_OPT += --enable-examples
> +OLA_DEPENDENCIES += ncurses
> +else
> +OLA_CONF_OPT += --disable-examples
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_RDM_TESTS),y)
> +OLA_CONF_OPT += --enable-rdm-tests
> +else
> +OLA_CONF_OPT += --disable-rdm-tests
> +endif
> +
> +## OLA Plugin selections
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_ARTNET),y)
> +OLA_CONF_OPT += --enable-artnet
> +else
> +OLA_CONF_OPT += --disable-artnet
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_DUMMY),y)
> +OLA_CONF_OPT += --enable-dummy
> +else
> +OLA_CONF_OPT += --disable-dummy
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_E131),y)
> +OLA_CONF_OPT += --enable-e131
> +else
> +OLA_CONF_OPT += --disable-e131
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_ESPNET),y)
> +OLA_CONF_OPT += --enable-espnet
> +else
> +OLA_CONF_OPT += --disable-espnet
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_KINET),y)
> +OLA_CONF_OPT += --enable-kinet
> +else
> +OLA_CONF_OPT += --disable-kinet
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_OPENDMX),y)
> +OLA_CONF_OPT += --enable-opendmx
> +else
> +OLA_CONF_OPT += --disable-opendmx
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_PATHPORT),y)
> +OLA_CONF_OPT += --enable-pathport
> +else
> +OLA_CONF_OPT += --disable-pathport
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_SANDNET),y)
> +OLA_CONF_OPT += --enable-sandnet
> +else
> +OLA_CONF_OPT += --disable-sandnet
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_SHOWNET),y)
> +OLA_CONF_OPT += --enable-shownet
> +else
> +OLA_CONF_OPT += --disable-shownet
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_KARATE),y)
> +OLA_CONF_OPT += --enable-karate
> +else
> +OLA_CONF_OPT += --disable-karate
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_SPI),y)
> +OLA_CONF_OPT += --enable-spi
> +else
> +OLA_CONF_OPT += --disable-spi
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_STAGEPROFI),y)
> +OLA_CONF_OPT += --enable-stageprofi
> +else
> +OLA_CONF_OPT += --disable-stageprofi
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_USBPRO),y)
> +OLA_CONF_OPT += --enable-usbpro
> +else
> +OLA_CONF_OPT += --disable-usbpro
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_OSC),y)
> +OLA_CONF_OPT += --enable-osc
> +OLA_DEPENDENCIES += liblo
> +else
> +OLA_CONF_OPT += --disable-osc
> +endif
> +
> +$(eval $(autotools-package))
> +
> +

Thomas Petazzoni provided a number of comments on the first version of
your patch, but it seems that at least several of them are not yet
addressed. If you have specific reasons for this, please comment on
them in that mail, so a discussion can occur. Otherwise, please have a
second look at Thomas' comments and integrate them into your patch.
This will make sure your patch can be integrated in mainline
buildroot.

Thanks,
Thomas



More information about the buildroot mailing list