You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
3.0 KiB

  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. # Copyright (C) 2015-2017 Christian Beier <dontmind@freeshell.org>
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=ola
  10. PKG_VERSION:=0.10.5
  11. PKG_RELEASE:=2
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/OpenLightingProject/ola.git
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_VERSION:=32db3c49d435398d017c6b5c0b25e02a7a831f5c
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  17. PKG_MIRROR_HASH:=11ed6540bd667c1662d91de93a260a9a63a98725851f768647e2b9b2efe1ae34
  18. PKG_LICENSE:=LGPL-2.1+
  19. PKG_FIXUP:=libtool
  20. PKG_INSTALL:=1
  21. PKG_BUILD_PARALLEL:=1
  22. PKG_USE_MIPS16:=0
  23. HOST_BUILD_DEPENDS:=protobuf/host
  24. PKG_BUILD_DEPENDS:=ola/host
  25. include $(INCLUDE_DIR)/host-build.mk
  26. include $(INCLUDE_DIR)/package.mk
  27. define Package/ola
  28. SECTION:=net
  29. CATEGORY:=Network
  30. TITLE:=Open Lighting Architecture Daemon
  31. URL:=https://www.openlighting.org/
  32. MAINTAINER:=Christian Beier <dontmind@freeshell.org>
  33. DEPENDS:=+protobuf +libusb-1.0 +libuuid +libstdcpp +libpthread +librt +zlib +libncurses +liblo
  34. endef
  35. define Package/ola/description
  36. OLA (Open Lighting Architecture) is a framework that allows applications to
  37. send and receive DMX512, using various hardware devices and 'DMX over IP'
  38. protocols. It enables software controllers talk to DMX hardware.
  39. endef
  40. CONFIGURE_ARGS += \
  41. --disable-dependency-tracking \
  42. --disable-static \
  43. --disable-fatal-warnings \
  44. --disable-unittests \
  45. --disable-http \
  46. --without-dns-sd \
  47. --with-ola-protoc-plugin=$(HOST_BUILD_DIR)/protoc/ola_protoc_plugin
  48. HOST_CONFIGURE_ARGS += \
  49. --disable-all-plugins \
  50. --disable-slp \
  51. --disable-osc \
  52. --disable-uart \
  53. --disable-libusb \
  54. --disable-libftdi \
  55. --disable-http \
  56. --disable-examples \
  57. --disable-unittests \
  58. --disable-doxygen-html \
  59. --disable-doxygen-doc
  60. # only build the ola_protoc thingy
  61. define Host/Compile
  62. cd $(HOST_BUILD_DIR); \
  63. $(MAKE) protoc/ola_protoc_plugin
  64. endef
  65. # nothing to install for host part
  66. define Host/Install
  67. endef
  68. define Build/InstallDev
  69. $(INSTALL_DIR) $(1)/usr/include
  70. $(CP) $(PKG_INSTALL_DIR)/usr/include/ola $(1)/usr/include/
  71. $(CP) $(PKG_INSTALL_DIR)/usr/include/olad $(1)/usr/include/
  72. $(INSTALL_DIR) $(1)/usr/lib
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  74. endef
  75. define Package/ola/install
  76. $(INSTALL_DIR) $(1)/usr/bin
  77. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
  78. $(INSTALL_DIR) $(1)/usr/lib
  79. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
  80. $(INSTALL_DIR) $(1)/etc/init.d
  81. $(INSTALL_BIN) ./files/olad.init $(1)/etc/init.d/olad
  82. $(INSTALL_DIR) $(1)/usr/share/ola/pids
  83. $(CP) $(PKG_INSTALL_DIR)/usr/share/ola/pids/* $(1)/usr/share/ola/pids
  84. endef
  85. define Package/ola/postinst
  86. #!/bin/sh
  87. # make sure the conf dir exists and is writeable by the group olad uses
  88. mkdir -p $${IPKG_INSTROOT}/etc/ola
  89. chgrp nogroup $${IPKG_INSTROOT}/etc/ola
  90. chmod 775 $${IPKG_INSTROOT}/etc/ola
  91. endef
  92. $(eval $(call HostBuild))
  93. $(eval $(call BuildPackage,ola))