Update to v0.12.0
[feed/routing.git] / oonf-dlep-proxy / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=oonf-dlep-proxy
4 PKG_VERSION:=0.12.0
5 PKG_REV:=37d620fbb33c449e39438f2fb1ce25deeb78ff84
6 PKG_RELEASE:=$(PKG_REV)
7
8 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
9 PKG_SOURCE_URL:=https://github.com/OLSR/OONF.git
10 PKG_SOURCE_PROTO:=git
11 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
12 PKG_SOURCE_VERSION:=$(PKG_REV)
13
14 CMAKE_INSTALL:=1
15
16 include $(INCLUDE_DIR)/package.mk
17 include $(INCLUDE_DIR)/cmake.mk
18
19 CMAKE_OPTIONS=-D OONF_NO_WERROR:Bool=true \
20 -D OONF_LOGGING_LEVEL:String=debug \
21 -D OONF_NO_TESTING:Bool=true \
22 -D UCI:Bool=true \
23 -D OONF_APP_DEFAULT_CFG_HANDLER:String=uci \
24 -D OONF_STATIC_PLUGINS:String="class;clock;layer2;packet_socket;socket;stream_socket;telnet;timer;viewer;os_clock;os_fd;os_interface;os_system;nl80211_listener;layer2info;systeminfo;cfg_uciloader;cfg_compact;dlep_proxy" \
25 -D OONF_LIB_GIT:String=v$(PKG_VERSION)-archive \
26 -D OONF_VERSION:String=$(PKG_VERSION) \
27 -D INSTALL_LIB_DIR:Path=lib/oonf \
28 -D INSTALL_INCLUDE_DIR:Path=include/oonf \
29 -D INSTALL_CMAKE_DIR:Path=lib/oonf \
30 -D CMAKE_PREFIX_PATH=$(STAGING_DIR)/usr
31
32 define Package/oonf-git/template
33 SECTION:=net
34 CATEGORY:=Network
35 MAINTAINER:=Henning Rogge <hrogge@gmail.com>
36 SUBMENU:=OLSR.org network framework
37 URL:=http://www.olsr.org/
38 endef
39
40 define Package/oonf-dlep-proxy
41 $(call Package/oonf-git/template)
42 TITLE:= Build DLEP Radio+Router Agent
43 DEPENDS:=+librt +libnl-tiny +libuci +oonf-init-scripts
44 VERSION:=$(PKG_VERSION)
45 endef
46
47 Build/Compile=$(call Build/Compile/Default,dlep_radio_static)
48 Build/Install=
49
50 define Build/Install
51 $(INSTALL_BIN) -D $(PKG_BUILD_DIR)/$(MAKE_PATH)/dlep_radio_static $(PKG_INSTALL_DIR)/usr/sbin/dlep_proxy;
52 endef
53
54 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include -I${STAGING_DIR}/usr/include/libnl-tiny
55
56 define Package/oonf-dlep-proxy/install
57 $(INSTALL_BIN) -D $(PKG_BUILD_DIR)/dlep_radio_static $(1)/usr/sbin/dlep_proxy
58 $(INSTALL_BIN) -D ./files/dlep_proxy.init $(1)/etc/init.d/dlep_proxy
59 $(INSTALL_BIN) -D ./files/dlep_proxy.hotplug $(1)/etc/hotplug.d/iface/50-dlep_proxy
60 $(INSTALL_DATA) -D ./files/dlep_proxy.uci $(1)/etc/config/dlep_proxy
61 endef
62
63 define Package/oonf-dlep-proxy/conffiles
64 /etc/config/dlep_proxy
65 endef
66
67 $(eval $(call BuildPackage,oonf-dlep-proxy))