2008-10-04 06:29:49 +02:00
|
|
|
# Template file for 'pcre'
|
|
|
|
pkgname=pcre
|
2012-12-01 01:38:02 +01:00
|
|
|
version=8.32
|
2013-02-07 00:45:59 +01:00
|
|
|
revision=2
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2012-03-18 07:35:15 +01:00
|
|
|
configure_args="--enable-utf8 --enable-unicode-properties --with-pic
|
2012-07-07 13:29:56 +02:00
|
|
|
--enable-pcregrep-libz --enable-pcregrep-libbz2 --enable-newline-is-anycrlf
|
2012-08-23 15:49:55 +02:00
|
|
|
--enable-pcretest-libreadline --disable-pcregrep-jit --enable-jit
|
|
|
|
--disable-static"
|
2013-02-07 00:45:59 +01:00
|
|
|
makedepends="zlib-devel bzip2-devel readline-devel"
|
2008-09-29 22:32:08 +02:00
|
|
|
short_desc="Perl Compatible Regular Expressions"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-08-18 09:46:08 +02:00
|
|
|
homepage="http://www.pcre.org/"
|
|
|
|
license="BSD"
|
2012-07-07 13:22:16 +02:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/pcre/pcre-$version.tar.bz2"
|
2012-12-01 01:38:02 +01:00
|
|
|
checksum=a913fb9bd058ef380a2d91847c3c23fcf98e92dc3b47cd08a53c021c5cde0f55
|
2013-02-07 00:45:59 +01:00
|
|
|
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-04-23 14:24:58 +02:00
|
|
|
hostmakedepends="libtool automake"
|
2013-03-24 10:21:58 +01:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
2013-02-07 00:45:59 +01:00
|
|
|
fi
|
2013-04-10 18:56:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
libpcrecpp_package() {
|
|
|
|
short_desc+=" - C++ shared libraries"
|
|
|
|
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libpcrecpp.so*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libpcre_package() {
|
|
|
|
short_desc="${short_desc} - shared libraries"
|
|
|
|
replaces="pcre<8.11"
|
|
|
|
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libpcre.so*"
|
|
|
|
vmove "usr/lib/libpcreposix.so*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pcre-devel_package() {
|
|
|
|
depends="zlib-devel bzip2-devel libpcre>=${version} libpcrecpp>=${version}"
|
|
|
|
short_desc="${short_desc} (development files)"
|
|
|
|
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/pcre-config
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/man/man1/pcre-config.1
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
vmove usr/share/doc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pcre_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|