All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] ola: new package
@ 2013-08-15 17:04 Dave Skok
  2013-08-22  8:25 ` Thomas De Schampheleire
  0 siblings, 1 reply; 16+ messages in thread
From: Dave Skok @ 2013-08-15 17:04 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Dave Skok <blanco.ether@gmail.com>
---
 package/Config.in     |   1 +
 package/ola/Config.in | 142 ++++++++++++++++++++++++++++++++++++++++++++++++
 package/ola/ola.mk    | 147 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 290 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..fb52411 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -277,6 +277,7 @@ source "package/minicom/Config.in"
 source "package/nanocom/Config.in"
 source "package/neard/Config.in"
 source "package/ofono/Config.in"
+source "package/ola/Config.in"
 source "package/on2-8170-modules/Config.in"
 source "package/open2300/Config.in"
 source "package/openocd/Config.in"
diff --git a/package/ola/Config.in b/package/ola/Config.in
new file mode 100644
index 0000000..e19dff4
--- /dev/null
+++ b/package/ola/Config.in
@@ -0,0 +1,142 @@
+config BR2_PACKAGE_OLA
+	bool "open lighting architecture"
+	select BR2_PACKAGE_PROTOBUF
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+	select BR2_PACKAGE_UTIL_LINUX
+	depends on BR2_INSTALL_LIBSTDCPP # protobuf
+	depends on BR2_LARGEFILE # util-linux
+	depends on BR2_USE_WCHAR # util-linux
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	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++, thread, largefile and wchar support"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
+
+if BR2_PACKAGE_OLA
+
+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_PYTHON_BINDINGS
+	bool "python bindings"
+	select BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON_PROTOBUF
+	depends on BR2_USE_MMU
+	help
+	  Build OLA with support for the Python language.
+
+config BR2_PACKAGE_OLA_SLP
+	bool "slp tools"
+	help
+	  Build OLA with slp tools.
+
+endmenu
+
+menu "Tests and Examples"
+
+config BR2_PACKAGE_OLA_EXAMPLES
+	bool "examples"
+	select BR2_PACKAGE_NCURSES
+	help
+	  Build OLA examples.
+
+comment "rdm tests require ola python bindings"
+	depends on !BR2_PACKAGE_OLA_PYTHON_BINDINGS
+
+config BR2_PACKAGE_OLA_RDM_TESTS
+	bool "rdm tests"
+	depends on BR2_PACKAGE_OLA_PYTHON_BINDINGS
+	help
+	  Build OLA RDM tests.
+
+endmenu
+
+menu "OLA Plugin selections"
+
+config BR2_PACKAGE_OLA_PLUGIN_E131
+	bool "acn E131"
+	default y
+	help
+	  Build ACN E131 plugin for OLA.
+
+config BR2_PACKAGE_OLA_PLUGIN_ARTNET
+	bool "artnet"
+	default y
+	help
+	  Build Artnet plugin for OLA.
+
+config BR2_PACKAGE_OLA_PLUGIN_OPENDMX
+	bool "DMX4Linux"
+	help
+	  Build DMX4Linux plugin for OLA.
+
+config BR2_PACKAGE_OLA_PLUGIN_DUMMY
+	bool "dummy"
+	default y
+	help
+	  Build Dummy 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_MILINT
+	bool "milford Instruments"
+	help
+	  Build Milford Instruments 1-463 plugin for OLA.
+
+config BR2_PACKAGE_OLA_PLUGIN_OSC
+	bool "osc"
+	select BR2_PACKAGE_LIBLO
+	help
+	  Build Open sound control 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.
+
+comment "USB driver required for stageprofi and usbpro plugin"
+	depends on !BR2_PACKAGE_LIBFTDI && !BR2_PACKAGE_LIBUSB
+
+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.
+
+endmenu
+
+endif
diff --git a/package/ola/ola.mk b/package/ola/ola.mk
new file mode 100644
index 0000000..5a60252
--- /dev/null
+++ b/package/ola/ola.mk
@@ -0,0 +1,147 @@
+################################################################################
+#
+# ola
+#
+################################################################################
+
+OLA_VERSION = 0.8.31
+OLA_SOURCE = ola-0.8.31.tar.gz
+OLA_SITE = https://open-lighting.googlecode.com/files
+
+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
+
+# util-linux provides uuid lib
+OLA_DEPENDENCIES = protobuf util-linux
+
+OLA_CONF_OPT = \
+	--disable-gcov \
+	--disable-tcmalloc \
+	--disable-unittests \
+	--disable-root-check \
+	--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_PYTHON_BINDINGS),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_E131),y)
+OLA_CONF_OPT += --enable-e131
+else
+OLA_CONF_OPT += --disable-e131
+endif
+
+ifeq ($(BR2_PACKAGE_OLA_PLUGIN_ARTNET),y)
+OLA_CONF_OPT += --enable-artnet
+else
+OLA_CONF_OPT += --disable-artnet
+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_DUMMY),y)
+OLA_CONF_OPT += --enable-dummy
+else
+OLA_CONF_OPT += --disable-dummy
+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_OSC),y)
+OLA_CONF_OPT += --enable-osc
+OLA_DEPENDENCIES += liblo
+else
+OLA_CONF_OPT += --disable-osc
+endif
+
+ifeq ($(BR2_PACKAGE_OLA_PLUGIN_MILINT),y)
+OLA_CONF_OPT += --enable-milinst
+else
+OLA_CONF_OPT += --disable-milinst
+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_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
+
+$(eval $(autotools-package))
-- 
1.8.3.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/1] ola: new package
  2013-08-15 17:04 [Buildroot] [PATCH 1/1] ola: new package Dave Skok
@ 2013-08-22  8:25 ` Thomas De Schampheleire
  2013-08-26 12:36   ` David Skok
  0 siblings, 1 reply; 16+ messages in thread
From: Thomas De Schampheleire @ 2013-08-22  8:25 UTC (permalink / raw)
  To: buildroot

Hi Dave,

On Thu, Aug 15, 2013 at 7:04 PM, Dave Skok <blanco.ether@gmail.com> wrote:
> Signed-off-by: Dave Skok <blanco.ether@gmail.com>
> ---
>  package/Config.in     |   1 +
>  package/ola/Config.in | 142 ++++++++++++++++++++++++++++++++++++++++++++++++
>  package/ola/ola.mk    | 147 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 290 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..fb52411 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -277,6 +277,7 @@ source "package/minicom/Config.in"
>  source "package/nanocom/Config.in"
>  source "package/neard/Config.in"
>  source "package/ofono/Config.in"
> +source "package/ola/Config.in"
>  source "package/on2-8170-modules/Config.in"
>  source "package/open2300/Config.in"
>  source "package/openocd/Config.in"
> diff --git a/package/ola/Config.in b/package/ola/Config.in
> new file mode 100644
> index 0000000..e19dff4
> --- /dev/null
> +++ b/package/ola/Config.in
> @@ -0,0 +1,142 @@
> +config BR2_PACKAGE_OLA
> +       bool "open lighting architecture"
> +       select BR2_PACKAGE_PROTOBUF
> +       select BR2_PACKAGE_UTIL_LINUX_LIBUUID
> +       select BR2_PACKAGE_UTIL_LINUX
> +       depends on BR2_INSTALL_LIBSTDCPP # protobuf
> +       depends on BR2_LARGEFILE # util-linux
> +       depends on BR2_USE_WCHAR # util-linux
> +       depends on BR2_TOOLCHAIN_HAS_THREADS
> +       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++, thread, largefile and wchar support"
> +       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
> +
> +if BR2_PACKAGE_OLA
> +
> +menu "OLA Bindings and Interface"

If you look at the menuconfig, you currently see:

open lighting architecture
-- OLA Bindings and Interface
-- Tests and Examples
-- OLA Plugin selections

The naming is currently a bit inconsistent.
First of all, the name OLA suddenly pops-up without explanation, so it
may be good to specify that acronym in the top-level config item.
Secondly, the second sub-item is not prefixed with OLA, while the
other two are. I'm not sure if the OLA prefix is needed in any of
these three, but I think all three should be lined up, either with or
without OLA prefix.
Thirdly, the capitalization is somewhat odd. Is there a specific
reason to use capitals for Bindings, Interface, Tests, Examples and
Plugin, but not for selections? My personal preference is not to use
capitals here because they are just common words, not names.
Also, the capitalization of OLA (if we're still keeping this): since
all packages are written in lowercase already, just like you did for
'open lighting architecture', it makes sense to me to do the same for
the acronym: ola (but I understand this is debatable).

My proposal is:
ola (open lighting architecture)
-- bindings and interface
-- tests and examples
-- plugin selections


> +
> +config BR2_PACKAGE_OLA_WEB
> +       bool "http interface"
> +       select BR2_PACKAGE_LIBMICROHTTPD
> +       help
> +         Build OLA with browser interface.
> +
> +config BR2_PACKAGE_OLA_PYTHON_BINDINGS
> +       bool "python bindings"
> +       select BR2_PACKAGE_PYTHON
> +       select BR2_PACKAGE_PYTHON_PROTOBUF
> +       depends on BR2_USE_MMU
> +       help
> +         Build OLA with support for the Python language.
> +
> +config BR2_PACKAGE_OLA_SLP
> +       bool "slp tools"
> +       help
> +         Build OLA with slp tools.
> +
> +endmenu
> +
> +menu "Tests and Examples"
> +
> +config BR2_PACKAGE_OLA_EXAMPLES
> +       bool "examples"
> +       select BR2_PACKAGE_NCURSES
> +       help
> +         Build OLA examples.
> +
> +comment "rdm tests require ola python bindings"
> +       depends on !BR2_PACKAGE_OLA_PYTHON_BINDINGS
> +
> +config BR2_PACKAGE_OLA_RDM_TESTS
> +       bool "rdm tests"
> +       depends on BR2_PACKAGE_OLA_PYTHON_BINDINGS
> +       help
> +         Build OLA RDM tests.

I think you could use 'select' here instead of depends on, and remove
the comment, don't you think?

> +
> +endmenu
> +
> +menu "OLA Plugin selections"
> +
> +config BR2_PACKAGE_OLA_PLUGIN_E131
> +       bool "acn E131"
> +       default y
> +       help
> +         Build ACN E131 plugin for OLA.

Is there a specific reason why some plugins are marked as 'default y' ?
I think all should be off by default, and the user can make his own
selection based on the hardware he has.

> +
> +config BR2_PACKAGE_OLA_PLUGIN_ARTNET
> +       bool "artnet"
> +       default y
> +       help
> +         Build Artnet plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_OPENDMX
> +       bool "DMX4Linux"
> +       help
> +         Build DMX4Linux plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_DUMMY
> +       bool "dummy"
> +       default y
> +       help
> +         Build Dummy 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_MILINT
> +       bool "milford Instruments"
> +       help
> +         Build Milford Instruments 1-463 plugin for OLA.

capitalization: milford vs Milford

> +
> +config BR2_PACKAGE_OLA_PLUGIN_OSC
> +       bool "osc"
> +       select BR2_PACKAGE_LIBLO
> +       help
> +         Build Open sound control plugin for OLA.

capitalization: here I'd expect Open Sound Control

> +
> +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.
> +
> +comment "USB driver required for stageprofi and usbpro plugin"
> +       depends on !BR2_PACKAGE_LIBFTDI && !BR2_PACKAGE_LIBUSB

It seems that libftdi automatically selects libusb, so the check on
libftdi is not needed I think.

Also, other packages that need USB use 'select BR2_PACKAGE_LIBUSB'
instead of 'depends on'. I would follow the same approach in the below
stageprofi and usbpro options, in which case the comment can be
removed.

> +
> +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.
> +
> +endmenu
> +
> +endif
> diff --git a/package/ola/ola.mk b/package/ola/ola.mk
> new file mode 100644
> index 0000000..5a60252
> --- /dev/null
> +++ b/package/ola/ola.mk
> @@ -0,0 +1,147 @@
> +################################################################################
> +#
> +# ola
> +#
> +################################################################################
> +
> +OLA_VERSION = 0.8.31
> +OLA_SOURCE = ola-0.8.31.tar.gz

This is the default value of OLA_SOURCE (pkgname-pkgversion.tar.gz),
so you can remove the explicit definition.

> +OLA_SITE = https://open-lighting.googlecode.com/files
> +
> +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
> +
> +# util-linux provides uuid lib
> +OLA_DEPENDENCIES = protobuf util-linux
> +
> +OLA_CONF_OPT = \
> +       --disable-gcov \
> +       --disable-tcmalloc \
> +       --disable-unittests \
> +       --disable-root-check \
> +       --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_PYTHON_BINDINGS),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_E131),y)
> +OLA_CONF_OPT += --enable-e131
> +else
> +OLA_CONF_OPT += --disable-e131
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_ARTNET),y)
> +OLA_CONF_OPT += --enable-artnet
> +else
> +OLA_CONF_OPT += --disable-artnet
> +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_DUMMY),y)
> +OLA_CONF_OPT += --enable-dummy
> +else
> +OLA_CONF_OPT += --disable-dummy
> +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_OSC),y)
> +OLA_CONF_OPT += --enable-osc
> +OLA_DEPENDENCIES += liblo
> +else
> +OLA_CONF_OPT += --disable-osc
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_MILINT),y)
> +OLA_CONF_OPT += --enable-milinst
> +else
> +OLA_CONF_OPT += --disable-milinst
> +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_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

I think you need to add a dependency for libusb here in usbpro and stageprofi.

> +
> +$(eval $(autotools-package))
> --
> 1.8.3.4
>

Best regards,
Thomas

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/1] ola: new package
  2013-08-22  8:25 ` Thomas De Schampheleire
