1 # Description: Perl Compatible Regular Expressions
2 # URL: http://www.pcre.org
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
10 source=(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$version.tar.bz2)
16 ./configure --build=$CHOST \
20 --enable-unicode-properties \
24 # get rid of host lib search dirs from Makefiles
25 for mk in $(find -name Makefile) ; do
26 sed -i 's|-L/usr/lib||' $mk
29 # use same type fix as done for gcc port, to prevent libtool
30 # from linking in host libraries
31 for lt_file in $(find -name 'libtool') ; do
32 sed -i 's/func_append add_dir \" /add_dir=\"/' $lt_file
37 make DESTDIR=$PKG install
40 mv $PKG/usr/lib/libpcre.so.* $PKG/lib
41 ln -sf ../../lib/$(readlink $PKG/usr/lib/libpcre.so) $PKG/usr/lib/libpcre.so
43 rm -r $PKG/usr/share/doc
44 rm $PKG/usr/share/man/man3/{pcre{16,32}*,pcre_utf{16,32}*}