wok-next annotate pcre2/receipt @ rev 20348

ploticus (2.42)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 18 17:19:51 2017 +0100 (2017-11-18)
parents 7f34d19fe19e
children c4e53a39395a
rev   line source
al@19814 1 # SliTaz package receipt v2.
al@19221 2
al@19221 3 PACKAGE="pcre2"
al@19814 4 VERSION="10.23"
al@19221 5 CATEGORY="system-tools"
al@19814 6 SHORT_DESC="Perl 5 Compatible Regular Expression 2"
al@19221 7 MAINTAINER="al.bobylev@gmail.com"
al@19221 8 LICENSE="BSD"
al@19814 9 WEB_SITE="http://www.pcre.org/"
al@19814 10 HOST_ARCH="i486 arm"
al@19814 11
al@19221 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19221 13 WGET_URL="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$TARBALL"
al@19814 14
al@19814 15 BUILD_DEPENDS="zlib-dev bzip2-dev readline-dev valgrind-dev"
al@19814 16 SPLIT="pcre2-apps pcre2-dev"
al@19221 17
al@19221 18 # Rules to configure and make the package.
al@19221 19 compile_rules()
al@19221 20 {
al@19814 21 # http://www.linuxfromscratch.org/blfs/view/stable/general/pcre2.html
al@19221 22 ./configure \
al@19814 23 --docdir=/usr/share/doc/pcre2-$VERSION \
al@19814 24 --enable-unicode \
al@19221 25 --enable-pcre2-16 \
al@19221 26 --enable-pcre2-32 \
al@19814 27 --enable-pcre2grep-libz \
al@19814 28 --enable-pcre2grep-libbz2 \
al@19814 29 --enable-pcre2test-libreadline \
al@19814 30 --disable-static \
al@19221 31 --enable-jit \
al@19814 32 --enable-valgrind \
al@19221 33 $CONFIGURE_ARGS &&
al@19221 34 make && make install
al@19221 35
al@19814 36 # find $install/usr/share/man -type f -exec gzip -9 \{\} \;
al@19814 37 # for i in $(find $install/usr/share/man -type l); do
al@19814 38 # dest=$(readlink $i)
al@19814 39 # rm $i; ln -s $dest.gz $i.gz
al@19814 40 # done
al@19221 41 }
al@19221 42
al@19221 43 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19221 44 genpkg_rules()
al@19221 45 {
al@19814 46 case $PACKAGE in
al@19814 47 pcre2)
al@19814 48 copy *.so*
al@19814 49 CAT="system-tools|library"
al@19814 50 ;;
al@19814 51 *-apps)
al@19814 52 copy @std
al@19814 53 remove_already_packed
al@19814 54 DEPENDS="pcre2 bzlib ncurses readline zlib"
al@19814 55 CAT="development|applications"
al@19814 56 ;;
al@19814 57 *-dev)
al@19814 58 copy @dev
al@19814 59 ;;
al@19814 60 esac
al@19221 61 }