| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | include $(TOPDIR)/rules.mk | 
 | 2 |  | 
 | 3 | PKG_NAME:=oonf-dlep-proxy | 
 | 4 | PKG_VERSION:=v0.15.1 | 
 | 5 | PKG_REV:=bffb88b040659b237c4c91b6b42dbbb47431750e | 
 | 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 | PKG_MIRROR_HASH:=a5413418b7ab1665758f883a652ff589de6a78ccf9201d29bc13f372cb9adeb0 | 
 | 14 |  | 
 | 15 | CMAKE_INSTALL:=1 | 
 | 16 |  | 
 | 17 | include $(INCLUDE_DIR)/package.mk | 
 | 18 | include $(INCLUDE_DIR)/cmake.mk | 
 | 19 |  | 
 | 20 | CMAKE_OPTIONS+=-D OONF_NO_WERROR:Bool=true \ | 
 | 21 |                -D OONF_LOGGING_LEVEL:String=debug \ | 
 | 22 |                -D OONF_NO_TESTING:Bool=true \ | 
 | 23 |                -D UCI:Bool=true \ | 
 | 24 |                -D OONF_APP_DEFAULT_CFG_HANDLER:String=uci \ | 
 | 25 |                -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" \ | 
 | 26 |                -D OONF_LIB_GIT:String=v$(PKG_VERSION)-archive \ | 
 | 27 |                -D OONF_VERSION:String=$(PKG_VERSION) \ | 
 | 28 |                -D INSTALL_LIB_DIR:Path=lib/oonf \ | 
 | 29 |                -D INSTALL_INCLUDE_DIR:Path=include/oonf \ | 
 | 30 |                -D INSTALL_CMAKE_DIR:Path=lib/oonf \ | 
 | 31 |                -D CMAKE_PREFIX_PATH=$(STAGING_DIR)/usr | 
 | 32 |  | 
 | 33 | define Package/oonf-git/template | 
 | 34 | 	SECTION:=net | 
 | 35 | 	CATEGORY:=Network | 
 | 36 | 	MAINTAINER:=Henning Rogge <hrogge@gmail.com> | 
 | 37 | 	SUBMENU:=OLSR.org network framework | 
 | 38 | 	URL:=http://www.olsr.org/ | 
 | 39 | endef | 
 | 40 |  | 
 | 41 | define Package/oonf-dlep-proxy | 
 | 42 | 	$(call Package/oonf-git/template) | 
 | 43 | 	TITLE:= Build DLEP Radio+Router Agent | 
 | 44 | 	DEPENDS:=+librt +libnl-tiny +libuci +oonf-init-scripts | 
 | 45 | 	VERSION:=$(PKG_VERSION) | 
 | 46 | endef | 
 | 47 |  | 
 | 48 | Build/Compile=$(call Build/Compile/Default,dlep_radio_static) | 
 | 49 | Build/Install= | 
 | 50 |  | 
 | 51 | define Build/Install | 
 | 52 | 	$(INSTALL_BIN) -D $(PKG_BUILD_DIR)/$(MAKE_PATH)/dlep_radio_static $(PKG_INSTALL_DIR)/usr/sbin/dlep_proxy; | 
 | 53 | endef | 
 | 54 |  | 
 | 55 | TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include -I${STAGING_DIR}/usr/include/libnl-tiny | 
 | 56 |  | 
 | 57 | define Package/oonf-dlep-proxy/install | 
 | 58 | 	$(INSTALL_BIN)  -D $(PKG_BUILD_DIR)/dlep_radio_static $(1)/usr/sbin/dlep_proxy | 
 | 59 | 	$(INSTALL_BIN)  -D ./files/dlep_proxy.init            $(1)/etc/init.d/dlep_proxy | 
 | 60 | 	$(INSTALL_BIN)  -D ./files/dlep_proxy.hotplug         $(1)/etc/hotplug.d/iface/50-dlep_proxy | 
 | 61 | 	$(INSTALL_DATA) -D ./files/dlep_proxy.uci             $(1)/etc/config/dlep_proxy | 
 | 62 | endef | 
 | 63 |  | 
 | 64 | define Package/oonf-dlep-proxy/conffiles | 
 | 65 | /etc/config/dlep_proxy | 
 | 66 | endef | 
 | 67 |  | 
 | 68 | $(eval $(call BuildPackage,oonf-dlep-proxy)) |