From: Rosen Penev Date: Tue, 8 Dec 2020 05:48:21 +0000 (-0800) Subject: curl: fix host config file X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8285806e10e6631c22ae202aa664c567d88ed14b;p=feed%2Fpackages.git curl: fix host config file Fix the prefix instead. Replace custom Compile section with PKG_INSTALL. Signed-off-by: Rosen Penev --- diff --git a/net/curl/Makefile b/net/curl/Makefile index 55e6603641..6023811d99 100644 --- a/net/curl/Makefile +++ b/net/curl/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=curl PKG_VERSION:=7.73.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://dl.uxnr.de/mirror/curl/ \ @@ -23,6 +23,7 @@ PKG_LICENSE_FILES:=COPYING PKG_CPE_ID:=cpe:/a:haxx:libcurl PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 PKG_CONFIG_DEPENDS:= \ @@ -159,20 +160,13 @@ CONFIGURE_ARGS += \ $(call autoconf_bool,CONFIG_LIBCURL_UNIX_SOCKETS,unix-sockets) \ $(call autoconf_bool,CONFIG_LIBCURL_VERBOSE,verbose) \ -define Build/Compile - +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ - DESTDIR="$(PKG_INSTALL_DIR)" \ - CC="$(TARGET_CC)" \ - install -endef - define Build/InstallDev $(INSTALL_DIR) $(2)/bin $(1)/usr/bin $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/curl-config $(1)/usr/bin/ $(CP) $(PKG_INSTALL_DIR)/usr/include/curl $(1)/usr/include/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcurl.{a,so*} $(1)/usr/lib/ $(CP) $(PKG_BUILD_DIR)/libcurl.pc $(1)/usr/lib/pkgconfig/ - $(SED) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr/bin/curl-config + $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/curl-config [ -n "$(TARGET_LDFLAGS)" ] && $(SED) 's#$(TARGET_LDFLAGS)##g' $(1)/usr/lib/pkgconfig/libcurl.pc || true $(LN) $(STAGING_DIR)/usr/bin/curl-config $(2)/bin/ endef