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.

80 lines
1.9 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.24
  12. PKG_RELEASE:=2
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE_URL:=https://github.com/knxd/knxd.git
  15. PKG_SOURCE_VERSION:=d29f7047a8b20a7ac57c3c9ad349c12be60f9fee
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)
  17. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
  18. PKG_MIRROR_HASH:=07857ce8c7c8be965b1baf81566671ab89c3ae8bbcd8f1fe05df0c38a4465664
  19. PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
  20. PKG_LICENSE:=GPL-2.0+
  21. PKG_LICENSE_FILES:=LICENSE
  22. PKG_BUILD_PARALLEL:=1
  23. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
  24. PKG_BUILD_DEPENDS:=argp-standalone
  25. PKG_FIXUP:=autoreconf
  26. PKG_INSTALL:=1
  27. include $(INCLUDE_DIR)/package.mk
  28. define Package/knxd
  29. SECTION:=net
  30. CATEGORY:=Network
  31. TITLE:=EIB KNX daemon
  32. DEPENDS:=+libusb-1.0 +libstdcpp +libev +libfmt
  33. endef
  34. define Package/knxd/description
  35. EIB KNX Daemon
  36. endef
  37. define Package/knxd/conffiles
  38. /etc/knxd.ini
  39. /etc/config/knxd
  40. endef
  41. TARGET_CXXFLAGS+= -std=c++0x
  42. TARGET_CXX=$(TARGET_CC)
  43. CONFIGURE_ARGS+= \
  44. --disable-systemd
  45. EXTRA_LDFLAGS+= \
  46. -largp -lstdc++
  47. define Package/knxd/install
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libeibclient.so* $(1)/usr/lib/
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/knxd_args $(1)/usr/lib/
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/knxd/eibwrite-cgi $(1)/usr/bin/
  54. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/knxd/eibread-cgi $(1)/usr/bin/
  55. $(INSTALL_DIR) $(1)/etc/init.d
  56. $(INSTALL_BIN) ./files/knxd.init $(1)/etc/init.d/knxd
  57. $(INSTALL_DIR) $(1)/etc/config
  58. $(INSTALL_DATA) ./files/knxd.ini $(1)/etc/knxd.ini
  59. $(INSTALL_DATA) ./files/knxd.config $(1)/etc/config/knxd
  60. endef
  61. $(eval $(call BuildPackage,knxd))