mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
67 lines
1.6 KiB
Bash
67 lines
1.6 KiB
Bash
SUMMARY="Perl5 Compatible Regular Expressions"
|
|
DESCRIPTION="
|
|
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 proprietary software.
|
|
This package contains the native API."
|
|
HOMEPAGE="http://www.pcre.org/"
|
|
COPYRIGHT="1997-2011 University of Cambridge
|
|
2007-2011 Google Inc. All rights reserved."
|
|
LICENSE="PCRE"
|
|
REVISION="8"
|
|
SOURCE_URI="http://sourceforge.net/projects/pcre/files/pcre/8.21/pcre-8.21.tar.bz2"
|
|
CHECKSUM_SHA256="a4b8509d11fc2764fb4e1415b764ad2c214459edc011ce48aeeb6bbe1ac599e3"
|
|
SOURCE_DIR="pcre-$portVersion"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
|
|
|
|
PROVIDES="
|
|
libpcre0${secondaryArchSuffix} = $portVersion
|
|
lib:libpcre${secondaryArchSuffix} = 0.0.1 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
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 \
|
|
--enable-utf8 \
|
|
--enable-unicode-properties \
|
|
--with-pic --disable-cpp --disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install-exec-am
|
|
|
|
rm -Rf $binDir $libDir/libpcreposix* \
|
|
$libDir/libpcre.la $libDir/libpcre.so
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|