2 # Copyright (C) 2008-2015 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
11 include $(TOPDIR
)/rules.mk
14 PKG_REV
:=c97a543043297e38bbe04e1030916e8a4737373c
15 PKG_VERSION
:=2015-01-14
18 PKG_MAINTAINER
:=Othmar Truniger
<github@truniger.ch
>
20 PKG_LICENSE_FILES
:=LICENSE
23 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
25 PKG_SOURCE_URL
:=git
://github.com
/Makki1
/knxd.git
26 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)
27 PKG_SOURCE_VERSION
:=$(PKG_REV
)
30 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
31 PKG_BUILD_DEPENDS
:=pthsem argp-standalone
35 include $(INCLUDE_DIR
)/package.mk
41 URL
:=https
://github.com
/Makki1
/knxd
42 DEPENDS
:=pthsem libusb-1.0
44 # use this if you want to support USB
45 # DEPENDS:=pthsem libusb-1.0
47 define Package
/knxd
/description
51 define Package
/knxd-tools
55 URL
:=https
://github.com
/Makki1
/knxd
56 DEPENDS
:=pthsem libusb-1.0
59 define Package
/knxd-tools
/description
63 $(call Build
/Prepare
/Default
)
67 define Build
/Configure
68 $(call Build
/Configure
/Default
,\
71 --enable-eibnetiptunnel \
72 --enable-eibnetipserver \
84 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
86 LIBS
="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib -fno-builtin -nodefaultlibs -lc -lm -lgcc -largp -lpthsem" \
87 CPPFLAGS
="-I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include"
90 define Package
/knxd
/conffiles
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_BIN
) $(PKG_BUILD_DIR
)/src
/tools
/eibnet
/findknxusb
$(1)/usr
/bin
/
102 $(INSTALL_DIR
) $(1)/etc
/init.d
103 $(INSTALL_BIN
) .
/files
/knxd.init
$(1)/etc
/init.d
/knxd
104 $(INSTALL_DIR
) $(1)/etc
/config
105 $(INSTALL_DATA
) .
/files
/knxd.config
$(1)/etc
/config
/knxd
108 define Package
/knxd-tools
/install
109 $(INSTALL_DIR
) $(1)/usr
/lib
110 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/src
/client
/c
/.libs
/libeibclient.so
.0.0.0 $(1)/usr
/lib
/
111 ln
-s libeibclient.so
.0.0.0 $(1)/usr
/lib
/libeibclient.so
112 ln
-s libeibclient.so
.0.0.0 $(1)/usr
/lib
/libeibclient.so
.0
113 $(INSTALL_DIR
) $(1)/usr
/bin
114 -rm -f
$(1)/usr
/bin
/knxread
115 -rm -f
$(1)/usr
/bin
/knxreadtemp
116 -rm -f
$(1)/usr
/bin
/knxwrite
117 -rm -f
$(1)/usr
/bin
/knxlog
118 -rm -f
$(1)/usr
/bin
/knxon
119 -rm -f
$(1)/usr
/bin
/knxoff
120 -rm -f
$(1)/usr
/bin
/knxif
121 -rm -f
$(1)/usr
/bin
/knxswrite
122 -rm -f
$(1)/usr
/bin
/knxbool
123 -rm -f
$(1)/usr
/bin
/knxdimup
124 ln
-s knxtool
$(1)/usr
/bin
/knxread
125 ln
-s knxtool
$(1)/usr
/bin
/knxreadtemp
126 ln
-s knxtool
$(1)/usr
/bin
/knxwrite
127 ln
-s knxtool
$(1)/usr
/bin
/knxlog
128 ln
-s knxtool
$(1)/usr
/bin
/knxon
129 ln
-s knxtool
$(1)/usr
/bin
/knxoff
130 ln
-s knxtool
$(1)/usr
/bin
/knxif
131 ln
-s knxtool
$(1)/usr
/bin
/knxswrite
132 ln
-s knxtool
$(1)/usr
/bin
/knxbool
133 ln
-s knxtool
$(1)/usr
/bin
/knxdimup
134 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/knxtool
$(1)/usr
/bin
/
135 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/busmonitor1
$(1)/usr
/bin
/
136 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/busmonitor2
$(1)/usr
/bin
/
137 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/busmonitor3
$(1)/usr
/bin
/
138 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/eibread-cgi
$(1)/usr
/bin
/
139 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/eibwrite-cgi
$(1)/usr
/bin
/
140 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/vbusmonitor1
$(1)/usr
/bin
/
141 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/vbusmonitor2
$(1)/usr
/bin
/
142 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/vbusmonitor3
$(1)/usr
/bin
/
143 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupwrite
$(1)/usr
/bin
/
144 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupswrite
$(1)/usr
/bin
/
145 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/grouplisten
$(1)/usr
/bin
/
146 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupread
$(1)/usr
/bin
/
147 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupresponse
$(1)/usr
/bin
/
148 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupreadresponse
$(1)/usr
/bin
/
149 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupsocketlisten
$(1)/usr
/bin
/
150 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupsocketread
$(1)/usr
/bin
/
151 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupsocketwrite
$(1)/usr
/bin
/
152 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/examples
/.libs
/groupsocketswrite
$(1)/usr
/bin
/
155 $(eval
$(call BuildPackage
,knxd
))
156 $(eval
$(call BuildPackage
,knxd-tools
))