wok-next annotate pcre/receipt @ rev 21105

Small updates... "bzip2" and "cairo": follow "libpkg - pkg - pkg-dev" rule
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jan 04 17:29:48 2019 +0200 (2019-01-04)
parents d5aab818505e
children
rev   line source
al@19814 1 # SliTaz package receipt v2.
pankso@6 2
pankso@6 3 PACKAGE="pcre"
al@20905 4 VERSION="8.42"
al@20657 5 CATEGORY="meta"
al@19814 6 SHORT_DESC="Perl 5 Compatible Regular Expression"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15375 8 LICENSE="BSD"
al@19567 9 WEB_SITE="http://www.pcre.org/"
al@20905 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/pcre.html"
al@19567 11
slaxemulator@7607 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@20657 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@6 14
al@19814 15 BUILD_DEPENDS="zlib-dev bzip2-dev readline-dev valgrind-dev"
al@21020 16 SPLIT="libpcre libpcre16 libpcre32 libpcrecpp libpcreposix $PACKAGE-apps \
al@21020 17 $PACKAGE-dev"
al@19693 18
al@20443 19 compile_rules() {
pankso@12470 20 ./configure \
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@20604 31 fix libtool &&
al@20604 32 make &&
al@20604 33 make install || return 1
al@19693 34
al@20513 35 mkdir -p $install/lib
al@20513 36 mv -v $install/usr/lib/libpcre.so.* $install/lib
al@19693 37 ln -sfv ../../lib/$(readlink $install/usr/lib/libpcre.so) \
al@19693 38 $install/usr/lib/libpcre.so
pankso@6 39 }
pankso@6 40
al@20443 41 genpkg_rules() {
al@19814 42 case $PACKAGE in
al@19814 43 pcre)
al@20657 44 CAT="meta|old way compatibility meta-package"
al@20657 45 DEPENDS="libpcre libpcre16 libpcre32 libpcrecpp libpcreposix"
al@20657 46 ;;
al@20657 47 libpcre)
al@20657 48 copy libpcre.so*
al@20657 49 CAT="system-tools|PCRE library"
al@20657 50 DEPENDS=" "
al@20657 51 ;;
al@20657 52 libpcre16)
al@20657 53 copy libpcre16.so*
al@20657 54 CAT="system-tools|PCRE-16 library"
al@20657 55 DEPENDS=" "
al@20657 56 ;;
al@20657 57 libpcre32)
al@20657 58 copy libpcre32.so*
al@20657 59 CAT="system-tools|PCRE-32 library"
al@20657 60 DEPENDS=" "
al@20657 61 ;;
al@20657 62 libpcrecpp)
al@20657 63 copy libpcrecpp.so*
al@20657 64 CAT="system-tools|PCRE-CPP library"
al@20657 65 DEPENDS="libpcre"
al@20657 66 ;;
al@20657 67 libpcreposix)
al@20657 68 copy libpcreposix.so*
al@20657 69 CAT="system-tools|PCRE-POSIX library"
al@20657 70 DEPENDS=" "
al@19814 71 ;;
al@19814 72 *-apps)
al@20443 73 copy @std @rm
al@21105 74 DEPENDS="libpcre libpcre16 libpcre32 libpcreposix libbzip2 readline \
al@20657 75 zlib"
al@19814 76 CAT="development|applications"
al@19814 77 ;;
al@19814 78 *-dev) copy @dev;;
al@19814 79 esac
pankso@6 80 }