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.

152 lines
4.6 KiB

  1. #
  2. # Copyright (C) 2008-2015 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=2015-03-06-$(PKG_SOURCE_VERSION)
  12. PKG_RELEASE:=1
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE_URL:=https://github.com/knxd/knxd.git
  15. PKG_SOURCE_VERSION:=a63bc660d305e26ce3ed038607d387758fad8413
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
  17. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
  18. PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
  19. PKG_LICENSE:=GPL-2.0+
  20. PKG_LICENSE_FILES:=LICENSE
  21. PKG_BUILD_PARALLEL:=1
  22. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
  23. PKG_FIXUP:=autoreconf
  24. PKG_INSTALL:=1
  25. include $(INCLUDE_DIR)/package.mk
  26. define Package/knxd
  27. SECTION:=net
  28. CATEGORY:=Network
  29. TITLE:=EIB KNX daemon
  30. DEPENDS:=+pthsem +libusb-1.0
  31. endef
  32. define Package/knxd/description
  33. EIB KNX Daemon
  34. endef
  35. define Package/knxd/conffiles
  36. /etc/config/knxd
  37. endef
  38. define Package/libeibclient
  39. SECTION:=libs
  40. CATEGORY:=Libraries
  41. TITLE:=Library for EIB clients
  42. DEPENDS:=+pthsem
  43. endef
  44. define Package/knxd-tools/description
  45. EIB KNX client library
  46. endef
  47. define Package/knxd-tools
  48. SECTION:=net
  49. CATEGORY:=Network
  50. TITLE:=EIB KNX Utils
  51. DEPENDS:=+libeibclient
  52. endef
  53. define Package/knxd-tools/description
  54. EIB KNX Tools
  55. endef
  56. CONFIGURE_ARGS+= \
  57. --disable-ft12 \
  58. --enable-eibnetip \
  59. --enable-eibnetiptunnel \
  60. --enable-eibnetipserver \
  61. --enable-usb \
  62. --enable-tpuart \
  63. --enable-tpuarts \
  64. --disable-pei16 \
  65. --disable-pei16s \
  66. --enable-groupcache \
  67. --without-pth-test \
  68. --without-libstdc
  69. TARGET_CFLAGS+= \
  70. $(FPIC) \
  71. -fno-builtin -nodefaultlibs -lc -lm -lgcc -largp -lpthsem
  72. define Build/InstallDev
  73. $(INSTALL_DIR) $(1)/usr/include
  74. $(CP) $(PKG_INSTALL_DIR)/usr/include/eib*.h $(1)/usr/include/
  75. $(INSTALL_DIR) $(1)/usr/lib
  76. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libeibclient.{a,so*} $(1)/usr/lib/
  77. endef
  78. define Package/knxd/install
  79. $(INSTALL_DIR) $(1)/usr/bin
  80. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  81. $(INSTALL_DIR) $(1)/etc/init.d
  82. $(INSTALL_BIN) ./files/knxd.init $(1)/etc/init.d/knxd
  83. $(INSTALL_DIR) $(1)/etc/config
  84. $(INSTALL_DATA) ./files/knxd.config $(1)/etc/config/knxd
  85. endef
  86. define Package/libeibclient/install
  87. $(INSTALL_DIR) $(1)/usr/lib
  88. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libeibclient.so* $(1)/usr/lib/
  89. endef
  90. define Package/knxd-tools/install
  91. $(INSTALL_DIR) $(1)/usr/bin
  92. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/knxtool $(1)/usr/bin/
  93. ln -sf knxtool $(1)/usr/bin/knxread
  94. ln -sf knxtool $(1)/usr/bin/knxreadtemp
  95. ln -sf knxtool $(1)/usr/bin/knxwrite
  96. ln -sf knxtool $(1)/usr/bin/knxlog
  97. ln -sf knxtool $(1)/usr/bin/knxon
  98. ln -sf knxtool $(1)/usr/bin/knxoff
  99. ln -sf knxtool $(1)/usr/bin/knxif
  100. ln -sf knxtool $(1)/usr/bin/knxswrite
  101. ln -sf knxtool $(1)/usr/bin/knxbool
  102. ln -sf knxtool $(1)/usr/bin/knxdimup
  103. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/busmonitor1 $(1)/usr/bin/
  104. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/busmonitor2 $(1)/usr/bin/
  105. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/busmonitor3 $(1)/usr/bin/
  106. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/eibread-cgi $(1)/usr/bin/
  107. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/eibwrite-cgi $(1)/usr/bin/
  108. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/vbusmonitor1 $(1)/usr/bin/
  109. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/vbusmonitor2 $(1)/usr/bin/
  110. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/vbusmonitor3 $(1)/usr/bin/
  111. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupwrite $(1)/usr/bin/
  112. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupswrite $(1)/usr/bin/
  113. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/grouplisten $(1)/usr/bin/
  114. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupread $(1)/usr/bin/
  115. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupresponse $(1)/usr/bin/
  116. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupreadresponse $(1)/usr/bin/
  117. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupsocketlisten $(1)/usr/bin/
  118. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupsocketread $(1)/usr/bin/
  119. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupsocketwrite $(1)/usr/bin/
  120. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/knxd/examples/bin/groupsocketswrite $(1)/usr/bin/
  121. endef
  122. $(eval $(call BuildPackage,knxd))
  123. $(eval $(call BuildPackage,libeibclient))
  124. $(eval $(call BuildPackage,knxd-tools))