@ 2013-08-26 12:36   ` David Skok
  0 siblings, 0 replies; 16+ messages in thread
From: David Skok @ 2013-08-26 12:36 UTC (permalink / raw)
  To: buildroot

Made all changes suggested and will resubmit patch.


On Thu, Aug 22, 2013 at 4:25 AM, Thomas De Schampheleire <
patrickdepinguin+buildroot@gmail.com> wrote:

> Hi Dave,
>
> On Thu, Aug 15, 2013 at 7:04 PM, Dave Skok <blanco.ether@gmail.com> wrote:
> > Signed-off-by: Dave Skok <blanco.ether@gmail.com>
> > ---
> >  package/Config.in     |   1 +
> >  package/ola/Config.in | 142
> ++++++++++++++++++++++++++++++++++++++++++++++++
> >  package/ola/ola.mk    | 147
> ++++++++++++++++++++++++++++++++++++++++++++++++++
> >  3 files changed, 290 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..fb52411 100644
> > --- a/package/Config.in
> > +++ b/package/Config.in
> > @@ -277,6 +277,7 @@ source "package/minicom/Config.in"
> >  source "package/nanocom/Config.in"
> >  source "package/neard/Config.in"
> >  source "package/ofono/Config.in"
> > +source "package/ola/Config.in"
> >  source "package/on2-8170-modules/Config.in"
> >  source "package/open2300/Config.in"
> >  source "package/openocd/Config.in"
> > diff --git a/package/ola/Config.in b/package/ola/Config.in
> > new file mode 100644
> > index 0000000..e19dff4
> > --- /dev/null
> > +++ b/package/ola/Config.in
> > @@ -0,0 +1,142 @@
> > +config BR2_PACKAGE_OLA
> > +       bool "open lighting architecture"
> > +       select BR2_PACKAGE_PROTOBUF
> > +       select BR2_PACKAGE_UTIL_LINUX_LIBUUID
> > +       select BR2_PACKAGE_UTIL_LINUX
> > +       depends on BR2_INSTALL_LIBSTDCPP # protobuf
> > +       depends on BR2_LARGEFILE # util-linux
> > +       depends on BR2_USE_WCHAR # util-linux
> > +       depends on BR2_TOOLCHAIN_HAS_THREADS
> > +       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++, thread, largefile and wchar
> support"
> > +       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE ||
> !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
> > +
> > +if BR2_PACKAGE_OLA
> > +
> > +menu "OLA Bindings and Interface"
>
> If you look at the menuconfig, you currently see:
>
> open lighting architecture
> -- OLA Bindings and Interface
> -- Tests and Examples
> -- OLA Plugin selections
>
> The naming is currently a bit inconsistent.
> First of all, the name OLA suddenly pops-up without explanation, so it
> may be good to specify that acronym in the top-level config item.
> Secondly, the second sub-item is not prefixed with OLA, while the
> other two are. I'm not sure if the OLA prefix is needed in any of
> these three, but I think all three should be lined up, either with or
> without OLA prefix.
> Thirdly, the capitalization is somewhat odd. Is there a specific
> reason to use capitals for Bindings, Interface, Tests, Examples and
> Plugin, but not for selections? My personal preference is not to use
> capitals here because they are just common words, not names.
> Also, the capitalization of OLA (if we're still keeping this): since
> all packages are written in lowercase already, just like you did for
> 'open lighting architecture', it makes sense to me to do the same for
> the acronym: ola (but I understand this is debatable).
>
> My proposal is:
> ola (open lighting architecture)
> -- bindings and interface
> -- tests and examples
> -- plugin selections
>
>
> > +
> > +config BR2_PACKAGE_OLA_WEB
> > +       bool "http interface"
> > +       select BR2_PACKAGE_LIBMICROHTTPD
> > +       help
> > +         Build OLA with browser interface.
> > +
> > +config BR2_PACKAGE_OLA_PYTHON_BINDINGS
> > +       bool "python bindings"
> > +       select BR2_PACKAGE_PYTHON
> > +       select BR2_PACKAGE_PYTHON_PROTOBUF
> > +       depends on BR2_USE_MMU
> > +       help
> > +         Build OLA with support for the Python language.
> > +
> > +config BR2_PACKAGE_OLA_SLP
> > +       bool "slp tools"
> > +       help
> > +         Build OLA with slp tools.
> > +
> > +endmenu
> > +
> > +menu "Tests and Examples"
> > +
> > +config BR2_PACKAGE_OLA_EXAMPLES
> > +       bool "examples"
> > +       select BR2_PACKAGE_NCURSES
> > +       help
> > +         Build OLA examples.
> > +
> > +comment "rdm tests require ola python bindings"
> > +       depends on !BR2_PACKAGE_OLA_PYTHON_BINDINGS
> > +
> > +config BR2_PACKAGE_OLA_RDM_TESTS
> > +       bool "rdm tests"
> > +       depends on BR2_PACKAGE_OLA_PYTHON_BINDINGS
> > +       help
> > +         Build OLA RDM tests.
>
> I think you could use 'select' here instead of depends on, and remove
> the comment, don't you think?
>
> > +
> > +endmenu
> > +
> > +menu "OLA Plugin selections"
> > +
> > +config BR2_PACKAGE_OLA_PLUGIN_E131
> > +       bool "acn E131"
> > +       default y
> > +       help
> > +         Build ACN E131 plugin for OLA.
>
> Is there a specific reason why some plugins are marked as 'default y' ?
> I think all should be off by default, and the user can make his own
> selection based on the hardware he has.
>
> > +
> > +config BR2_PACKAGE_OLA_PLUGIN_ARTNET
> > +       bool "artnet"
> > +       default y
> > +       help
> > +         Build Artnet plugin for OLA.
> > +
> > +config BR2_PACKAGE_OLA_PLUGIN_OPENDMX
> > +       bool "DMX4Linux"
> > +       help
> > +         Build DMX4Linux plugin for OLA.
> > +
> > +config BR2_PACKAGE_OLA_PLUGIN_DUMMY
> > +       bool "dummy"
> > +       default y
> > +       help
> > +         Build Dummy 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_MILINT
> > +       bool "milford Instruments"
> > +       help
> > +         Build Milford Instruments 1-463 plugin for OLA.
>
> capitalization: milford vs Milford
>
> > +
> > +config BR2_PACKAGE_OLA_PLUGIN_OSC
> > +       bool "osc"
> > +       select BR2_PACKAGE_LIBLO
> > +       help
> > +         Build Open sound control plugin for OLA.
>
> capitalization: here I'd expect Open Sound Control
>
> > +
> > +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.
> > +
> > +comment "USB driver required for stageprofi and usbpro plugin"
> > +       depends on !BR2_PACKAGE_LIBFTDI && !BR2_PACKAGE_LIBUSB
>
> It seems that libftdi automatically selects libusb, so the check on
> libftdi is not needed I think.
>
> Also, other packages that need USB use 'select BR2_PACKAGE_LIBUSB'
> instead of 'depends on'. I would follow the same approach in the below
> stageprofi and usbpro options, in which case the comment can be
> removed.
>
> > +
> > +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.
> > +
> > +endmenu
> > +
> > +endif
> > diff --git a/package/ola/ola.mk b/package/ola/ola.mk
> > new file mode 100644
> > index 0000000..5a60252
> > --- /dev/null
> > +++ b/package/ola/ola.mk
> > @@ -0,0 +1,147 @@
> >
> +################################################################################
> > +#
> > +# ola
> > +#
> >
> +################################################################################
> > +
> > +OLA_VERSION = 0.8.31
> > +OLA_SOURCE = ola-0.8.31.tar.gz
>
> This is the default value of OLA_SOURCE (pkgname-pkgversion.tar.gz),
> so you can remove the explicit definition.
>
> > +OLA_SITE = https://open-lighting.googlecode.com/files
> > +
> > +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
> > +
> > +# util-linux provides uuid lib
> > +OLA_DEPENDENCIES = protobuf util-linux
> > +
> > +OLA_CONF_OPT = \
> > +       --disable-gcov \
> > +       --disable-tcmalloc \
> > +       --disable-unittests \
> > +       --disable-root-check \
> > +       --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_PYTHON_BINDINGS),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_E131),y)
> > +OLA_CONF_OPT += --enable-e131
> > +else
> > +OLA_CONF_OPT += --disable-e131
> > +endif
> > +
> > +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_ARTNET),y)
> > +OLA_CONF_OPT += --enable-artnet
> > +else
> > +OLA_CONF_OPT += --disable-artnet
> > +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_DUMMY),y)
> > +OLA_CONF_OPT += --enable-dummy
> > +else
> > +OLA_CONF_OPT += --disable-dummy
> > +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_OSC),y)
> > +OLA_CONF_OPT += --enable-osc
> > +OLA_DEPENDENCIES += liblo
> > +else
> > +OLA_CONF_OPT += --disable-osc
> > +endif
> > +
> > +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_MILINT),y)
> > +OLA_CONF_OPT += --enable-milinst
> > +else
> > +OLA_CONF_OPT += --disable-milinst
> > +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_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
>
> I think you need to add a dependency for libusb here in usbpro and
> stageprofi.
>
> > +
> > +$(eval $(autotools-package))
> > --
> > 1.8.3.4
> >
>
> Best regards,
> Thomas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130826/76c7e7f4/attachment-0001.html>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/1] ola: new package
  2013-08-28 11:50 Dave Skok
@ 2013-09-12 21:03 ` Peter Korsgaard
  0 siblings, 0 replies; 16+ messages in thread
