Commit | Line | Data |
---|---|---|
6dca1d21 JB |
1 | # Description: Perl Compatible Regular Expressions |
2 | # URL: http://www.pcre.org | |
3 | # Maintainer: CRUX System Team, core-ports at crux dot nu | |
b751b192 | 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
9efe8def | 5 | # Depends on: |
6dca1d21 JB |
6 | |
7 | name=libpcre | |
923627df | 8 | version=8.31 |
6dca1d21 JB |
9 | release=1 |
10 | source=(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$version.tar.bz2) | |
11 | ||
12 | build() { | |
13 | cd pcre-$version | |
14 | ||
15 | ./configure --build=$CHOST \ | |
16 | --host=$CTARGET \ | |
17 | --prefix=/usr \ | |
18 | --mandir=/usr/man \ | |
19 | --enable-utf8 \ | |
923627df VM |
20 | --enable-unicode-properties \ |
21 | --enable-jit | |
22 | ||
6dca1d21 JB |
23 | make |
24 | make DESTDIR=$PKG install | |
25 | ||
923627df VM |
26 | install -d $PKG/lib |
27 | local lib | |
28 | for lib in libpcre libpcrecpp libpcreposix ; do | |
29 | mv $PKG/usr/lib/${lib}.so* $PKG/lib | |
30 | ln -sf ../../lib/$(readlink $PKG/lib/${lib}.so) $PKG/usr/lib/${lib}.so | |
31 | rm $PKG/lib/${lib}.so | |
32 | done | |
33 | ||
6dca1d21 JB |
34 | rm -r $PKG/usr/share |
35 | } |