2 # Copyright (C) 2008-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 ### 'python pascal ruby lua' need to be deleted in src/clients/Makefile.am
10 ### USB stays disabled as long as official libusb-1.0 remains on version 1.0.9
11 ### you need to build libusb-1.0 >= 1.0.10 yourself if you want to add USB support
13 include $(TOPDIR
)/rules.mk
16 PKG_REV
:=b01d99c6748cc565f1be69b68cf2b9d3115e8ce5
17 PKG_VERSION
:=2014-12-20
20 PKG_MAINTAINER
:=Othmar Truniger
<github@truniger.ch
>
22 PKG_LICENSE_FILES
:=LICENSE
25 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
27 PKG_SOURCE_URL
:=git
://github.com
/Makki1
/knxd.git
28 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)
29 PKG_SOURCE_VERSION
:=$(PKG_REV
)
32 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
33 PKG_BUILD_DEPENDS
:=pthsem argp-standalone
37 include $(INCLUDE_DIR
)/package.mk
43 URL
:=https
://github.com
/Makki1
/knxd
46 # use this if you want to support USB
47 # DEPENDS:=pthsem libusb-1.0
49 define Package
/knxd
/description
53 define Package
/knxd-tools
57 URL
:=https
://github.com
/Makki1
/knxd
60 # use this if you want to support USB
61 # DEPENDS:=pthsem libusb-1.0
63 define Package
/knxd-tools
/description
67 $(call Build
/Prepare
/Default
)
71 define Build
/Configure
72 $(call Build
/Configure
/Default
,\
75 --enable-eibnetiptunnel \
76 --enable-eibnetipserver \
88 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
90 LIBS
="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib -fno-builtin -nostdinc++ -nodefaultlibs -lc -lm -lgcc -largp -lpthsem" \
91 CPPFLAGS
="-I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include"
94 define Package
/knxd
/install
95 $(INSTALL_DIR
) $(1)/usr
/bin
96 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/server
/knxd
$(1)/usr
/bin
/
97 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/tools
/bcu
/bcuaddrtab
$(1)/usr
/bin
/
98 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/tools
/bcu
/bcuread
$(1)/usr
/bin
/
99 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/tools
/eibnet
/eibnetsearch
$(1)/usr
/bin
/
100 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/tools
/eibnet
/eibnetdescribe
$(1)/usr
/bin
/
101 $(INSTALL_DIR
) $(1)/etc
/init.d
102 $(INSTALL_BIN
) .
/files
/knxd.init
$(1)/etc
/init.d
/knxd
103 $(INSTALL_DIR
) $(1)/etc
/config
104 $(INSTALL_DATA
) .
/files
/knxd.config
$(1)/etc
/config
/knxd
106 # add this line above to support USB
107 # $(CP) $(PKG_BUILD_DIR)/src/usb/findknxusb $(1)/usr/bin/
109 define Package
/knxd-tools
/install
110 $(INSTALL_DIR
) $(1)/usr
/lib
111 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/src
/client
/c
/.libs
/libeibclient.so
.0.0.0 $(1)/usr
/lib
/
112 ln
-s libeibclient.so
.0.0.0 $(1)/usr
/lib
/libeibclient.so
113 ln
-s libeibclient.so
.0.0.0 $(1)/usr
/lib
/libeibclient.so
.0
114 $(INSTALL_DIR
) $(1)/usr
/bin
115 -rm -f
$(1)/usr
/bin
/knxread
116 -rm -f
$(1)/usr
/bin
/knxreadtemp
117 -rm -f
$(1)/usr
/bin
/knxwrite
118 -rm -f
$(1)/usr
/bin
/knxlog
119 -rm -f
$(1)/usr
/bin
/knxon
120 -rm -f
$(1)/usr
/bin
/knxoff
121 -rm -f
$(1)/usr
/bin
/knxif
122 -rm -f
$(1)/usr
/bin
/knxswrite
123 -rm -f
$(1)/usr
/bin
/knxbool
124 -rm -f
$(1)/usr
/bin
/knxdimup
125 ln
-s knxtool
$(1)/usr
/bin
/knxread
126 ln
-s knxtool
$(1)/usr
/bin
/knxreadtemp
127 ln
-s knxtool
$(1)/usr
/bin
/knxwrite
128 ln
-s knxtool
$(1)/usr
/bin
/knxlog
129 ln
-s knxtool
$(1)/usr
/bin
/knxon
130 ln
-s knxtool
$(1)/usr
/bin
/knxoff
131 ln
-s knxtool
$(1)/usr
/bin
/knxif
132 ln
-s knxtool
$(1)/usr
/bin
/knxswrite
133 ln
-s knxtool
$(1)/usr
/bin
/knxbool
134 ln
-s knxtool
$(1)/usr
/bin
/knxdimup
135 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/knxtool
$(1)/usr
/bin
/
136 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/busmonitor1
$(1)/usr
/bin
/
137 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/busmonitor2
$(1)/usr
/bin
/
138 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/busmonitor3
$(1)/usr
/bin
/
139 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/eibread-cgi
$(1)/usr
/bin
/
140 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/eibwrite-cgi
$(1)/usr
/bin
/
141 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/vbusmonitor1
$(1)/usr
/bin
/
142 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/vbusmonitor2
$(1)/usr
/bin
/
143 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/vbusmonitor3
$(1)/usr
/bin
/
144 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupwrite
$(1)/usr
/bin
/
145 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupswrite
$(1)/usr
/bin
/
146 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/grouplisten
$(1)/usr
/bin
/
147 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupread
$(1)/usr
/bin
/
148 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupresponse
$(1)/usr
/bin
/
149 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupreadresponse
$(1)/usr
/bin
/
150 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupsocketlisten
$(1)/usr
/bin
/
151 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupsocketread
$(1)/usr
/bin
/
152 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupsocketwrite
$(1)/usr
/bin
/
153 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupsocketswrite
$(1)/usr
/bin
/
156 $(eval
$(call BuildPackage
,knxd
))
157 $(eval
$(call BuildPackage
,knxd-tools
))