aboutsummaryrefslogtreecommitdiff
path: root/libs/libre2
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2023-08-31 19:36:21 -0700
committerRosen Penev <rosenp@gmail.com>2023-09-01 00:20:38 -0700
commit4299e892def0812ba904aa8e662e3608f8198610 (patch)
tree5750f6a565cd4bff47a2fc52678bfb2b44d684c8 /libs/libre2
parent71e8d20f596cd3b34f900e59df0e91fd9c05bfe2 (diff)
libre2: fix pkgconfig paths
Upstream broke them. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'libs/libre2')
-rw-r--r--libs/libre2/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/libre2/Makefile b/libs/libre2/Makefile
index 1ce64f8cc..4599ae4a0 100644
--- a/libs/libre2/Makefile
+++ b/libs/libre2/Makefile
@@ -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/