wok-next view pcre/receipt @ rev 20490

nareto: update index.php path (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 12 11:53:39 2018 +0100 (2018-03-12)
parents 0e7893ac206d
children d43bf7aae921
line source
1 # SliTaz package receipt v2.
3 PACKAGE="pcre"
4 VERSION="8.40"
5 CATEGORY="system-tools"
6 SHORT_DESC="Perl 5 Compatible Regular Expression"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://www.pcre.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$TARBALL"
14 BUILD_DEPENDS="zlib-dev bzip2-dev readline-dev valgrind-dev"
15 SPLIT="pcre-apps pcre-dev"
17 compile_rules() {
18 # http://www.linuxfromscratch.org/blfs/view/stable/general/pcre.html
19 ./configure \
20 --docdir=/usr/share/doc/pcre-$VERSION \
21 --enable-unicode-properties \
22 --enable-pcre16 \
23 --enable-pcre32 \
24 --enable-pcregrep-libz \
25 --enable-pcregrep-libbz2 \
26 --enable-pcretest-libreadline \
27 --disable-static \
28 --enable-jit \
29 --enable-valgrind \
30 $CONFIGURE_ARGS &&
31 make && make install &&
33 mkdir -p $install/lib &&
34 mv -v $install/usr/lib/libpcre.so.* $install/lib &&
35 ln -sfv ../../lib/$(readlink $install/usr/lib/libpcre.so) \
36 $install/usr/lib/libpcre.so
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 pcre)
42 copy *.so*
43 CAT="system-tools|library"
44 ;;
45 *-apps)
46 copy @std @rm
47 DEPENDS="pcre bzlib ncurses readline zlib"
48 CAT="development|applications"
49 ;;
50 *-dev) copy @dev;;
51 esac
52 }