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-31-$(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:=2c6c6732a684dffb87b391ea92cccdf07c8385b8
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)
  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)
  23. PKG_BUILD_DEPENDS:=argp-standalone
  24. PKG_FIXUP:=autoreconf
  25. PKG_INSTALL:=1
  26. include $(INCLUDE_DIR)/package.mk
  27. define Package/knxd
  28. SECTION:=net
  29. CATEGORY:=Network
  30. TITLE:=EIB KNX daemon
  31. DEPENDS:=+pthsem +libusb-1.0
  32. endef
  33. define Package/knxd/description
  34. EIB KNX Daemon
  35. endef
  36. define Package/knxd/conffiles
  37. /etc/config/knxd
  38. endef
  39. define Package/libeibclient
  40. SECTION:=libs
  41. CATEGORY:=Libraries
  42. TITLE:=Library for EIB clients
  43. DEPENDS:=+pthsem
  44. endef
  45. define Package/libeibclient/description
  46. EIB KNX client library
  47. endef
  48. define Package/knxd-tools
  49. SECTION:=net
  50. CATEGORY:=Network
  51. TITLE:=EIB KNX Utils
  52. DEPENDS:=+libeibclient
  53. endef
  54. define Package/knxd-tools/description
  55. EIB KNX Tools
  56. endef
  57. CONFIGURE_ARGS+= \
  58. --disable-ft12 \
  59. --enable-eibnetip \
  60. --enable-eibnetiptunnel \
  61. --enable-eibnetipserver \
  62. --enable-usb \
  63. --enable-tpuart \
  64. --enable-tpuarts \
  65. --disable-pei16 \
  66. --disable-pei16s \
  67. --enable-groupcache \
  68. --without-pth-test \
  69. --without-libstdc
  70. EXTRA_LDFLAGS+= \
  71. -fno-builtin -nodefaultlibs -lc -lgcc
  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))