CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
filesystem: removed lib32 directories
[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
13bea701
VM
8version=8.37
9release=5
10source=(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$version.tar.bz2
11 01-seven-security-patches.patch \
12 $name-$version-CVE-2015-5073.patch \
13 $name-$version-CVE-2015-XXXX.patch)
14
6dca1d21
JB
15
16build() {
17 cd pcre-$version
18
19 ./configure --build=$CHOST \
20 --host=$CTARGET \
21 --prefix=/usr \
6dca1d21 22 --enable-utf8 \
923627df 23 --enable-unicode-properties \
6a01185a
VM
24 --enable-jit \
25 --with-sysroot=$CLFS
26
27 # get rid of host lib search dirs from Makefiles
28 for mk in $(find -name Makefile) ; do
29 sed -i 's|-L/usr/lib||' $mk
30 done
31
32 # use same type fix as done for gcc port, to prevent libtool
33 # from linking in host libraries
34 for lt_file in $(find -name 'libtool') ; do
35 sed -i 's/func_append add_dir \" /add_dir=\"/' $lt_file
36 done
37
923627df 38
6dca1d21
JB
39 make
40 make DESTDIR=$PKG install
41
923627df 42 install -d $PKG/lib
8fc82c1b
VM
43 mv $PKG/usr/lib/libpcre.so.* $PKG/lib
44 ln -sf ../../lib/$(readlink $PKG/usr/lib/libpcre.so) $PKG/usr/lib/libpcre.so
923627df 45
13bea701
VM
46 rm -r $PKG/usr/share/doc
47 rm $PKG/usr/share/man/man3/{pcre{16,32}*,pcre_utf{16,32}*}
6dca1d21 48}