From patchwork Thu Aug 15 17:04:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Skok X-Patchwork-Id: 267409 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id F27E72C0165 for ; Fri, 16 Aug 2013 03:04:38 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4018F921E0; Thu, 15 Aug 2013 17:04:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yZCCPcceAl4o; Thu, 15 Aug 2013 17:04:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7806A8C0A0; Thu, 15 Aug 2013 17:04:37 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 794D91BFA16 for ; Thu, 15 Aug 2013 17:05:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 670D38F070 for ; Thu, 15 Aug 2013 17:04:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AlcFwh03mSuF for ; Thu, 15 Aug 2013 17:04:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qc0-f174.google.com (mail-qc0-f174.google.com [209.85.216.174]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5C0268F06F for ; Thu, 15 Aug 2013 17:04:35 +0000 (UTC) Received: by mail-qc0-f174.google.com with SMTP id c1so521785qcz.19 for ; Thu, 15 Aug 2013 10:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=X71M/rUIVsBVX4kMYEQ5XOZhnLzfkBuTNc0saNPa7GU=; b=Na9+oTrUAQ80lA3sKam22AVd45eBln9spc9ZSLYQcSNwrFPC0+i+QkZemUsX+zH4pP 9JOJfZtZrK4B6fdHMTF2v5bm+yzhhjzigInbyvDxYYymYProHEQBRZtXN3zi97syVk9L y4sDmjYgUpPlNs7ouQfR6gYkvXwQ3hifGEfyW2AboXttNAlWLpjFBOY+FTEy7TdV9Tj1 GxniL6NGlGOloDKv6lOxG5NPb1UtlEFeewnG8G6ivENvd8VzPXMxnoyT6h3vp9qCQFTY GahCF1X325fl0SnE6MbM9In9TTquaNijqcfBrGMzhqoBtiIt98BSbqekEHf/8HtHUhrQ 3jvQ== X-Received: by 10.224.4.135 with SMTP id 7mr20373357qar.19.1376586274356; Thu, 15 Aug 2013 10:04:34 -0700 (PDT) Received: from localhost.localdomain (lhelect03.l.subnet.rcn.com. [208.58.52.234]) by mx.google.com with ESMTPSA id m8sm35385521qay.0.2013.08.15.10.04.33 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Aug 2013 10:04:33 -0700 (PDT) From: Dave Skok To: buildroot@busybox.net Date: Thu, 15 Aug 2013 13:04:28 -0400 Message-Id: <1376586268-14586-1-git-send-email-blanco.ether@gmail.com> X-Mailer: git-send-email 1.8.3.4 Cc: Dave Skok Subject: [Buildroot] [PATCH 1/1] ola: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Dave Skok --- 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))