2022-09-17 17:03:37 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="pcre2"
|
2023-02-25 00:39:48 +00:00
|
|
|
PKG_VERSION="10.42"
|
|
|
|
PKG_SHA256="8d36cd8cb6ea2a4c2bb358ff6411b0c788633a2a45dabbf1aeb4b701d1b5e840"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="BSD"
|
|
|
|
PKG_SITE="http://www.pcre.org/"
|
2022-09-17 17:03:37 +00:00
|
|
|
PKG_URL="https://github.com/PCRE2Project/pcre2/releases/download/pcre2-${PKG_VERSION}/pcre2-${PKG_VERSION}.tar.bz2"
|
|
|
|
PKG_DEPENDS_HOST="toolchain:host"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
2022-09-17 17:03:37 +00:00
|
|
|
PKG_LONGDESC="A set of functions that implement regular expression pattern matching using the same syntax."
|
2022-11-01 10:04:06 +00:00
|
|
|
PKG_BUILD_FLAGS="+pic"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-09-17 17:03:37 +00:00
|
|
|
PKG_CMAKE_OPTS_HOST="-DBUILD_SHARED_LIBS=OFF \
|
|
|
|
-DBUILD_STATIC_LIBS=ON \
|
2022-11-01 10:04:06 +00:00
|
|
|
-DPCRE2_STATIC_PIC=ON \
|
2022-09-17 17:03:37 +00:00
|
|
|
-DPCRE2_BUILD_PCRE2_8=ON \
|
|
|
|
-DPCRE2_BUILD_PCRE2_16=ON \
|
|
|
|
-DPCRE2_BUILD_PCRE2_32=ON \
|
|
|
|
-DPCRE2_SUPPORT_JIT=ON \
|
|
|
|
-DPCRE2_BUILD_TESTS=OFF \
|
|
|
|
-DPCRE2_SUPPORT_LIBEDIT=OFF \
|
|
|
|
-DPCRE2_SUPPORT_LIBREADLINE=OFF"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-09-17 17:03:37 +00:00
|
|
|
PKG_CMAKE_OPTS_TARGET="-DBUILD_SHARED_LIBS=OFF \
|
|
|
|
-DPCRE2_BUILD_PCRE2_16=ON \
|
|
|
|
-DPCRE2_SUPPORT_LIBEDIT=OFF \
|
|
|
|
-DPCRE2_SUPPORT_LIBREADLINE=OFF"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-02-25 00:39:48 +00:00
|
|
|
post_unpack() {
|
|
|
|
sed -e 's|^INSTALL(FILES ${man1} DESTINATION man/man1)||' \
|
|
|
|
-e 's|^INSTALL(FILES ${man3} DESTINATION man/man3)||' \
|
|
|
|
-e 's|^INSTALL(FILES ${html} DESTINATION share/doc/pcre2/html)||' \
|
|
|
|
-i ${PKG_BUILD}/CMakeLists.txt
|
|
|
|
}
|
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
post_makeinstall_target() {
|
|
|
|
safe_remove ${INSTALL}/usr/bin
|
|
|
|
}
|