summaryrefslogtreecommitdiff
path: root/libraries/SDL_gfx/SDL_gfx.SlackBuild
diff options
context:
space:
mode:
authorMichiel van Wessem <michiel@slackbuilds.org>2010-05-13 00:28:42 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:28:42 +0200
commit5afc7b7f7b842f5859e7bca09cae574e6b470cf2 (patch)
treec610e8204b4583c3be797fde901d622cbf3c22e1 /libraries/SDL_gfx/SDL_gfx.SlackBuild
parent549cdb1109fd0424ac8db28425f35730081b14b7 (diff)
downloadslackbuilds-5afc7b7f7b842f5859e7bca09cae574e6b470cf2.tar.gz
libraries/SDL_gfx: Updated for version 2.0.20
Diffstat (limited to 'libraries/SDL_gfx/SDL_gfx.SlackBuild')
-rw-r--r--libraries/SDL_gfx/SDL_gfx.SlackBuild16
1 files changed, 14 insertions, 2 deletions
diff --git a/libraries/SDL_gfx/SDL_gfx.SlackBuild b/libraries/SDL_gfx/SDL_gfx.SlackBuild
index 8bd1313325..08fc28040c 100644
--- a/libraries/SDL_gfx/SDL_gfx.SlackBuild
+++ b/libraries/SDL_gfx/SDL_gfx.SlackBuild
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=SDL_gfx
-VERSION=${VERSION:-2.0.19}
+VERSION=${VERSION:-2.0.20}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -32,10 +32,20 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+# Seems that having MMX enabled on x86_64 is not supported. So enabled
+# it for i[46]86, but disable it otherwise.
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+ MIX=${MIX:-"en"}
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+ MIX=${MIX:-"en"}
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+ MIX=${MIX:-"dis"}
fi
set -e # Exit on any error.
@@ -57,10 +67,12 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --${MIX}able-mmx \
--with-x \
--disable-static \
--disable-debug \
@@ -78,4 +90,4 @@ mkdir $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}