1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-22 01:06:30 +00:00
Lakka-LibreELEC/packages/devel/pcre/package.mk
ihipop 9c2c286055
pcre: update PKG_URL
to ${SOURCEFORGE_SRC} format
2021-11-30 12:24:17 +08:00

36 lines
1.3 KiB
Makefile

# 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"
PKG_VERSION="8.45"
PKG_SHA256="4dae6fdcd2bb0bb6c37b5f97c33c2be954da743985369cddac3546e3218bffb8"
PKG_LICENSE="OSS"
PKG_SITE="http://www.pcre.org/"
PKG_URL="${SOURCEFORGE_SRC}/pcre/${PKG_NAME}/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
PKG_DEPENDS_HOST="toolchain:host"
PKG_DEPENDS_TARGET="toolchain pcre:host"
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"
PKG_CONFIGURE_OPTS_TARGET="--disable-shared \
--enable-static \
--enable-utf8 \
--enable-pcre16 \
--enable-unicode-properties \
--with-gnu-ld"
post_makeinstall_target() {
rm -rf ${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
}