summaryrefslogtreecommitdiff
path: root/development/ming/ming.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/ming/ming.SlackBuild')
-rw-r--r--development/ming/ming.SlackBuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/development/ming/ming.SlackBuild b/development/ming/ming.SlackBuild
index b87f0f264c..1940551498 100644
--- a/development/ming/ming.SlackBuild
+++ b/development/ming/ming.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for ming
-# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at>
+# Copyright 2008-2010 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ming
-VERSION=0.4.2
+VERSION=0.4.3
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -35,12 +35,15 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ PERL_ARCH="i486"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ PERL_ARCH="i486"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ PERL_ARCH="x86_64"
LIBDIRSUFFIX="64"
fi
@@ -55,9 +58,6 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-# Fix a misplaced \" in the php_ext Makefile.in that prevents installation
-patch -p1 < $CWD/php_ext-Makefile.in.patch
-
# static library is activated because the perl extension needs it
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -91,6 +91,7 @@ cd -
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+mkdir -p $PKG/usr/man/man3
mv $PKG/usr/share/man/man3/* $PKG/usr/man/man3/
rm -rf $PKG/usr/share
@@ -99,7 +100,8 @@ rm -rf $PKG/usr/share
find $PKG -name "$i" -exec rm -rf {} \;
done
# Remove empty directory
- rmdir --parents $PKG/usr/lib$LIBDIRSUFFIX/perl5/5.10.0/i486-linux-thread-multi 2>/dev/null || true
+ PERLVER=$(perl -v | grep linux | cut -d " " -f 4 | sed "s/v//");
+ rmdir --parents $PKG/usr/lib$LIBDIRSUFFIX/perl5/$PERLVER/$PERL_ARCH-linux-thread-multi 2>/dev/null || true
)
( cd $PKG/usr/man || exit 1