mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-14 15:50:07 +02:00
122 lines
3.1 KiB
Bash
122 lines
3.1 KiB
Bash
SUMMARY="Perl5 Compatible Regular Expressions"
|
|
DESCRIPTION="The PCRE2 library is a set of functions that implement regular \
|
|
expression pattern matching using the same syntax and semantics as Perl 5. \
|
|
PCRE2 has its own native API, as well as a set of wrapper functions that \
|
|
correspond to the POSIX regular expression API. The PCRE2 library is free, \
|
|
even for building proprietary software.
|
|
PCRE2 is a re-working of the original PCRE library to provide an entirely new \
|
|
API."
|
|
HOMEPAGE="http://www.pcre.org/"
|
|
COPYRIGHT="1997-2017 University of Cambridge"
|
|
LICENSE="PCRE"
|
|
REVISION="1"
|
|
SOURCE_URI="https://downloads.sf.net/pcre/pcre2-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="90bd41c605d30e3745771eb81928d779f158081a51b2f314bbcc1f73de5773db"
|
|
SOURCE_DIR="pcre2-$portVersion"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
|
|
|
|
PROVIDES="
|
|
libpcre2$secondaryArchSuffix = $portVersion compat >= 10
|
|
lib:libpcre2_8$secondaryArchSuffix = 0.6.0 compat >= 0
|
|
lib:libpcre2_16$secondaryArchSuffix = 0.6.0 compat >= 0
|
|
lib:libpcre2_32$secondaryArchSuffix = 0.6.0 compat >= 0
|
|
lib:libpcre2_posix$secondaryArchSuffix = 2.0.0 compat >= 2
|
|
cmd:pcre2grep$secondaryArchSuffix
|
|
cmd:pcre2test$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
lib:libbz2$secondaryArchSuffix
|
|
lib:libedit$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libpcre2${secondaryArchSuffix}_devel = $portVersion compat >= 10
|
|
cmd:pcre2_config$secondaryArchSuffix = $portVersion compat >= 10
|
|
devel:libpcre2_8$secondaryArchSuffix = 0.6.0 compat >= 0
|
|
devel:libpcre2_16$secondaryArchSuffix = 0.6.0 compat >= 0
|
|
devel:libpcre2_32$secondaryArchSuffix = 0.6.0 compat >= 0
|
|
devel:libpcre2_posix$secondaryArchSuffix = 2.0.0 compat >= 2
|
|
"
|
|
REQUIRES_devel="
|
|
libpcre2$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libz$secondaryArchSuffix
|
|
devel:libbz2$secondaryArchSuffix
|
|
devel:libedit$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
libtoolize --force --copy --install
|
|
aclocal
|
|
autoconf
|
|
automake --add-missing
|
|
runConfigure ./configure \
|
|
--with-pic \
|
|
--enable-pcre2-16 \
|
|
--enable-pcre2-32 \
|
|
--enable-jit \
|
|
--enable-pcre2grep-libz \
|
|
--enable-pcre2grep-libbz2 \
|
|
--enable-pcre2test-libedit \
|
|
#--enable-pcre2test-libreadline \
|
|
#--enable-debug
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool files
|
|
rm $libDir/libpcre2-*.la
|
|
|
|
# prepare develop/lib
|
|
prepareInstalledDevelLibs \
|
|
libpcre2-8 \
|
|
libpcre2-16 \
|
|
libpcre2-32 \
|
|
libpcre2-posix
|
|
fixPkgconfig
|
|
|
|
# fix pcre-config
|
|
fixDevelopLibDirReferences $binDir/pcre2-config
|
|
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
maybe_manDir_man1_pcre2_config=$manDir/man1/pcre2-config.1
|
|
maybe_manDir_man3=$manDir/man3
|
|
else
|
|
maybe_manDir_man1_pcre2_config=
|
|
maybe_manDir_man3=
|
|
rm -rf $documentationDir
|
|
fi
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$binDir/pcre2-config \
|
|
$developDir \
|
|
$maybe_manDir_man1_pcre2_config \
|
|
$maybe_manDir_man3
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|