diff options
Diffstat (limited to 'development/Cython/Cython.SlackBuild')
-rw-r--r-- | development/Cython/Cython.SlackBuild | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/development/Cython/Cython.SlackBuild b/development/Cython/Cython.SlackBuild index 16ab688b46878..1447085c30b6e 100644 --- a/development/Cython/Cython.SlackBuild +++ b/development/Cython/Cython.SlackBuild @@ -1,9 +1,12 @@ #!/bin/sh # Slackware build script for Cython +# Home Page http://www.cython.org/ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> +# New Maintainer - Nishant Limbachia <nishant _AT_ mnspace _DOT_ net> - 11/04/2011 + PRGNAM=Cython -VERSION=${VERSION:-0.14} +VERSION=${VERSION:-0.15.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -20,6 +23,20 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + set -e rm -rf $PKG @@ -35,6 +52,7 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +CFLAGS="$SLKCFLAGS" \ python setup.py install --root=$PKG --prefix=/usr find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ |