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.

78 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.18
  12. PKG_RELEASE:=1
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE_URL:=https://github.com/knxd/knxd.git
  15. PKG_SOURCE_VERSION:=5e707fdb7430009a299d3ad849aecf9ccbc8fdf6
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)
  17. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
  18. PKG_MIRROR_HASH:=96d5dd7b1513ccf871aed2bdd2601ca2a2f2d1005462fb1c631e5683e2e86e4e
  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
  33. endef
  34. define Package/knxd/description
  35. EIB KNX Daemon
  36. endef
  37. define Package/knxd/conffiles
  38. /etc/config/knxd.ini
  39. endef
  40. TARGET_CXXFLAGS+= -std=c++0x
  41. TARGET_CXX=$(TARGET_CC)
  42. CONFIGURE_ARGS+= \
  43. --disable-systemd
  44. EXTRA_LDFLAGS+= \
  45. -largp -lstdc++
  46. define Package/knxd/install
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libeibclient.so* $(1)/usr/lib/
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/knxd_args $(1)/usr/lib/
  50. $(INSTALL_DIR) $(1)/usr/bin
  51. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/knxd/eibwrite-cgi $(1)/usr/bin/
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/knxd/eibread-cgi $(1)/usr/bin/
  54. $(INSTALL_DIR) $(1)/etc/init.d
  55. $(INSTALL_BIN) ./files/knxd.init $(1)/etc/init.d/knxd
  56. $(INSTALL_DIR) $(1)/etc/config
  57. $(INSTALL_DATA) ./files/knxd.ini $(1)/etc/config/knxd.ini
  58. endef
  59. $(eval $(call BuildPackage,knxd))