libraries/SDL_gfx: Updated for version 2.0.17

This commit is contained in:
Michiel van Wessem 2010-05-11 22:23:21 +02:00 committed by David Somero
parent d55edb9a62
commit fe5877350e
3 changed files with 23 additions and 27 deletions

View File

@ -5,6 +5,3 @@ SDL_gfx library evolved out of the SDL_gfxPrimitives code which
provided basic drawing routines such as lines, circles or polygons
and SDL_rotozoom which implemented a interpolating rotozoomer for
SDL surfaces.
homepage: http://www.ferzkopp.net/Software/SDL_gfx-2.0/

View File

@ -1,15 +1,13 @@
#!/bin/sh
# Slackware build script for: SDL_gfx
# Written by (Michiel van Wessem <BP{k}>) (michiel@slackbuilds.org)
# Copyright 2007 Michiel van Wessem (http://michielvwessem.wordpress.com)
# Copyright 2007-2008 Michiel van Wessem, Manchester, United Kingdom
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# *. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
@ -23,29 +21,27 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Modified slightly by the SlackBuilds.org Project
set -e
PRGNAM=SDL_gfx
VERSION=2.0.16
VERSION=2.0.17
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCFILES="AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS \
README README-rpm Docs/*"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
set -e # Exit on any error.
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@ -53,26 +49,29 @@ rm -rf $TMP/$PRGNAM-$VERSION
tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CFLAGm="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure --prefix=/usr \
./configure \
--prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc \
--with-x \
--disable-debug \
--disable-static \
--program-prefix="" \
--program-suffix=""
--disable-debug
make
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README README-rpm Docs/* \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
mkdir $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

View File

@ -1,8 +1,8 @@
PRGNAM="SDL_gfx"
VERSION="2.0.16"
VERSION="2.0.17"
HOMEPAGE="http://www.ferzkopp.net/joomla/content/view/19/14/"
DOWNLOAD="http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-2.0.16.tar.gz"
MD5SUM="22dc2d9d916197829f9342c490d2d02b"
DOWNLOAD="http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-2.0.17.tar.gz"
MD5SUM="a7ab98ad530fdc59a23f7dff502db8d3"
MAINTAINER="Michiel van Wessem"
EMAIL="michiel@slackbuilds.org"
APPROVED="alien"
APPROVED="David Somero"