62 lines
1.4 KiB
Text
62 lines
1.4 KiB
Text
# Template file for 'pcre'
|
|
pkgname=pcre
|
|
version=8.32
|
|
revision=2
|
|
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 --disable-pcregrep-jit --enable-jit
|
|
--disable-static"
|
|
makedepends="zlib-devel bzip2-devel readline-devel"
|
|
short_desc="Perl Compatible Regular Expressions"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://www.pcre.org/"
|
|
license="BSD"
|
|
distfiles="${SOURCEFORGE_SITE}/pcre/pcre-$version.tar.bz2"
|
|
checksum=a913fb9bd058ef380a2d91847c3c23fcf98e92dc3b47cd08a53c021c5cde0f55
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends="automake"
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
fi
|
|
|
|
|
|
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
|
|
}
|
|
}
|