2008-10-04 04:29:49 +00:00
|
|
|
# Template file for 'pcre'
|
|
|
|
pkgname=pcre
|
2015-04-29 04:54:33 +00:00
|
|
|
version=8.37
|
2014-04-05 08:28:49 +00:00
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2012-03-18 06:35:15 +00:00
|
|
|
configure_args="--enable-utf8 --enable-unicode-properties --with-pic
|
2012-07-07 11:29:56 +00:00
|
|
|
--enable-pcregrep-libz --enable-pcregrep-libbz2 --enable-newline-is-anycrlf
|
2013-10-29 18:40:31 +00:00
|
|
|
--enable-pcretest-libreadline --enable-jit --enable-static"
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="zlib-devel bzip2-devel readline-devel"
|
2008-09-29 20:32:08 +00:00
|
|
|
short_desc="Perl Compatible Regular Expressions"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-08-18 07:46:08 +00:00
|
|
|
homepage="http://www.pcre.org/"
|
|
|
|
license="BSD"
|
2013-05-29 06:37:39 +00:00
|
|
|
#distfiles="${SOURCEFORGE_SITE}/pcre/pcre-$version.tar.gz"
|
|
|
|
distfiles="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-${version}.tar.bz2"
|
2015-04-29 04:54:33 +00:00
|
|
|
checksum=51679ea8006ce31379fb0860e46dd86665d864b5020fc9cd19e71260eef4789d
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENCE
|
|
|
|
}
|
2013-02-06 23:45:59 +00:00
|
|
|
|
2014-01-01 15:10:11 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends="automake libtool"
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
fi
|
2013-04-10 16:56:54 +00:00
|
|
|
|
|
|
|
libpcrecpp_package() {
|
|
|
|
short_desc+=" - C++ shared libraries"
|
|
|
|
pkg_install() {
|
2013-10-30 02:02:28 +00:00
|
|
|
vmove "usr/lib/libpcrecpp.so.*"
|
2013-04-10 16:56:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libpcre_package() {
|
2013-05-29 06:37:39 +00:00
|
|
|
short_desc+=" - shared libraries"
|
2013-04-10 16:56:54 +00:00
|
|
|
replaces="pcre<8.11"
|
|
|
|
pkg_install() {
|
2013-10-30 02:02:28 +00:00
|
|
|
vmove "usr/lib/libpcre.so.*"
|
|
|
|
vmove "usr/lib/libpcreposix.so.*"
|
2013-04-10 16:56:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pcre-devel_package() {
|
2013-12-15 20:16:16 +00:00
|
|
|
depends="zlib-devel bzip2-devel libpcre>=${version}_${revision} libpcrecpp>=${version}_${revision}"
|
2014-01-05 07:29:33 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-10 16:56:54 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/pcre-config
|
|
|
|
vmove usr/include
|
2013-10-29 18:40:31 +00:00
|
|
|
vmove "usr/lib/*.a"
|
2013-10-30 02:02:28 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-10 16:56:54 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/man/man1/pcre-config.1
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
vmove usr/share/doc
|
|
|
|
}
|
|
|
|
}
|