wok-next view pcre/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="pcre"
4 VERSION="8.42"
5 CATEGORY="meta"
6 SHORT_DESC="Perl 5 Compatible Regular Expression"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://www.pcre.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/pcre.html"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="zlib-dev bzip2-dev readline-dev valgrind-dev"
16 SPLIT="libpcre libpcre16 libpcre32 libpcrecpp libpcreposix $PACKAGE-apps \
17 $PACKAGE-dev"
19 compile_rules() {
20 ./configure \
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 fix libtool &&
32 make &&
33 make install || return 1
35 mkdir -p $install/lib
36 mv -v $install/usr/lib/libpcre.so.* $install/lib
37 ln -sfv ../../lib/$(readlink $install/usr/lib/libpcre.so) \
38 $install/usr/lib/libpcre.so
39 }
41 genpkg_rules() {
42 case $PACKAGE in
43 pcre)
44 CAT="meta|old way compatibility meta-package"
45 DEPENDS="libpcre libpcre16 libpcre32 libpcrecpp libpcreposix"
46 ;;
47 libpcre)
48 copy libpcre.so*
49 CAT="system-tools|PCRE library"
50 DEPENDS=" "
51 ;;
52 libpcre16)
53 copy libpcre16.so*
54 CAT="system-tools|PCRE-16 library"
55 DEPENDS=" "
56 ;;
57 libpcre32)
58 copy libpcre32.so*
59 CAT="system-tools|PCRE-32 library"
60 DEPENDS=" "
61 ;;
62 libpcrecpp)
63 copy libpcrecpp.so*
64 CAT="system-tools|PCRE-CPP library"
65 DEPENDS="libpcre"
66 ;;
67 libpcreposix)
68 copy libpcreposix.so*
69 CAT="system-tools|PCRE-POSIX library"
70 DEPENDS=" "
71 ;;
72 *-apps)
73 copy @std @rm
74 DEPENDS="libpcre libpcre16 libpcre32 libpcreposix libbzip2 readline \
75 zlib"
76 CAT="development|applications"
77 ;;
78 *-dev) copy @dev;;
79 esac
80 }