2 # Copyright (C) 2006-2015 OpenWrt.org
3 # Copyright (C) 2015 Christian Beier <dontmind@freeshell.org>
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
16 PKG_SOURCE_URL
:=https
://github.com
/OpenLightingProject
/ola.git
17 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_VERSION
:=5b86f5802e2e5b23c6a010dc8d10788e6dc57614
19 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
20 PKG_MIRROR_HASH
:=626ebac2f68ea368c5886f12364d32d34fa59d1cd3b870bacedcca74f968e74c
21 PKG_LICENSE
:=LGPL-2.1
+
29 HOST_BUILD_DEPENDS
:=protobuf
/host
30 PKG_BUILD_DEPENDS
:=ola
/host
32 include $(INCLUDE_DIR
)/host-build.mk
33 include $(INCLUDE_DIR
)/package.mk
38 TITLE
:=Open Lighting Architecture Daemon
39 URL
:=https
://www.openlighting.org
/
40 MAINTAINER
:=Christian Beier
<dontmind@freeshell.org
>
41 DEPENDS
:=+protobuf
+libusb-1.0
+libuuid
+libstdcpp
+libpthread
+librt
+zlib
+libncurses
+liblo
+sudo
44 define Package
/ola
/description
45 OLA
(Open Lighting Architecture
) is a framework that allows applications to
46 send and receive DMX512
, using various hardware devices and
'DMX over IP'
47 protocols. It enables software controllers talk to DMX hardware.
51 --disable-dependency-tracking \
53 --disable-fatal-warnings \
57 --with-ola-protoc-plugin
=$(HOST_BUILD_DIR
)/protoc
/ola_protoc_plugin
59 HOST_CONFIGURE_ARGS
+= \
60 --disable-all-plugins \
69 --disable-doxygen-html \
72 # only build the ola_protoc thingy
74 cd
$(HOST_BUILD_DIR
); \
75 $(MAKE
) protoc
/ola_protoc_plugin
78 # nothing to install for host part
83 define Build
/InstallDev
84 $(INSTALL_DIR
) $(1)/usr
/include
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ola
$(1)/usr
/include/
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/olad
$(1)/usr
/include/
88 $(INSTALL_DIR
) $(1)/usr
/lib
89 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
92 define Package
/ola
/install
93 $(INSTALL_DIR
) $(1)/usr
/bin
94 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
96 $(INSTALL_DIR
) $(1)/usr
/lib
97 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
99 $(INSTALL_DIR
) $(1)/etc
/init.d
100 $(INSTALL_BIN
) .
/files
/olad.init
$(1)/etc
/init.d
/olad
102 $(INSTALL_DIR
) $(1)/usr
/share
/ola
/pids
103 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/ola
/pids
/* $(1)/usr
/share
/ola
/pids
106 define Package
/ola
/postinst
109 # make sure the conf dir exists and is writeable by the group olad uses
110 mkdir
-p
$${IPKG_INSTROOT}/etc
/ola
111 chgrp nogroup
$${IPKG_INSTROOT}/etc
/ola
112 chmod
775 $${IPKG_INSTROOT}/etc
/ola
115 $(eval
$(call HostBuild
))
116 $(eval
$(call BuildPackage
,ola
))