summaryrefslogtreecommitdiffstats
path: root/base/pcre/Pkgfile
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2011-01-05 16:08:18 +0100
committersibel <lesibel@free.fr>2011-01-05 16:08:18 +0100
commite483757fce4fce523dcac8548f1e3e1a03205086 (patch)
tree1f49f1e33fbb6dd53a626c3aab0c12c69b395253 /base/pcre/Pkgfile
parenta6af705998694a4c44508d32fca8257a75ce15ec (diff)
downloadnutyx-pakxe-e483757fce4fce523dcac8548f1e3e1a03205086.tar.gz
nutyx-pakxe-e483757fce4fce523dcac8548f1e3e1a03205086.tar.bz2
nutyx-pakxe-e483757fce4fce523dcac8548f1e3e1a03205086.tar.xz
nutyx-pakxe-e483757fce4fce523dcac8548f1e3e1a03205086.zip
pcre, maj 8.11-1
Diffstat (limited to 'base/pcre/Pkgfile')
-rwxr-xr-xbase/pcre/Pkgfile11
1 files changed, 9 insertions, 2 deletions
diff --git a/base/pcre/Pkgfile b/base/pcre/Pkgfile
index 305423643..c2d870e4a 100755
--- a/base/pcre/Pkgfile
+++ b/base/pcre/Pkgfile
@@ -5,14 +5,16 @@
# Depends on:
name=pcre
-version=8.10
+version=8.11
release=1
source=( http://downloads.sourceforge.net/$name/$name-$version.tar.bz2 )
build() {
-
cd $name-$version
+
+ [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"
+
./configure --prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
@@ -24,4 +26,9 @@ build() {
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share/doc
+
+ # grep uses pcre, so we need the libs in /lib
+ install -dm755 $PKG/lib
+ cp -a $PKG/usr/lib/libpcre.so.* $PKG/lib/
+ ln -sf ../../lib/libpcre.so.0 $PKG/usr/lib/libpcre.so
}