This repository has been archived by the owner on Jan 20, 2021. It is now read-only.
forked from LibreELEC/LibreELEC.tv
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db06d70
commit de9f3a7
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
################################################################################ | ||
# This file is part of LibreELEC - https://libreelec.tv | ||
# Copyright (C) 2018-present Team LibreELEC | ||
# | ||
# LibreELEC is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# LibreELEC is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>. | ||
################################################################################ | ||
|
||
PKG_NAME="pcre2" | ||
PKG_VERSION="10.31" | ||
PKG_SHA256="e07d538704aa65e477b6a392b32ff9fc5edf75ab9a40ddfc876186c4ff4d68ac" | ||
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_TARGET="toolchain" | ||
PKG_LONGDESC="The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5. PCRE has its own native API, as well as a set of wrapper functions that correspond to the POSIX regular expression API. The PCRE library is free, even for building commercial software." | ||
PKG_AUTORECONF="no" | ||
PKG_USE_CMAKE="no" | ||
|
||
PKG_CONFIGURE_OPTS_HOST="--prefix=$TOOLCHAIN \ | ||
--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" | ||
|
||
pre_configure_target() { | ||
CFLAGS="$CFLAGS -fPIC" | ||
CXXFLAGS="$CXXFLAGS -fPIC" | ||
LDFLAGS="$LDFLAGS -fPIC" | ||
} | ||
|
||
post_makeinstall_target() { | ||
rm -rf $INSTALL/usr/bin | ||
sed -e "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" -i $SYSROOT_PREFIX/usr/bin/$PKG_NAME-config | ||
} |