From: Peter Korsgaard @ 2013-09-12 21:03 UTC (permalink / raw)
  To: buildroot

>>>>> "Dave" == Dave Skok <blanco.ether@gmail.com> writes:

 Dave> Signed-off-by: Dave Skok <blanco.ether@gmail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/1] ola: new package
  2013-08-27 16:57 ` Arnout Vandecappelle
@ 2013-08-28 11:51   ` David Skok
  0 siblings, 0 replies; 16+ messages in thread
From: David Skok @ 2013-08-28 11:51 UTC (permalink / raw)
  To: buildroot

Changes made, patch posted.

Dave


On Tue, Aug 27, 2013 at 12:57 PM, Arnout Vandecappelle <arnout@mind.be>wrote:

> On 08/26/13 16:02, Dave Skok wrote:
>
>> Signed-off-by: Dave Skok <blanco.ether@gmail.com>
>>
>
>  Two very small fixes:
>
>
>  ---
>>   package/Config.in     |   1 +
>>   package/ola/Config.in | 136 ++++++++++++++++++++++++++++++**
>> ++++++++++++++++
>>   package/ola/ola.mk    | 146 ++++++++++++++++++++++++++++++**
>> ++++++++++++++++++++
>>   3 files changed, 283 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..fb52411 100644
>> --- a/package/Config.in
>> +++ b/package/Config.in
>> @@ -277,6 +277,7 @@ source "package/minicom/Config.in"
>>   source "package/nanocom/Config.in"
>>   source "package/neard/Config.in"
>>   source "package/ofono/Config.in"
>> +source "package/ola/Config.in"
>>   source "package/on2-8170-modules/**Config.in"
>>   source "package/open2300/Config.in"
>>   source "package/openocd/Config.in"
>> diff --git a/package/ola/Config.in b/package/ola/Config.in
>> new file mode 100644
>> index 0000000..050f29b
>> --- /dev/null
>> +++ b/package/ola/Config.in
>> @@ -0,0 +1,136 @@
>> +config BR2_PACKAGE_OLA
>> +       bool "ola (open lighting architecture)"
>> +       select BR2_PACKAGE_PROTOBUF
>> +       select BR2_PACKAGE_UTIL_LINUX_LIBUUID
>> +       select BR2_PACKAGE_UTIL_LINUX
>> +       depends on BR2_INSTALL_LIBSTDCPP # protobuf
>> +       depends on BR2_LARGEFILE # util-linux
>> +       depends on BR2_USE_WCHAR # util-linux
>> +       depends on BR2_TOOLCHAIN_HAS_THREADS
>> +       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<http://www.opendmx.net/index.php/OLA>
>> +
>> +comment "ola requires a toolchain with C++, thread, largefile and wchar
>> support"
>> +       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE ||
>> !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
>>
>
>  This comment should go either above the BR2_PACKAGE_OLA config, or else
> at the end of the file. Otherwise the sub-menus will not be indented.
>
>
>  +
>> +if BR2_PACKAGE_OLA
>> +
>> +menu "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_PYTHON_**BINDINGS
>> +       bool "python bindings"
>> +       select BR2_PACKAGE_PYTHON
>> +       select BR2_PACKAGE_PYTHON_PROTOBUF
>> +       depends on BR2_USE_MMU
>> +       help
>> +         Build OLA with support for the Python language.
>> +
>> +config BR2_PACKAGE_OLA_SLP
>> +       bool "slp tools"
>> +       help
>> +         Build OLA with slp tools.
>> +
>> +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"
>> +       select BR2_PACKAGE_OLA_PYTHON_**BINDINGS
>> +       select BR2_PACKAGE_PYTHON
>> +       select BR2_PACKAGE_PYTHON_PROTOBUF
>>
>
>  These two are already selected by BR2_PACKAGE_OLA_PYTHON_**BINDINGS.
>
>  Regards,
>  Arnout
>
>
>  +       depends on BR2_USE_MMU
>> +       help
>> +         Build OLA RDM tests.
>> +
>> +endmenu
>>
>
> [snip]
>
>
> --
> Arnout Vandecappelle                          arnout at mind be
> Senior Embedded Software Architect            +32-16-286500
> Essensium/Mind                                http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/**arnoutvandecappelle<http://www.linkedin.com/in/arnoutvandecappelle>
> GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130828/5cd39e72/attachment.html>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/1] ola: new package
@ 2013-08-28 11:50 Dave Skok
  2013-09-12 21:03 ` Peter Korsgaard
  0 siblings, 1 reply; 16+ messages in thread
From: Dave Skok @ 2013-08-28 11:50 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Dave Skok <blanco.ether@gmail.com>
---
 package/Config.in     |   1 +
 package/ola/Config.in | 134 +++++++++++++++++++++++++++++++++++++++++++++
 package/ola/ola.mk    | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 281 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..4524b24 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -276,6 +276,7 @@ source "package/memtester/Config.in"
 source "package/minicom/Config.in"
 source "package/nanocom/Config.in"
 source "package/neard/Config.in"
+source "package/ola/Config.in"
 source "package/ofono/Config.in"
 source "package/on2-8170-modules/Config.in"
 source "package/open2300/Config.in"
diff --git a/package/ola/Config.in b/package/ola/Config.in
new file mode 100644
index 0000000..d446f5b
--- /dev/null
+++ b/package/ola/Config.in
@@ -0,0 +1,134 @@
+comment "ola requires a toolchain with C++, thread, largefile and wchar support"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
+
+config BR2_PACKAGE_OLA
+	bool "ola (open lighting architecture)"
+	select BR2_PACKAGE_PROTOBUF
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+	select BR2_PACKAGE_UTIL_LINUX
+	depends on BR2_INSTALL_LIBSTDCPP # protobuf
+	depends on BR2_LARGEFILE # util-linux
+	depends on BR2_USE_WCHAR # util-linux
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	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
+
+if BR2_PACKAGE_OLA
+
+menu "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_PYTHON_BINDINGS
+	bool "python bindings"
+	select BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON_PROTOBUF
+	depends on BR2_USE_MMU
+	help
+	  Build OLA with support for the Python language.
+
+config BR2_PACKAGE_OLA_SLP
+	bool "slp tools"
+	help
+	  Build OLA with slp tools.
+
+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"
+	select BR2_PACKAGE_OLA_PYTHON_BINDINGS
+	depends on BR2_USE_MMU
+	help
+	  Build OLA RDM tests.
+
+endmenu
+
+menu "plugin selections"
+
+config BR2_PACKAGE_OLA_PLUGIN_E131
+	bool "acn E131"
+	help
+	  Build ACN E131 plugin for OLA.
+
+config BR2_PACKAGE_OLA_PLUGIN_ARTNET
+	bool "artnet"
+	help
+	  Build Artnet plugin for OLA.
+
+config BR2_PACKAGE_OLA_PLUGIN_OPENDMX
+	bool "DMX4Linux"
+	help
+	  Build DMX4Linux plugin for OLA.
+
+config BR2_PACKAGE_OLA_PLUGIN_DUMMY
+	bool "dummy"
+	help
+	  Build Dummy 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_MILINT
+	bool "Milford Instruments"
+	help
+	  Build Milford Instruments 1-463 plugin for OLA.
+
+config BR2_PACKAGE_OLA_PLUGIN_OSC
+	bool "osc"
+	select BR2_PACKAGE_LIBLO
+	help
+	  Build Open Sound Control 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_STAGEPROFI
+	bool "stageprofi"
+	select BR2_PACKAGE_LIBUSB
+	help
+	  Build StageProfi plugin for OLA.
+
+config BR2_PACKAGE_OLA_PLUGIN_USBPRO
+	bool "usbpro"
+	select BR2_PACKAGE_LIBUSB
+	help
+	  Build UsbPro plugin for OLA.
+
+endmenu
+
+endif
diff --git a/package/ola/ola.mk b/package/ola/ola.mk
new file mode 100644
index 0000000..55386b1
--- /dev/null
+++ b/package/ola/ola.mk
@@ -0,0 +1,146 @@
+################################################################################
+#
+# ola
+#
+################################################################################
+
+OLA_VERSION = 0.8.31
+OLA_SITE = https://open-lighting.googlecode.com/files
+
+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
+
+# util-linux provides uuid lib
+OLA_DEPENDENCIES = protobuf util-linux
+
+OLA_CONF_OPT = \
+	--disable-gcov \
+	--disable-tcmalloc \
+	--disable-unittests \
+	--disable-root-check \
+	--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_PYTHON_BINDINGS),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_E131),y)
+OLA_CONF_OPT += --enable-e131
+else
+OLA_CONF_OPT += --disable-e131
+endif
+
+ifeq ($(BR2_PACKAGE_OLA_PLUGIN_ARTNET),y)
+OLA_CONF_OPT += --enable-artnet
+else
+OLA_CONF_OPT += --disable-artnet
+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_DUMMY),y)
+OLA_CONF_OPT += --enable-dummy
+else
+OLA_CONF_OPT += --disable-dummy
+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_OSC),y)
+OLA_CONF_OPT += --enable-osc
+OLA_DEPENDENCIES += liblo
+else
+OLA_CONF_OPT += --disable-osc
+endif
+
+ifeq ($(BR2_PACKAGE_OLA_PLUGIN_MILINT),y)
+OLA_CONF_OPT += --enable-milinst
+else
+OLA_CONF_OPT += --disable-milinst
+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_STAGEPROFI),y)
+OLA_CONF_OPT += --enable-stageprofi --enable-libusb
+else
+OLA_CONF_OPT += --disable-stageprofi
+endif
+
+ifeq ($(BR2_PACKAGE_OLA_PLUGIN_USBPRO),y)
+OLA_CONF_OPT += --enable-usbpro --enable-libusb
+else
+OLA_CONF_OPT += --disable-usbpro
+endif
+
+$(eval $(autotools-package))
-- 
1.8.3.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/1] ola: new package
  2013-08-26 14:02 Dave Skok
  2013-08-27  8:04 ` Thomas De Schampheleire
@ 2013-08-27 16:57 ` Arnout Vandecappelle
  2013-08-28 11:51   ` David Skok
  1 sibling, 1 reply; 16+ messages in thread
From: Arnout Vandecappelle @ 2013-08-27 16:57 UTC (permalink / raw)
  To: buildroot

On 08/26/13 16:02, Dave Skok wrote:
> Signed-off-by: Dave Skok <blanco.ether@gmail.com>

  Two very small fixes:

> ---
>   package/Config.in     |   1 +
>   package/ola/Config.in | 136 ++++++++++++++++++++++++++++++++++++++++++++++
>   package/ola/ola.mk    | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++
>   3 files changed, 283 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..fb52411 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -277,6 +277,7 @@ source "package/minicom/Config.in"
>   source "package/nanocom/Config.in"
>   source "package/neard/Config.in"
>   source "package/ofono/Config.in"
> +source "package/ola/Config.in"
>   source "package/on2-8170-modules/Config.in"
>   source "package/open2300/Config.in"
>   source "package/openocd/Config.in"
> diff --git a/package/ola/Config.in b/package/ola/Config.in
> new file mode 100644
> index 0000000..050f29b
> --- /dev/null
> +++ b/package/ola/Config.in
> @@ -0,0 +1,136 @@
> +config BR2_PACKAGE_OLA
> +	bool "ola (open lighting architecture)"
> +	select BR2_PACKAGE_PROTOBUF
> +	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
> +	select BR2_PACKAGE_UTIL_LINUX
> +	depends on BR2_INSTALL_LIBSTDCPP # protobuf
> +	depends on BR2_LARGEFILE # util-linux
> +	depends on BR2_USE_WCHAR # util-linux
> +	depends on BR2_TOOLCHAIN_HAS_THREADS
> +	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++, thread, largefile and wchar support"
> +	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS

  This comment should go either above the BR2_PACKAGE_OLA config, or else 
at the end of the file. Otherwise the sub-menus will not be indented.

> +
> +if BR2_PACKAGE_OLA
> +
> +menu "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_PYTHON_BINDINGS
> +	bool "python bindings"
> +	select BR2_PACKAGE_PYTHON
> +	select BR2_PACKAGE_PYTHON_PROTOBUF
> +	depends on BR2_USE_MMU
> +	help
> +	  Build OLA with support for the Python language.
> +
> +config BR2_PACKAGE_OLA_SLP
> +	bool "slp tools"
> +	help
> +	  Build OLA with slp tools.
> +
> +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"
> +	select BR2_PACKAGE_OLA_PYTHON_BINDINGS
> +	select BR2_PACKAGE_PYTHON
> +	select BR2_PACKAGE_PYTHON_PROTOBUF

  These two are already selected by BR2_PACKAGE_OLA_PYTHON_BINDINGS.

  Regards,
  Arnout

> +	depends on BR2_USE_MMU
> +	help
> +	  Build OLA RDM tests.
> +
> +endmenu

[snip]


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/1] ola: new package
  2013-08-26 14:02 Dave Skok
@ 2013-08-27  8:04 ` Thomas De Schampheleire
  2013-08-27 16:57 ` Arnout Vandecappelle
  1 sibling, 0 replies; 16+ messages in thread
From: Thomas De Schampheleire @ 2013-08-27  8:04 UTC (permalink / raw)
  To: buildroot

On Mon, Aug 26, 2013 at 4:02 PM, Dave Skok <blanco.ether@gmail.com> wrote:
> Signed-off-by: Dave Skok <blanco.ether@gmail.com>
> ---
>  package/Config.in     |   1 +
>  package/ola/Config.in | 136 ++++++++++++++++++++++++++++++++++++++++++++++
>  package/ola/ola.mk    | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 283 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..fb52411 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -277,6 +277,7 @@ source "package/minicom/Config.in"
>  source "package/nanocom/Config.in"
>  source "package/neard/Config.in"
>  source "package/ofono/Config.in"
> +source "package/ola/Config.in"
>  source "package/on2-8170-modules/Config.in"
>  source "package/open2300/Config.in"
>  source "package/openocd/Config.in"
> diff --git a/package/ola/Config.in b/package/ola/Config.in
> new file mode 100644
> index 0000000..050f29b
> --- /dev/null
> +++ b/package/ola/Config.in
> @@ -0,0 +1,136 @@
> +config BR2_PACKAGE_OLA
> +       bool "ola (open lighting architecture)"
> +       select BR2_PACKAGE_PROTOBUF
> +       select BR2_PACKAGE_UTIL_LINUX_LIBUUID
> +       select BR2_PACKAGE_UTIL_LINUX
> +       depends on BR2_INSTALL_LIBSTDCPP # protobuf
> +       depends on BR2_LARGEFILE # util-linux
> +       depends on BR2_USE_WCHAR # util-linux
> +       depends on BR2_TOOLCHAIN_HAS_THREADS
> +       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++, thread, largefile and wchar support"
> +       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
> +
> +if BR2_PACKAGE_OLA
> +
> +menu "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_PYTHON_BINDINGS
> +       bool "python bindings"
> +       select BR2_PACKAGE_PYTHON
> +       select BR2_PACKAGE_PYTHON_PROTOBUF
> +       depends on BR2_USE_MMU
> +       help
> +         Build OLA with support for the Python language.
> +
> +config BR2_PACKAGE_OLA_SLP
> +       bool "slp tools"
> +       help
> +         Build OLA with slp tools.
> +
> +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"
> +       select BR2_PACKAGE_OLA_PYTHON_BINDINGS
> +       select BR2_PACKAGE_PYTHON
> +       select BR2_PACKAGE_PYTHON_PROTOBUF
> +       depends on BR2_USE_MMU
> +       help
> +         Build OLA RDM tests.
> +
> +endmenu
> +
> +menu "plugin selections"
> +
> +config BR2_PACKAGE_OLA_PLUGIN_E131
> +       bool "acn E131"
> +       help
> +         Build ACN E131 plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_ARTNET
> +       bool "artnet"
> +       help
> +         Build Artnet plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_OPENDMX
> +       bool "DMX4Linux"
> +       help
> +         Build DMX4Linux plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_DUMMY
> +       bool "dummy"
> +       help
> +         Build Dummy 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_MILINT
> +       bool "Milford Instruments"
> +       help
> +         Build Milford Instruments 1-463 plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_OSC
> +       bool "osc"
> +       select BR2_PACKAGE_LIBLO
> +       help
> +         Build Open Sound Control 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_STAGEPROFI
> +       bool "stageprofi"
> +       select BR2_PACKAGE_LIBUSB
> +       help
> +         Build StageProfi plugin for OLA.
> +
> +config BR2_PACKAGE_OLA_PLUGIN_USBPRO
> +       bool "usbpro"
> +       select BR2_PACKAGE_LIBUSB
> +       help
> +         Build UsbPro plugin for OLA.
> +
> +endmenu
> +
> +endif
> diff --git a/package/ola/ola.mk b/package/ola/ola.mk
> new file mode 100644
> index 0000000..55386b1
> --- /dev/null
> +++ b/package/ola/ola.mk
> @@ -0,0 +1,146 @@
> +################################################################################
> +#
> +# ola
> +#
> +################################################################################
> +
> +OLA_VERSION = 0.8.31
> +OLA_SITE = https://open-lighting.googlecode.com/files
> +
> +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
> +
> +# util-linux provides uuid lib
> +OLA_DEPENDENCIES = protobuf util-linux
> +
> +OLA_CONF_OPT = \
> +       --disable-gcov \
> +       --disable-tcmalloc \
> +       --disable-unittests \
> +       --disable-root-check \
> +       --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_PYTHON_BINDINGS),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_E131),y)
> +OLA_CONF_OPT += --enable-e131
> +else
> +OLA_CONF_OPT += --disable-e131
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_ARTNET),y)
> +OLA_CONF_OPT += --enable-artnet
> +else
> +OLA_CONF_OPT += --disable-artnet
> +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_DUMMY),y)
> +OLA_CONF_OPT += --enable-dummy
> +else
> +OLA_CONF_OPT += --disable-dummy
> +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_OSC),y)
> +OLA_CONF_OPT += --enable-osc
> +OLA_DEPENDENCIES += liblo
> +else
> +OLA_CONF_OPT += --disable-osc
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_MILINT),y)
> +OLA_CONF_OPT += --enable-milinst
> +else
> +OLA_CONF_OPT += --disable-milinst
> +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_STAGEPROFI),y)
> +OLA_CONF_OPT += --enable-stageprofi --enable-libusb
> +else
> +OLA_CONF_OPT += --disable-stageprofi
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OLA_PLUGIN_USBPRO),y)
> +OLA_CONF_OPT += --enable-usbpro --enable-libusb
> +else
> +OLA_CONF_OPT += --disable-usbpro
> +endif
> +
> +$(eval $(autotools-package))

Reviewed-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/1] ola: new package
@ 2013-08-26 14:02 Dave Skok
  2013-08-27  8:04 ` Thomas De Schampheleire
  2013-08-27 16:57 ` Arnout Vandecappelle
  0 siblings, 2 replies; 16+ messages in thread
From: Dave Skok @ 2013-08-26 14:02 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Dave Skok <blanco.ether@gmail.com>
---
 package/Config.in     |   1 +
 package/ola/Config.in | 136 ++++++++++++++++++++++++++++++++++++++++++++++
 package/ola/ola.mk    | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 283 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..fb52411 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -277,6 +277,7 @@ source "package/minicom/Config.in"
 source "package/nanocom/Config.in"
 source "package/neard/Config.in"
 source "package/ofono/Config.in"
+source "package/ola/Config.in"
 source "package/on2-8170-modules/Config.in"
 source "package/open2300/Config.in"
 source "package/openocd/Config.in"
diff --git a/package/ola/Config.in b/package/ola/Config.in
new file mode 100644
index 0000000..050f29b
--- /dev/null
+++ b/package/ola/Config.in
@@ -0,0 +1,136 @@
+config BR2_PACKAGE_OLA
+	bool "ola (open lighting architecture)"
+	select BR2_PACKAGE_PROTOBUF
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+	select BR2_PACKAGE_UTIL_LINUX
+	depends on BR2_INSTALL_LIBSTDCPP # protobuf
+	depends on BR2_LARGEFILE # util-linux
+	depends on BR2_USE_WCHAR # util-linux
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	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++, thread, largefile and wchar support"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
+
+if BR2_PACKAGE_OLA
+
+menu "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_PYTHON_BINDINGS
+	bool "python bindings"
+	select BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON_PROTOBUF
+	depends on BR2_USE_MMU
+	help
+	  Build OLA with support for the Python language.
+
+config BR2_PACKAGE_OLA_SLP
+	bool "slp tools"
+	help
+	  Build OLA with slp tools.
+
+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"
+	select BR2_PACKAGE_OLA_PYTHON_BINDINGS
+	select BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON_PROTOBUF
+	depends on BR2_USE_MMU
+	help
+	  Build OLA RDM tests.
+
+endmenu
+
+menu "plugin selections"
+
+config BR2_PACKAGE_OLA_PLUGIN_E131
+	bool "acn E131"
+	help
+	  Build ACN E131 plugin for OLA.
+
+config BR2_PACKAGE_OLA_PLUGIN_ARTNET
+	bool "artnet"
+	help
+	  Build Artnet plugin for OLA.
+
+config BR2_PACKAGE_OLA_PLUGIN_OPENDMX
+	bool "DMX4Linux"
+	help
+	  Build DMX4Linux plugin for OLA.
+
+config BR2_PACKAGE_OLA_PLUGIN_DUMMY
+	bool "dummy"
+	help
+	  Build Dummy 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_MILINT
+	bool "Milford Instruments"
+	help
+	  Build Milford Instruments 1-463 plugin for OLA.
+
+config BR2_PACKAGE_OLA_PLUGIN_OSC
+	bool "osc"
+	select BR2_PACKAGE_LIBLO
+	help
+	  Build Open Sound Control 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_STAGEPROFI
+	bool "stageprofi"
+	select BR2_PACKAGE_LIBUSB
+	help
+	  Build StageProfi plugin for OLA.
+
+config BR2_PACKAGE_OLA_PLUGIN_USBPRO
+	bool "usbpro"
+	select BR2_PACKAGE_LIBUSB
+	help
+	  Build UsbPro plugin for OLA.
+
+endmenu
+
+endif
diff --git a/package/ola/ola.mk b/package/ola/ola.mk
new file mode 100644
index 0000000..55386b1
--- /dev/null
+++ b/package/ola/ola.mk
@@ -0,0 +1,146 @@
+################################################################################
+#
+# ola
+#
+################################################################################
+
+OLA_VERSION = 0.8.31
+OLA_SITE = https://open-lighting.googlecode.com/files
+
+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
+
+# util-linux provides uuid lib
+OLA_DEPENDENCIES = protobuf util-linux
+
+OLA_CONF_OPT = \
+	--disable-gcov \
+	--disable-tcmalloc \
+	--disable-unittests \
+	--disable-root-check \
+	--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_PYTHON_BINDINGS),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_E131),y)
+OLA_CONF_OPT += --enable-e131
+else
+OLA_CONF_OPT += --disable-e131
+endif
+
+ifeq ($(BR2_PACKAGE_OLA_PLUGIN_ARTNET),y)
+OLA_CONF_OPT += --enable-artnet
+else
+OLA_CONF_OPT += --disable-artnet
+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_DUMMY),y)
+OLA_CONF_OPT += --enable-dummy
+else
+OLA_CONF_OPT += --disable-dummy
+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_OSC),y)
+OLA_CONF_OPT += --enable-osc
+OLA_DEPENDENCIES += liblo
+else
+OLA_CONF_OPT += --disable-osc
+endif
+
+ifeq ($(BR2_PACKAGE_OLA_PLUGIN_MILINT),y)
+OLA_CONF_OPT += --enable-milinst
+else
+OLA_CONF_OPT += --disable-milinst
+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_STAGEPROFI),y)
+OLA_CONF_OPT += --enable-stageprofi --enable-libusb
+else
+OLA_CONF_OPT += --disable-stageprofi
+endif
+
+ifeq ($(BR2_PACKAGE_OLA_PLUGIN_USBPRO),y)
+OLA_CONF_OPT += --enable-usbpro --enable-libusb
+else
+OLA_CONF_OPT += --disable-usbpro
+endif
+
+$(eval $(autotools-package))
-- 
1.8.3.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/1] ola: new package
  2013-08-13 22:32 ` Thomas Petazzoni
@ 2013-08-14  0:51   ` Blanco
  0 siblings, 0 replies; 16+ messages in thread
From: Blanco @ 2013-08-14  0:51 UTC (permalink / raw)
  To: buildroot


Hi Thomas, 

No, plugins should not be built if not selected.  I took out autoreconfig when I switched from git repo to tarred release.  It is possible that is the cause.  I will check.

Dave

On Aug 13, 2013, at 6:32 PM, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote:

> Dear Dave Skok,
> 
> On Mon, 12 Aug 2013 14:05:15 -0400, Dave Skok wrote:
>> Signed-off-by: Dave Skok <blanco.ether@gmail.com>
>> ---
>> package/Config.in     |   1 +
>> package/ola/Config.in | 144 +++++++++++++++++++++++++++++++++++++++++++++++
>> package/ola/ola.mk    | 153 ++++++++++++++++++++++++++++++++++++++++++++++++++
>> 3 files changed, 298 insertions(+)
>> create mode 100644 package/ola/Config.in
>> create mode 100644 package/ola/ola.mk
> 
> Thanks, it now builds successfully.
> 
> However, I've found another issue: even if I keep most plugins
> disabled, they are still all built and installed. For example, with a
> configuration that has:
> 
> # BR2_PACKAGE_OLA_PLUGIN_KARATE is not set
> 
> I get the karate plugin built and installed:
> 
> $ ls -1 output/target/usr/lib/olad/*karate*
> output/target/usr/lib/olad/libolakarate.so
> output/target/usr/lib/olad/libolakarate.so.0
> output/target/usr/lib/olad/libolakarate.so.0.0.0
> 
> Same goes for:
> 
> # BR2_PACKAGE_OLA_PLUGIN_SPI is not set
> 
> $ ls -1 output/target/usr/lib/olad/*spi*
> output/target/usr/lib/olad/libolaspicore.so
> output/target/usr/lib/olad/libolaspicore.so.0
> output/target/usr/lib/olad/libolaspicore.so.0.0.0
> output/target/usr/lib/olad/libolaspi.so
> output/target/usr/lib/olad/libolaspi.so.0
> output/target/usr/lib/olad/libolaspi.so.0.0.0
> 
> Is this expected?
> 
> Thanks,
> 
> Thomas
> -- 
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/1] ola: new package
  2013-08-12 18:05 Dave Skok
@ 2013-08-13 22:32 ` Thomas Petazzoni
  2013-08-14  0:51   ` Blanco
  0 siblings, 1 reply; 16+ messages in thread
From: Thomas Petazzoni @ 2013-08-13 22:32 UTC (permalink / raw)
  To: buildroot

Dear Dave Skok,

On Mon, 12 Aug 2013 14:05:15 -0400, Dave Skok wrote:
> Signed-off-by: Dave Skok <blanco.ether@gmail.com>
> ---
>  package/Config.in     |   1 +
>  package/ola/Config.in | 144 +++++++++++++++++++++++++++++++++++++++++++++++
>  package/ola/ola.mk    | 153 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 298 insertions(+)
>  create mode 100644 package/ola/Config.in
>  create mode 100644 package/ola/ola.mk

Thanks, it now builds successfully.

However, I've found another issue: even if I keep most plugins
disabled, they are still all built and installed. For example, with a
configuration that has:

# BR2_PACKAGE_OLA_PLUGIN_KARATE is not set

I get the karate plugin built and installed:

$ ls -1 output/target/usr/lib/olad/*karate*
output/target/usr/lib/olad/libolakarate.so
output/target/usr/lib/olad/libolakarate.so.0
output/target/usr/lib/olad/libolakarate.so.0.0.0

Same goes for:

# BR2_PACKAGE_OLA_PLUGIN_SPI is not set

$ ls -1 output/target/usr/lib/olad/*spi*
output/target/usr/lib/olad/libolaspicore.so
output/target/usr/lib/olad/libolaspicore.so.0
output/target/usr/lib/olad/libolaspicore.so.0.0.0
output/target/usr/lib/olad/libolaspi.so
output/target/usr/lib/olad/libolaspi.so.0
output/target/usr/lib/olad/libolaspi.so.0.0.0

Is this expected?

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/1] ola: new package
  2013-08-12 18:01     ` Thomas Petazzoni
@ 2013-08-12 18:36       ` David Skok
  0 siblings, 0 replies; 16+ messages in thread
From: David Skok @ 2013-08-12 18:36 UTC (permalink / raw)
  To: buildroot

Dear Thomas,

Problem solved.  Details regarding source of problem are too
confounding to explain.  As it happens to be Simon Newton, the source
maintainer was about to release a new version within minutes of me
contacting him and we (he) was able to resolve it prior to the new
release.

Simon asked for and I provided him with details regarding how he can
verify that future development compiles under buildroot as he is aware
of and encourages Open lighting Architecture use in embedded
environments.  Again, thank you for your patience.  I am encouraged to
contribute more in the future where I can.

Dave



On Mon, Aug 12, 2013 at 2:01 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear David Skok,
>
> Please always keep the Buildroot mailing list Cc'ed when continuing
> discussions that started on the list.
>
> On Mon, 12 Aug 2013 08:26:57 -0400, David Skok wrote:
>
>> I've made the changes you point out.  My apologies but I don't know
>> what you mean by "patch is not wrapped" and is (is not?) proper
>> format.
>
> What I meant is that your latest patch was perfect.
>
> Often, when people send patches with their normal e-mail client, most
> e-mail clients tend to "wrap" lines at 80 characters or so: instead of
> having very very long lines, you have lines nicely wrapped at a
> reasonable length.
>
> However, while this is very useful when exchanging text, it falls apart
> when exchanging patches, because the wrapping feature of the e-mail
> clients breaks the patches and they can no longer be applied.
>
> By using 'git send-email' (as you did), you make sure that your e-mail
> client will not interfere with how the patch is sent, and specifically
> that it doesn't get wrapped.
>
>> I use git command line outlined in buildroot manual to send
>> it.  I am new to contributing to open source and am doing my best to
>> learn compliance for contribution.  Thank you for your patience so
>> far.
>>
>> Regarding the compile problem.  I have worked with the maintainer
>> previously while I was testing package to correct compile issues.  I
>> also test result with success.  The external compiler I used at the
>> time was linaro 2013.01 which was option in buildroot for ARM A8 then.
>>  I will verify error with configuration you report and find a solution
>> asap.
>
> I must say I haven't tested with a Linaro toolchain, which is glibc
> based, and I only tested with an uClibc based toolchain. However,
> seeing the message, I don't really suspect a glibc vs. uClibc
> difference.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/1] ola: new package
@ 2013-08-12 18:05 Dave Skok
  2013-08-13 22:32 ` Thomas Petazzoni
  0 siblings, 1 reply; 16+ messages in thread
From: Dave Skok @ 2013-08-12 18:05 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Dave Skok <blanco.ether@gmail.com>
---
 package/Config.in     |   1 +
 package/ola/Config.in | 144 +++++++++++++++++++++++++++++++++++++++++++++++
 package/ola/ola.mk    | 153 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 298 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..fb52411 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -277,6 +277,7 @@ source "package/minicom/Config.in"
 source "package/nanocom/Config.in"
 source "package/neard/Config.in"
 source "package/ofono/Config.in"
+source "package/ola/Config.in"
 source "package/on2-8170-modules/Config.in"
 source "package/open2300/Config.in"
 source "package/openocd/Config.in"
diff --git a/package/ola/Config.in b/package/ola/Config.in
new file mode 100644
index 0000000..066fdd4
--- /dev/null
+++ b/package/ola/Config.in
@@ -0,0 +1,144 @@
+config BR2_PACKAGE_OLA
+	bool "open lighting architecture"
+	select BR2_PACKAGE_PROTOBUF
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+	select BR2_PACKAGE_UTIL_LINUX
+	depends on BR2_INSTALL_LIBSTDCPP # protobuf
+	depends on BR2_LARGEFILE # util-linux
+	depends on BR2_USE_WCHAR # util-linux
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	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++, thread, largefile and wchar support"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
+
+if BR2_PACKAGE_OLA
+
+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_PYTHON_BINDINGS
+	bool "python bindings"
+	select BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON_PROTOBUF
+	depends on BR2_USE_MMU
+	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.
+
+comment "USB driver required for stageprofi and usbpro plugin"
+	depends on !BR2_PACKAGE_LIBFTDI && !BR2_PACKAGE_LIBUSB
+
+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..0a22401
--- /dev/null
+++ b/package/ola/ola.mk
@@ -0,0 +1,153 @@
+################################################################################
+#
+# ola
+#
+################################################################################
+
+OLA_VERSION = 0.8.31
+OLA_SOURCE = ola-0.8.31.tar.gz
+OLA_SITE = https://open-lighting.googlecode.com/files
+
+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
+
+# util-linux provides uuid lib
+OLA_DEPENDENCIES = protobuf util-linux
+
+OLA_CONF_OPT = \
+	--disable-gcov \
+	--disable-tcmalloc \
+	--disable-unittests \
+	--disable-root-check \
+	--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_PYTHON_BINDINGS),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))
-- 
1.8.3.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/1] ola: new package
       [not found]   ` <CALy4uEXhixrLNKzrRVsdYqCeNer6XPB_kXKwJepH8Pnh9+M+mA@mail.gmail.com>
@ 2013-08-12 18:01     ` Thomas Petazzoni
  2013-08-12 18:36       ` David Skok
  0 siblings, 1 reply; 16+ messages in thread
From: Thomas Petazzoni @ 2013-08-12 18:01 UTC (permalink / raw)
  To: buildroot

Dear David Skok,

Please always keep the Buildroot mailing list Cc'ed when continuing
discussions that started on the list.

On Mon, 12 Aug 2013 08:26:57 -0400, David Skok wrote:

> I've made the changes you point out.  My apologies but I don't know
> what you mean by "patch is not wrapped" and is (is not?) proper
> format.

What I meant is that your latest patch was perfect.

Often, when people send patches with their normal e-mail client, most
e-mail clients tend to "wrap" lines at 80 characters or so: instead of
having very very long lines, you have lines nicely wrapped at a
reasonable length.

However, while this is very useful when exchanging text, it falls apart
when exchanging patches, because the wrapping feature of the e-mail
clients breaks the patches and they can no longer be applied.

By using 'git send-email' (as you did), you make sure that your e-mail
client will not interfere with how the patch is sent, and specifically
that it doesn't get wrapped.

> I use git command line outlined in buildroot manual to send
> it.  I am new to contributing to open source and am doing my best to
> learn compliance for contribution.  Thank you for your patience so
> far.
> 
> Regarding the compile problem.  I have worked with the maintainer
> previously while I was testing package to correct compile issues.  I
> also test result with success.  The external compiler I used at the
> time was linaro 2013.01 which was option in buildroot for ARM A8 then.
>  I will verify error with configuration you report and find a solution
> asap.

I must say I haven't tested with a Linaro toolchain, which is glibc
based, and I only tested with an uClibc based toolchain. However,
seeing the message, I don't really suspect a glibc vs. uClibc
difference.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/1] ola: new package
  2013-08-07 13:10 Dave Skok
@ 2013-08-10 17:13 ` Thomas Petazzoni
       [not found]   ` <CALy4uEXhixrLNKzrRVsdYqCeNer6XPB_kXKwJepH8Pnh9+M+mA@mail.gmail.com>
  0 siblings, 1 reply; 16+ messages in thread
From: Thomas Petazzoni @ 2013-08-10 17:13 UTC (permalink / raw)
  To: buildroot

Dear Dave Skok,

Thanks for this patch! It is not sent properly, isn't wrapped, and has
the proper format. So I tried it, but found a few issues.

On Wed,  7 Aug 2013 09:10:32 -0400, Dave Skok wrote:

> +config BR2_PACKAGE_OLA
> +	bool "open lighting architecture"
> +	select BR2_PACKAGE_PROTOBUF
> +	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
> +	select BR2_PACKAGE_UTIL_LINUX
> +	depends on BR2_INSTALL_LIBSTDCPP # protobuf
> +	depends on BR2_LARGEFILE # util-linux
> +	depends on BR2_USE_WCHAR # util-linux

You should also:

	depends on BR2_TOOLCHAIN_HAS_THREADS

> +	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++, largefile and wchar support"
> +	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_USE_WCHAR

and change this to mention the need for thread support. Without thread
support, OLA fails to build as it tries to include <pthread.h>.

Then, the most annoying issue I had was that the very basic
configuration of OLA (just enable OLA and leave all the sub-options to
the default) doesn't build here:

OlaServer.cpp: In member function 'void ola::OlaServer::UpdatePidStore(const ola::rdm::RootPidStore*)':
OlaServer.cpp:467:14: error: request for member 'SetPidStore' in '*((ola::OlaServer*)this)->ola::OlaServer::m_httpd.std::auto_ptr<_Tp>::operator-><int>()', which is of non-class type 'std::auto_ptr<int>::element_type {aka int}'

I'm really bad at C++, but it looks like SetPidStore() is a method that
only exists when the HTTP server of OLA is enabled, or something like that.

> --- /dev/null
> +++ b/package/ola/ola.mk
> @@ -0,0 +1,155 @@
> +################################################################################
> +#
> +# ola
> +#
> +################################################################################
> +
> +OLA_VERSION = 0.8.30
> +OLA_SITE = https://code.google.com/p/open-lighting/
> +OLA_SITE_METHOD = git
> +
> +# autoreconf required for source pulled from git repo
> +# as it does not track configuration
> +OLA_AUTORECONF = YES
> +OLA_LICENSE = LGPLv2.1+
> +OLA_LICENSE_FILES = LICENSE COPYING.LGPLv2.1

These license informations are not correct. They should be:

OLA_LICENSE = LGPLv2.1+ (libola, libolacommon, Python bindings), GPLv2+ (libolaserver, olad, Python examples and tests)
OLA_LICENSE_FILES = LICENCE GPL LGPL

Also, I believe you should add:

OLA_INSTALL_STAGING = YES

because it installs some clients libraries to talk to the 'olad'
daemon, and those libraries can be useful to link other programs.

I could have fixed those myself, but I've stopped due to the build
failure.

Here is the minimal defconfig that I used to exhibit the build problem:

BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-arm-full-2013.05-1.tar.bz2"
BR2_TOOLCHAIN_EXTERNAL_LARGEFILE=y
BR2_TOOLCHAIN_EXTERNAL_INET_IPV6=y
BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
# BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set
BR2_TOOLCHAIN_EXTERNAL_INET_RPC=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_INIT_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_OLA=y

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/1] ola: new package
@ 2013-08-07 13:10 Dave Skok
  2013-08-10 17:13 ` Thomas Petazzoni
  0 siblings, 1 reply; 16+ messages in thread
From: Dave Skok @ 2013-08-07 13:10 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Dave Skok <blanco.ether@gmail.com>
---
 package/Config.in     |   1 +
 package/ola/Config.in | 143 ++++++++++++++++++++++++++++++++++++++++++++++
 package/ola/ola.mk    | 155 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 299 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..fb52411 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -277,6 +277,7 @@ source "package/minicom/Config.in"
 source "package/nanocom/Config.in"
 source "package/neard/Config.in"
 source "package/ofono/Config.in"
+source "package/ola/Config.in"
 source "package/on2-8170-modules/Config.in"
 source "package/open2300/Config.in"
 source "package/openocd/Config.in"
diff --git a/package/ola/Config.in b/package/ola/Config.in
new file mode 100644
index 0000000..2acbd87
--- /dev/null
+++ b/package/ola/Config.in
@@ -0,0 +1,143 @@
+config BR2_PACKAGE_OLA
+	bool "open lighting architecture"
+	select BR2_PACKAGE_PROTOBUF
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+	select BR2_PACKAGE_UTIL_LINUX
+	depends on BR2_INSTALL_LIBSTDCPP # protobuf
+	depends on BR2_LARGEFILE # util-linux
+	depends on BR2_USE_WCHAR # util-linux
+	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++, largefile and wchar support"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_USE_WCHAR
+
+if BR2_PACKAGE_OLA
+
+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_PYTHON_BINDINGS
+	bool "python bindings"
+	select BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON_PROTOBUF
+	depends on BR2_USE_MMU
+	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.
+
+comment "USB driver required for stageprofi and usbpro plugin"
+	depends on !BR2_PACKAGE_LIBFTDI && !BR2_PACKAGE_LIBUSB
+
+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..cfd1c26
--- /dev/null
+++ b/package/ola/ola.mk
@@ -0,0 +1,155 @@
+################################################################################
+#
+# ola
+#
+################################################################################
+
+OLA_VERSION = 0.8.30
+OLA_SITE = https://code.google.com/p/open-lighting/
+OLA_SITE_METHOD = git
+
+# autoreconf required for source pulled from git repo
+# as it does not track configuration
+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 = \
+	--disable-gcov \
+	--disable-tcmalloc \
+	--disable-unittests \
+	--disable-root-check \
+	--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_PYTHON_BINDINGS),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))
-- 
1.8.3.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2013-09-12 21:03 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-15 17:04 [Buildroot] [PATCH 1/1] ola: new package Dave Skok
2013-08-22  8:25 ` Thomas De Schampheleire
2013-08-26 12:36   ` David Skok
  -- strict thread matches above, loose matches on Subject: below --
2013-08-28 11:50 Dave Skok
2013-09-12 21:03 ` Peter Korsgaard
2013-08-26 14:02 Dave Skok
2013-08-27  8:04 ` Thomas De Schampheleire
2013-08-27 16:57 ` Arnout Vandecappelle
2013-08-28 11:51   ` David Skok
2013-08-12 18:05 Dave Skok
2013-08-13 22:32 ` Thomas Petazzoni
2013-08-14  0:51   ` Blanco
2013-08-07 13:10 Dave Skok
2013-08-10 17:13 ` Thomas Petazzoni
     [not found]   ` <CALy4uEXhixrLNKzrRVsdYqCeNer6XPB_kXKwJepH8Pnh9+M+mA@mail.gmail.com>
2013-08-12 18:01     ` Thomas Petazzoni
2013-08-12 18:36       ` David Skok

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.