2008-10-04 06:29:49 +02:00
|
|
|
# Template file for 'pcre'
|
|
|
|
pkgname=pcre
|
2013-12-15 21:16:16 +01:00
|
|
|
version=8.34
|
|
|
|
revision=1
|
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
|
2013-10-29 19:40:31 +01:00
|
|
|
--enable-pcretest-libreadline --enable-jit --enable-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"
|
2013-05-29 08:37:39 +02:00
|
|
|
#distfiles="${SOURCEFORGE_SITE}/pcre/pcre-$version.tar.gz"
|
|
|
|
distfiles="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-${version}.tar.bz2"
|
2013-12-15 21:16:16 +01:00
|
|
|
checksum=b6043ae1ff2720be665ffa28dc22b7c637cdde96f389a116c0c3020caeae583f
|
2013-02-07 00:45:59 +01:00
|
|
|
|
2014-01-01 16:10:11 +01:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends="automake libtool"
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
fi
|
2013-04-10 18:56:54 +02:00
|
|
|
|
|
|
|
libpcrecpp_package() {
|
|
|
|
short_desc+=" - C++ shared libraries"
|
|
|
|
pkg_install() {
|
2013-10-30 03:02:28 +01:00
|
|
|
vmove "usr/lib/libpcrecpp.so.*"
|
2013-04-10 18:56:54 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libpcre_package() {
|
2013-05-29 08:37:39 +02:00
|
|
|
short_desc+=" - shared libraries"
|
2013-04-10 18:56:54 +02:00
|
|
|
replaces="pcre<8.11"
|
|
|
|
pkg_install() {
|
2013-10-30 03:02:28 +01:00
|
|
|
vmove "usr/lib/libpcre.so.*"
|
|
|
|
vmove "usr/lib/libpcreposix.so.*"
|
2013-04-10 18:56:54 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pcre-devel_package() {
|
2013-12-15 21:16:16 +01:00
|
|
|
depends="zlib-devel bzip2-devel libpcre>=${version}_${revision} libpcrecpp>=${version}_${revision}"
|
2013-05-29 08:37:39 +02:00
|
|
|
short_desci+=" - development files"
|
2013-04-10 18:56:54 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/pcre-config
|
|
|
|
vmove usr/include
|
2013-10-29 19:40:31 +01:00
|
|
|
vmove "usr/lib/*.a"
|
2013-10-30 03:02:28 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-10 18:56:54 +02:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/man/man1/pcre-config.1
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
vmove usr/share/doc
|
|
|
|
}
|
|
|
|
}
|