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_LICENSE
:=LGPL-2.1
+
28 HOST_BUILD_DEPENDS
:=protobuf
/host
29 PKG_BUILD_DEPENDS
:=ola
/host
31 include $(INCLUDE_DIR
)/host-build.mk
32 include $(INCLUDE_DIR
)/package.mk
37 TITLE
:=Open Lighting Architecture Daemon
38 URL
:=https
://www.openlighting.org
/
39 MAINTAINER
:=Christian Beier
<dontmind@freeshell.org
>
40 DEPENDS
:=+protobuf
+libusb-1.0
+libuuid
+libstdcpp
+libpthread
+librt
+zlib
+libncurses
+sudo
43 define Package
/ola
/description
44 OLA
(Open Lighting Architecture
) is a framework that allows applications to
45 send and receive DMX512
, using various hardware devices and
'DMX over IP'
46 protocols. It enables software controllers talk to DMX hardware.
50 --disable-dependency-tracking \
52 --disable-fatal-warnings \
55 --with-ola-protoc-plugin
=$(HOST_BUILD_DIR
)/protoc
/ola_protoc_plugin
57 HOST_CONFIGURE_ARGS
+= \
58 --disable-all-plugins \
67 --disable-doxygen-html \
70 # only build the ola_protoc thingy
72 cd
$(HOST_BUILD_DIR
); \
73 $(MAKE
) protoc
/ola_protoc_plugin
76 # nothing to install for host part
81 define Build
/InstallDev
82 $(INSTALL_DIR
) $(1)/usr
/include
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ola
$(1)/usr
/include/
84 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/olad
$(1)/usr
/include/
86 $(INSTALL_DIR
) $(1)/usr
/lib
87 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
90 define Package
/ola
/install
91 $(INSTALL_DIR
) $(1)/usr
/bin
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
94 $(INSTALL_DIR
) $(1)/usr
/lib
95 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
97 $(INSTALL_DIR
) $(1)/etc
/init.d
98 $(INSTALL_BIN
) .
/files
/olad.init
$(1)/etc
/init.d
/olad
100 $(INSTALL_DIR
) $(1)/usr
/share
/ola
/pids
101 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/ola
/pids
/* $(1)/usr
/share
/ola
/pids
104 define Package
/ola
/postinst
107 # make sure the conf dir exists and is writeable by the group olad uses
108 mkdir
-p
$${IPKG_INSTROOT}/etc
/ola
109 chgrp nogroup
$${IPKG_INSTROOT}/etc
/ola
110 chmod
775 $${IPKG_INSTROOT}/etc
/ola
113 $(eval
$(call HostBuild
))
114 $(eval
$(call BuildPackage
,ola
))