Skip to content
Permalink
Browse files

pcre2: introduce new package

  • Loading branch information...
adamg88 committed Jul 9, 2019
1 parent 65b9b88 commit 17be58a28c5ab9d43cf47cf5770459ecde553108
Showing with 32 additions and 0 deletions.
  1. +32 −0 packages/devel/pcre2/package.mk
@@ -0,0 +1,32 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2018-present Team CoreELEC (https://coreelec.org)

PKG_NAME="pcre2"
PKG_VERSION="10.33"
PKG_SHA256="35514dff0ccdf02b55bd2e9fa586a1b9d01f62332c3356e379eabb75f789d8aa"
PKG_LICENSE="BSD"
PKG_SITE="http://www.pcre.org/"
PKG_URL="https://ftp.pcre.org/pub/pcre/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
PKG_DEPENDS_HOST="gcc:host"
PKG_DEPENDS_TARGET="toolchain"
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-pcre2-16 \
--enable-unicode-properties \
--with-gnu-ld"

post_makeinstall_target() {
safe_remove ${INSTALL}/usr/bin
sed -e "s:\(['= ]\)/usr:\\1${SYSROOT_PREFIX}/usr:g" -i ${SYSROOT_PREFIX}/usr/bin/${PKG_NAME}-config
}

0 comments on commit 17be58a

Please sign in to comment.
You can’t perform that action at this time.