diff options
Diffstat (limited to 'development/ming/ming.SlackBuild')
-rw-r--r-- | development/ming/ming.SlackBuild | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/development/ming/ming.SlackBuild b/development/ming/ming.SlackBuild index 09007f7acd..7cc39896be 100644 --- a/development/ming/ming.SlackBuild +++ b/development/ming/ming.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for ming -# Copyright 2008-2011 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2008-2012 Heinz Wiesinger, Amsterdam, The Netherlands # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=ming VERSION=0.4.4 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -65,6 +65,12 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . +# Fix PHP 5.4 compatibility +patch -p0 -d php_ext -i $CWD/patch-ming.c.diff + +# Fix building against perl 5.16 +patch -p1 -i $CWD/0001-GvCV-isn-t-an-lvalue-since-Perl-5.13.10.patch + # static library is activated because the perl extension needs it CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -81,9 +87,15 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -cd php_ext - make install DESTDIR=$PKG -cd - +# Building the php extension against a zts enabled php fails currently. +# Feel free to uncomment this in case you have a normal php. -HW + +#cd php_ext +# make install DESTDIR=$PKG +#cd - + +# Install config file for PHP. +#install -D -m 644 $CWD/ming.ini $PKG/etc/php/ming.ini.new cd py_ext python setup.py install --root=$PKG @@ -95,9 +107,6 @@ cd perl_ext make install DESTDIR=$PKG cd - -# Install config file for PHP. -install -D -m 644 $CWD/ming.ini $PKG/etc/php/ming.ini.new - find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null |