From 0a5eb8d6de66c5dabbb547dee9d550f5cf400940 Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Thu, 22 Apr 2010 17:56:58 -0500 Subject: development/ming: Updated for version 0.4.3. --- development/ming/ming.SlackBuild | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'development/ming/ming.SlackBuild') 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 +# 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 -- cgit v1.2.3