wok-next view pcre/receipt @ rev 20533

cairo-clock, grub4dos: fix CFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 27 12:50:45 2018 +0200 (2018-03-27)
parents c4e53a39395a
children 10df65db91ad
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/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/pcre.html"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$TARBALL"
15 BUILD_DEPENDS="zlib-dev bzip2-dev readline-dev valgrind-dev"
16 SPLIT="pcre-apps pcre-dev"
18 compile_rules() {
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 || return 1
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 }