CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
man-pages: updated to 4.09
[crossrootfs.git] / libpcre / Pkgfile
CommitLineData
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
7name=libpcre
93a9499d
VM
8version=8.40
9release=1
10source=(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$version.tar.bz2)
13bea701 11
6dca1d21
JB
12
13build() {
14 cd pcre-$version
15
16 ./configure --build=$CHOST \
17 --host=$CTARGET \
18 --prefix=/usr \
6dca1d21 19 --enable-utf8 \
923627df 20 --enable-unicode-properties \
6a01185a
VM
21 --enable-jit \
22 --with-sysroot=$CLFS
23
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
27 done
28
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
33 done
34
923627df 35
6dca1d21
JB
36 make
37 make DESTDIR=$PKG install
38
923627df 39 install -d $PKG/lib
8fc82c1b
VM
40 mv $PKG/usr/lib/libpcre.so.* $PKG/lib
41 ln -sf ../../lib/$(readlink $PKG/usr/lib/libpcre.so) $PKG/usr/lib/libpcre.so
923627df 42
13bea701
VM
43 rm -r $PKG/usr/share/doc
44 rm $PKG/usr/share/man/man3/{pcre{16,32}*,pcre_utf{16,32}*}
6dca1d21 45}