1 include $(TOPDIR
)/rules.mk
3 PKG_NAME
:=oonf-dlep-radio
5 PKG_REV
:=ea3e6e51f94b9b0642f84b44de35b6cab5f30b65
6 PKG_RELEASE
:=$(PKG_REV
)
8 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
9 PKG_SOURCE_URL
:=https
://github.com
/OLSR
/OONF.git
11 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
12 PKG_SOURCE_VERSION
:=$(PKG_REV
)
16 include $(INCLUDE_DIR
)/package.mk
17 include $(INCLUDE_DIR
)/cmake.mk
19 CMAKE_OPTIONS
=-D OONF_NO_WERROR
:Bool
=true \
20 -D OONF_LOGGING_LEVEL
:String
=debug \
21 -D OONF_NO_TESTING
: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_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
32 define Package
/oonf-git
/template
35 MAINTAINER
:=Henning Rogge
<hrogge@gmail.com
>
36 SUBMENU
:=OLSR.org network framework
37 URL
:=http
://www.olsr.org
/
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
)
47 Build
/Compile
=$(call Build
/Compile
/Default
,dlep_radio_static
)
51 $(INSTALL_BIN
) -D
$(PKG_BUILD_DIR
)/$(MAKE_PATH
)/dlep_radio_static
$(PKG_INSTALL_DIR
)/usr
/sbin
/dlep_radio
;
54 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include -I
${STAGING_DIR}/usr
/include/libnl-tiny
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
63 define Package
/oonf-dlep-radio
/conffiles
64 /etc
/config
/dlep_radio
67 $(eval
$(call BuildPackage
,oonf-dlep-radio
))