2015-01-20 12:11:48 +01:00
|
|
|
#
|
2015-07-01 17:27:17 +02:00
|
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
2017-12-15 18:23:18 +01:00
|
|
|
# Copyright (C) 2015-2017 Christian Beier <dontmind@freeshell.org>
|
2015-01-20 12:11:48 +01:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ola
|
2024-04-08 05:59:42 +02:00
|
|
|
PKG_VERSION:=0.10.9
|
|
|
|
PKG_RELEASE:=1
|
2018-08-05 04:32:27 +02:00
|
|
|
|
2024-04-08 05:59:42 +02:00
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_VERSION:=$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_URL:=https://github.com/OpenLightingProject/ola
|
|
|
|
PKG_MIRROR_HASH:=55b9c82dec4133c3895a9af99a3245764ece14fc5b0a4e0841686903b1d6f365
|
2018-08-05 04:32:27 +02:00
|
|
|
|
2019-09-24 00:23:41 +02:00
|
|
|
PKG_MAINTAINER:=Christian Beier <dontmind@freeshell.org>
|
2019-09-02 15:15:08 +02:00
|
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
2019-09-24 00:23:41 +02:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2015-01-20 12:11:48 +01:00
|
|
|
|
2019-09-24 00:23:41 +02:00
|
|
|
PKG_FIXUP:=autoreconf
|
2018-08-05 04:32:27 +02:00
|
|
|
PKG_INSTALL:=1
|
2015-01-20 12:11:48 +01:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2023-03-23 08:39:01 +01:00
|
|
|
PKG_BUILD_FLAGS:=no-mips16
|
2015-01-20 12:11:48 +01:00
|
|
|
|
2015-07-01 17:27:17 +02:00
|
|
|
HOST_BUILD_DEPENDS:=protobuf/host
|
|
|
|
PKG_BUILD_DEPENDS:=ola/host
|
2015-01-20 12:11:48 +01:00
|
|
|
|
2015-07-01 17:27:17 +02:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2015-01-20 12:11:48 +01:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/ola
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=Open Lighting Architecture Daemon
|
|
|
|
URL:=https://www.openlighting.org/
|
2018-09-30 23:08:05 +02:00
|
|
|
DEPENDS:=+protobuf +libftdi1 +libusb-1.0 +libuuid +libstdcpp +libpthread +librt +zlib +libncurses +liblo +libmicrohttpd
|
2015-01-20 12:11:48 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ola/description
|
2015-07-01 17:27:17 +02:00
|
|
|
OLA (Open Lighting Architecture) is a framework that allows applications to
|
2015-01-20 12:11:48 +01:00
|
|
|
send and receive DMX512, using various hardware devices and 'DMX over IP'
|
|
|
|
protocols. It enables software controllers talk to DMX hardware.
|
|
|
|
endef
|
|
|
|
|
2015-07-01 17:27:17 +02:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
--disable-static \
|
|
|
|
--disable-fatal-warnings \
|
|
|
|
--disable-unittests \
|
2016-03-17 19:18:36 +01:00
|
|
|
--without-dns-sd \
|
2019-09-24 00:23:41 +02:00
|
|
|
--with-ola-protoc-plugin="$(STAGING_DIR_HOSTPKG)/bin/ola_protoc_plugin"
|
2015-01-20 12:11:48 +01:00
|
|
|
|
2015-07-01 17:27:17 +02:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
2015-01-20 12:11:48 +01:00
|
|
|
--disable-all-plugins \
|
|
|
|
--disable-osc \
|
|
|
|
--disable-uart \
|
|
|
|
--disable-libusb \
|
|
|
|
--disable-http \
|
|
|
|
--disable-examples \
|
|
|
|
--disable-unittests \
|
|
|
|
--disable-doxygen-html \
|
2024-04-08 05:59:42 +02:00
|
|
|
--disable-doxygen-doc \
|
|
|
|
--with-protoc=$(STAGING_DIR_HOSTPKG)/bin/protoc
|
2019-09-30 02:52:40 +02:00
|
|
|
|
2015-01-20 12:11:48 +01:00
|
|
|
# only build the ola_protoc thingy
|
|
|
|
define Host/Compile
|
|
|
|
cd $(HOST_BUILD_DIR); \
|
2015-07-01 17:27:17 +02:00
|
|
|
$(MAKE) protoc/ola_protoc_plugin
|
2015-01-20 12:11:48 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
2018-06-21 11:55:02 +02:00
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin
|
|
|
|
$(CP) $(HOST_BUILD_DIR)/protoc/ola_protoc_plugin $(STAGING_DIR_HOSTPKG)/bin
|
2015-01-20 12:11:48 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2015-07-01 17:27:17 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2015-01-20 12:11:48 +01:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/ola $(1)/usr/include/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/olad $(1)/usr/include/
|
2015-07-01 17:27:17 +02:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2015-01-20 12:11:48 +01:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ola/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
|
2015-07-01 17:27:17 +02:00
|
|
|
|
2015-01-20 12:11:48 +01:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
|
2015-07-01 17:27:17 +02:00
|
|
|
|
2015-01-20 12:11:48 +01:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/olad.init $(1)/etc/init.d/olad
|
2015-07-01 17:27:17 +02:00
|
|
|
|
2015-01-20 12:11:48 +01:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/ola/pids
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/ola/pids/* $(1)/usr/share/ola/pids
|
2018-06-21 11:55:02 +02:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/olad/www
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/olad/www/* $(1)/usr/share/olad/www
|
2015-01-20 12:11:48 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ola/postinst
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# make sure the conf dir exists and is writeable by the group olad uses
|
2015-07-01 17:27:17 +02:00
|
|
|
mkdir -p $${IPKG_INSTROOT}/etc/ola
|
|
|
|
chgrp nogroup $${IPKG_INSTROOT}/etc/ola
|
|
|
|
chmod 775 $${IPKG_INSTROOT}/etc/ola
|
2015-01-20 12:11:48 +01:00
|
|
|
endef
|
|
|
|
|
2015-07-01 17:27:17 +02:00
|
|
|
$(eval $(call HostBuild))
|
2015-01-20 12:11:48 +01:00
|
|
|
$(eval $(call BuildPackage,ola))
|