pcre2: install pcre2-config to host path
authorRosen Penev <rosenp@gmail.com>
Tue, 8 Dec 2020 02:28:39 +0000 (18:28 -0800)
committerRosen Penev <rosenp@gmail.com>
Tue, 8 Dec 2020 04:18:35 +0000 (20:18 -0800)
Helps old packages that do not use pkgconfig.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/pcre2/Makefile

index 28743ba19addb2e7f9ed5f583a18f9c52e14f7d3..d3172e6625b70303277bcdfb239fcc01da83be32 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=pcre2
 PKG_VERSION:=10.35
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=@SF/pcre/$(PKG_NAME)/$(PKG_VERSION)
@@ -68,9 +68,9 @@ CMAKE_OPTIONS += \
 
 define Build/InstallDev
        $(call Build/InstallDev/cmake,$(1))
-       $(SED) \
-               's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
-               $(1)/usr/bin/pcre2-config
+       $(SED)  's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/pcre2-config
+       $(INSTALL_DIR) $(2)/bin
+       $(LN) ../../usr/bin/pcre2-config $(2)/bin/pcre2-config
 endef
 
 define Package/libpcre2/install