From 42ab62a21cc0da09af4c042dc6fbe9e87ca173b6 Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Wed, 22 Jan 2020 18:33:09 +0800 Subject: [PATCH] openwrt-udp2raw: fix make args --- package/jsda/openwrt-udp2raw/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/package/jsda/openwrt-udp2raw/Makefile b/package/jsda/openwrt-udp2raw/Makefile index 5581185ae2..c37929fd0a 100644 --- a/package/jsda/openwrt-udp2raw/Makefile +++ b/package/jsda/openwrt-udp2raw/Makefile @@ -32,19 +32,21 @@ define Package/udp2raw-tunnel CATEGORY:=Network TITLE:=Tunnel which turns UDP Traffic into Encrypted FakeTCP/UDP/ICMP Traffic URL:=https://github.com/wangyu-/udp2raw-tunnel + DEPENDS:= +libstdcpp +libpthread +librt endef define Package/udp2raw-tunnel/description udp2raw-tunnel is a tunnel which turns UDP Traffic into Encrypted FakeTCP/UDP/ICMP Traffic by using Raw Socket. endef -MAKE_FLAGS += cross2 +MAKE_FLAGS += cross -define Build/Configure - $(call Build/Configure/Default) - $(SED) 's/cc_cross[[:space:]]*=.*/cc_cross=$(TARGET_CXX)/' \ - -e 's/\\".*shell git rev-parse HEAD.*\\"/\\"$(PKG_SOURCE_VERSION)\\"/' \ - $(PKG_BUILD_DIR)/makefile +define Build/Prepare + $(PKG_UNPACK) + sed -i 's/cc_cross=.*/cc_cross=$(TARGET_CXX)/g' $(PKG_BUILD_DIR)/makefile + sed -i '/\*gitversion/d' $(PKG_BUILD_DIR)/makefile + echo 'const char *gitversion = "$(PKG_VERSION)";' > $(PKG_BUILD_DIR)/git_version.h + $(Build/Patch) endef define Package/udp2raw-tunnel/install