pcre2: install pcre2-config to host path

Helps old packages that do not use pkgconfig.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-12-07 18:28:39 -08:00
parent ea80600e3c
commit 5e814c7972
No known key found for this signature in database
GPG key ID: 36D31CFA845F0E3B

View file

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