2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="pcre"
|
2022-09-17 17:03:37 +00:00
|
|
|
PKG_VERSION="8.45"
|
|
|
|
PKG_SHA256="4dae6fdcd2bb0bb6c37b5f97c33c2be954da743985369cddac3546e3218bffb8"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="OSS"
|
|
|
|
PKG_SITE="http://www.pcre.org/"
|
2022-09-17 17:03:37 +00:00
|
|
|
PKG_URL="${SOURCEFORGE_SRC}/pcre/${PKG_NAME}/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_HOST="toolchain:host"
|
2022-09-17 17:03:37 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain pcre:host"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LONGDESC="A set of functions that implement regular expression pattern matching."
|
|
|
|
PKG_TOOLCHAIN="configure"
|
|
|
|
PKG_BUILD_FLAGS="+pic"
|
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_HOST="--prefix=${TOOLCHAIN} \
|
|
|
|
--enable-static \
|
|
|
|
--enable-utf8 \
|
|
|
|
--enable-unicode-properties \
|
|
|
|
--with-gnu-ld"
|
|
|
|
|
2022-09-17 17:03:37 +00:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--enable-static \
|
2022-02-05 14:23:32 +00:00
|
|
|
--enable-utf8 \
|
|
|
|
--enable-pcre16 \
|
|
|
|
--enable-unicode-properties \
|
|
|
|
--with-gnu-ld"
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
|
|
|
rm -rf ${INSTALL}/usr/bin
|
2022-09-17 17:03:37 +00:00
|
|
|
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
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|