void-packages/srcpkgs/pcre/template

55 lines
1.5 KiB
Text
Raw Normal View History

# Template file for 'pcre'
pkgname=pcre
2014-10-02 09:36:35 +00:00
version=8.36
2014-04-05 08:28:49 +00:00
revision=1
build_style=gnu-configure
configure_args="--enable-utf8 --enable-unicode-properties --with-pic
--enable-pcregrep-libz --enable-pcregrep-libbz2 --enable-newline-is-anycrlf
--enable-pcretest-libreadline --enable-jit --enable-static"
makedepends="zlib-devel bzip2-devel readline-devel>=6.3"
short_desc="Perl Compatible Regular Expressions"
maintainer="Juan RP <xtraeme@gmail.com>"
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"
2014-10-02 09:36:35 +00:00
checksum=ef833457de0c40e82f573e34528f43a751ff20257ad0e86d272ed5637eb845bb
if [ "$CROSS_BUILD" ]; then
hostmakedepends="automake libtool"
pre_configure() {
autoreconf -fi
}
fi
libpcrecpp_package() {
short_desc+=" - C++ shared libraries"
pkg_install() {
vmove "usr/lib/libpcrecpp.so.*"
}
}
libpcre_package() {
2013-05-29 06:37:39 +00:00
short_desc+=" - shared libraries"
replaces="pcre<8.11"
pkg_install() {
vmove "usr/lib/libpcre.so.*"
vmove "usr/lib/libpcreposix.so.*"
}
}
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"
pkg_install() {
vmove usr/bin/pcre-config
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/man/man1/pcre-config.1
vmove usr/share/man/man3
vmove usr/share/doc
}
}