Merge pull request #115 from mmunz/master
[feed/routing.git] / oonf-dlep-radio / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=oonf-dlep-radio
4 PKG_VERSION:=0.9.1-r2
5 PKG_REV:=eab3845089bc2410a3c115fb8274572b16a0e47d
6 PKG_RELEASE:=$(PKG_REV)
7
8 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
9 PKG_SOURCE_URL:=http://olsr.org/git/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;interface;layer2;packet_socket;socket;stream_socket;telnet;timer;viewer;os_clock;os_socket;os_interface;os_system;nl80211_listener;layer2info;systeminfo;cfg_uciloader;cfg_compact;dlep_radio" \
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-radio
41 $(call Package/oonf-git/template)
42 TITLE:= Build DLEP Radio 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_radio;
52 endef
53
54 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include -I${STAGING_DIR}/usr/include/libnl-tiny
55
56 define Package/oonf-dlep-radio/install
57 $(INSTALL_BIN) -D $(PKG_BUILD_DIR)/dlep_radio_static $(1)/usr/sbin/dlep_radio
58 $(INSTALL_BIN) -D ./files/dlep_radio.init $(1)/etc/init.d/dlep_radio
59 $(INSTALL_BIN) -D ./files/dlep_radio.hotplug $(1)/etc/hotplug.d/iface/50-dlep_radio
60 $(INSTALL_DATA) -D ./files/dlep_radio.uci $(1)/etc/config/dlep_radio
61 endef
62
63 define Package/oonf-dlep-radio/conffiles
64 /etc/config/dlep_radio
65 endef
66
67 $(eval $(call BuildPackage,oonf-dlep-radio))