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.

76 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2008-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. ### Remarks
  8. ### 'python pascal ruby lua' need to be deleted in src/clients/Makefile.am
  9. include $(TOPDIR)/rules.mk
  10. PKG_NAME:=knxd
  11. PKG_VERSION:=0.14.25
  12. PKG_RELEASE:=1
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://codeload.github.com/knxd/knxd/tar.gz/v$(PKG_VERSION)?
  15. PKG_HASH:=c9b7d97328da1682bcae1330163e56e1ea2fba0b85de769feb6f5b7aff925a83
  16. PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
  17. PKG_LICENSE:=GPL-2.0+
  18. PKG_LICENSE_FILES:=LICENSE
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_BUILD_DEPENDS:=argp-standalone
  21. PKG_FIXUP:=autoreconf
  22. PKG_INSTALL:=1
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/knxd
  25. SECTION:=net
  26. CATEGORY:=Network
  27. TITLE:=EIB KNX daemon
  28. DEPENDS:=+libusb-1.0 +libstdcpp +libev +libfmt
  29. endef
  30. define Package/knxd/description
  31. EIB KNX Daemon
  32. endef
  33. define Package/knxd/conffiles
  34. /etc/knxd.ini
  35. /etc/config/knxd
  36. endef
  37. TARGET_CXXFLAGS+= -std=c++0x
  38. TARGET_CXX=$(TARGET_CC)
  39. CONFIGURE_ARGS+= \
  40. --disable-systemd
  41. EXTRA_LDFLAGS+= \
  42. -largp -lstdc++
  43. define Package/knxd/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libeibclient.so* $(1)/usr/lib/
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/knxd_args $(1)/usr/lib/
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/knxd/eibwrite-cgi $(1)/usr/bin/
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/knxd/eibread-cgi $(1)/usr/bin/
  51. $(INSTALL_DIR) $(1)/etc/init.d
  52. $(INSTALL_BIN) ./files/knxd.init $(1)/etc/init.d/knxd
  53. $(INSTALL_DIR) $(1)/etc/config
  54. $(INSTALL_DATA) ./files/knxd.ini $(1)/etc/knxd.ini
  55. $(INSTALL_DATA) ./files/knxd.config $(1)/etc/config/knxd
  56. endef
  57. $(eval $(call BuildPackage,knxd))