pcre2: fix pcre2-config (used by vdr-plugin-epgsearch)

This commit is contained in:
mglae 2023-02-20 15:43:44 +01:00 committed by Rudi Heitbaum
parent f0e7dcd0d4
commit 5c5e463c9c

View File

@ -8,7 +8,7 @@ PKG_LICENSE="BSD"
PKG_SITE="http://www.pcre.org/"
PKG_URL="https://github.com/PCRE2Project/pcre2/releases/download/pcre2-${PKG_VERSION}/pcre2-${PKG_VERSION}.tar.bz2"
PKG_DEPENDS_HOST="toolchain:host"
PKG_DEPENDS_TARGET="toolchain"
PKG_DEPENDS_TARGET="toolchain pcre2:host"
PKG_LONGDESC="A set of functions that implement regular expression pattern matching using the same syntax."
PKG_BUILD_FLAGS="+pic"
@ -36,4 +36,8 @@ post_unpack() {
post_makeinstall_target() {
safe_remove ${INSTALL}/usr/bin
cp ${PKG_NAME}-config ${TOOLCHAIN}/bin
sed -e "s:\(['= ]\)/usr:\\1${PKG_ORIG_SYSROOT_PREFIX}/usr:g" -i ${TOOLCHAIN}/bin/${PKG_NAME}-config
chmod +x ${TOOLCHAIN}/bin/${PKG_NAME}-config
}