2 # Copyright (C) 2006-2011 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
:=d949ab88ab2c12d4d94b50a0a0df633d634f08fd
19 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
20 PKG_LICENSE
:=LGPL-2.1
+
28 PKG_BUILD_DEPENDS
:=protobuf
/host ola
/host
30 include $(INCLUDE_DIR
)/package.mk
36 TITLE
:=Open Lighting Architecture Daemon
37 URL
:=https
://www.openlighting.org
/
38 MAINTAINER
:=Christian Beier
<dontmind@freeshell.org
>
39 DEPENDS
:=+protobuf
+libusb-1.0
+libuuid
+libstdcpp
+libpthread
+librt
+zlib
+libncurses
+sudo
42 define Package
/ola
/description
43 OLA
(Open Lighting Architecture
) is a framework that allows applications to
44 send and receive DMX512
, using various hardware devices and
'DMX over IP'
45 protocols. It enables software controllers talk to DMX hardware.
49 include $(INCLUDE_DIR
)/host-build.mk
51 # When building the host part, disable as much as possible to speed up
52 # the configure step and avoid missing host dependencies.
53 # Stolen from http://git.buildroot.net/buildroot/commit/?id=66056a5179ef49f2ec10ba5d7fbd1a58863d1350
55 $(call Host
/Configure
/Default
,\
56 --disable-all-plugins \
65 --disable-doxygen-html \
66 --disable-doxygen-doc
)
69 # only build the ola_protoc thingy
71 cd
$(HOST_BUILD_DIR
); \
72 $(MAKE
) protoc
/ola_protoc
75 # only need ola_protoc
77 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
78 $(CP
) $(HOST_BUILD_DIR
)/protoc
/ola_protoc
$(STAGING_DIR_HOST
)/bin
/
81 $(eval
$(call HostBuild
))
85 define Build
/Configure
86 $(call Build
/Configure
/Default
,\
87 --disable-dependency-tracking \
89 --disable-fatal-warnings \
92 --with-ola-protoc
=$(STAGING_DIR_HOST
)/bin
/ola_protoc
)
96 define Build
/InstallDev
97 mkdir
-p
$(1)/usr
/include
98 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ola
$(1)/usr
/include/
99 mkdir
-p
$(1)/usr
/include
100 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/olad
$(1)/usr
/include/
101 mkdir
-p
$(1)/usr
/lib
102 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
105 define Package
/ola
/install
106 $(INSTALL_DIR
) $(1)/usr
/bin
107 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
108 $(INSTALL_DIR
) $(1)/usr
/lib
109 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
110 $(INSTALL_DIR
) $(1)/etc
/init.d
111 $(INSTALL_BIN
) .
/files
/olad.init
$(1)/etc
/init.d
/olad
112 $(INSTALL_DIR
) $(1)/usr
/share
/ola
/pids
113 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/ola
/pids
/* $(1)/usr
/share
/ola
/pids
116 define Package
/ola
/postinst
119 # make sure the conf dir exists and is writeable by the group olad uses
121 chgrp nogroup
/etc
/ola
122 chmod
775 $(1)/etc
/ola
128 $(eval
$(call BuildPackage
,ola
))