wok-next annotate 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
rev   line source
al@19814 1 # SliTaz package receipt v2.
pankso@6 2
pankso@6 3 PACKAGE="pcre"
al@19814 4 VERSION="8.40"
pankso@202 5 CATEGORY="system-tools"
al@19814 6 SHORT_DESC="Perl 5 Compatible Regular Expression"
pankso@6 7 MAINTAINER="pankso@slitaz.org"
pascal@15375 8 LICENSE="BSD"
al@19567 9 WEB_SITE="http://www.pcre.org/"
al@19567 10
slaxemulator@7607 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@6 12 WGET_URL="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$TARBALL"
pankso@6 13
al@19814 14 BUILD_DEPENDS="zlib-dev bzip2-dev readline-dev valgrind-dev"
al@19814 15 SPLIT="pcre-apps pcre-dev"
al@19693 16
al@20443 17 compile_rules() {
al@19814 18 # http://www.linuxfromscratch.org/blfs/view/stable/general/pcre.html
pankso@12470 19 ./configure \
al@19693 20 --docdir=/usr/share/doc/pcre-$VERSION \
al@19693 21 --enable-unicode-properties \
al@16818 22 --enable-pcre16 \
al@16818 23 --enable-pcre32 \
al@19693 24 --enable-pcregrep-libz \
al@19693 25 --enable-pcregrep-libbz2 \
al@19693 26 --enable-pcretest-libreadline \
al@19693 27 --disable-static \
al@19221 28 --enable-jit \
al@19814 29 --enable-valgrind \
pankso@12470 30 $CONFIGURE_ARGS &&
al@19693 31 make && make install &&
al@19693 32
al@19693 33 mkdir -p $install/lib &&
al@19693 34 mv -v $install/usr/lib/libpcre.so.* $install/lib &&
al@19693 35 ln -sfv ../../lib/$(readlink $install/usr/lib/libpcre.so) \
al@19693 36 $install/usr/lib/libpcre.so
pankso@6 37 }
pankso@6 38
al@20443 39 genpkg_rules() {
al@19814 40 case $PACKAGE in
al@19814 41 pcre)
al@19814 42 copy *.so*
al@19814 43 CAT="system-tools|library"
al@19814 44 ;;
al@19814 45 *-apps)
al@20443 46 copy @std @rm
al@19814 47 DEPENDS="pcre bzlib ncurses readline zlib"
al@19814 48 CAT="development|applications"
al@19814 49 ;;
al@19814 50 *-dev) copy @dev;;
al@19814 51 esac
pankso@6 52 }