libre2: fix pkgconfig paths
authorRosen Penev <rosenp@gmail.com>
Fri, 1 Sep 2023 02:36:21 +0000 (19:36 -0700)
committerRosen Penev <rosenp@gmail.com>
Fri, 1 Sep 2023 07:20:38 +0000 (00:20 -0700)
Upstream broke them.

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

index 1ce64f8cc3e4a10616b1126a09a6ef7914d0a74a..4599ae4a0d600cb453fbc62cf16e1aa40cdc0a96 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=re2
 PKG_VERSION:=2023-02-01
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/google/re2/tar.gz/$(PKG_VERSION)?
@@ -38,6 +38,12 @@ CMAKE_OPTIONS += \
 TARGET_LDFLAGS += \
        -Wl,--as-needed,--gc-sections
 
+define Build/InstallDev
+       $(call Build/InstallDev/cmake,$(1))
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/re2.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/re2.pc
+endef
+
 define Package/re2/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libre2.so $(1)/usr/lib/