Files
haikuports/dev-libs/libpcre/libpcre-8.21.recipe
Ingo Weinhold 9323b45483 Update libpcre recipe
* Add commands to provides.
* Fix autotools invocation order (it failed here before).
* Use jobArgs.
* Fix developLibDir paths in pcre-config.
* Remove unnecessary cd in TEST() (untested).
2013-04-30 20:38:41 +02:00

78 lines
1.7 KiB
Plaintext

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/"
LICENSE="PCRE"
COPYRIGHT="
1997-2011 University of Cambridge
2007-2011, Google Inc. All rights reserved.
"
SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.21.tar.bz2"
CHECKSUM_MD5="0a7b592bea64b7aa7f4011fc7171a730"
REVISION="4"
ARCHITECTURES="x86_gcc2 ?x86"
PROVIDES="
libpcre = $portVersion
cmd:pcre_config = $portVersion compat >= 8
cmd:pcregrep = $portVersion compat >= 8
cmd:pcretest = $portVersion compat >= 8
lib:libpcre = $portVersion compat >= 8
lib:libpcrecpp = $portVersion compat >= 8
lib:libpcreposix = $portVersion compat >= 8
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_REQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc
cmd:make
cmd:ld
cmd:libtoolize
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
"
SOURCE_DIR="pcre-$portVersion"
BUILD()
{
libtoolize --force --copy --install
aclocal
autoconf
automake --add-missing
./configure $configureDirArgs \
--enable-utf8 \
--enable-unicode-properties \
--with-pic
make $jobArgs
}
INSTALL()
{
make install
# prepare develop/lib
prepareInstalledDevelLibs libpcre libpcrecpp libpcreposix
fixPkgconfig
# fix pcre-config
fixDevelopLibDirReferences $binDir/pcre-config
}
TEST()
{
make check
}