summaryrefslogtreecommitdiff
path: root/development/ming/ming.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-04-22 17:56:58 -0500
committerErik Hanson <erik@slackbuilds.org>2010-05-15 10:50:21 +0200
commit0a5eb8d6de66c5dabbb547dee9d550f5cf400940 (patch)
treee03b854d9829cda6a29f1350126839113359b931 /development/ming/ming.SlackBuild
parent69b8a78e98aa8d423b40ec978ecf576c069413c1 (diff)
downloadslackbuilds-0a5eb8d6de66c5dabbb547dee9d550f5cf400940.tar.gz
development/ming: Updated for version 0.4.3.
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