From fe5877350e4f27878ba7d4fc46c3175b07955117 Mon Sep 17 00:00:00 2001 From: Michiel van Wessem Date: Tue, 11 May 2010 22:23:21 +0200 Subject: libraries/SDL_gfx: Updated for version 2.0.17 --- libraries/SDL_gfx/README | 3 --- libraries/SDL_gfx/SDL_gfx.SlackBuild | 39 ++++++++++++++++++------------------ libraries/SDL_gfx/SDL_gfx.info | 8 ++++---- 3 files changed, 23 insertions(+), 27 deletions(-) diff --git a/libraries/SDL_gfx/README b/libraries/SDL_gfx/README index 53b20cb102..fb6089a3d0 100644 --- a/libraries/SDL_gfx/README +++ b/libraries/SDL_gfx/README @@ -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/ - diff --git a/libraries/SDL_gfx/SDL_gfx.SlackBuild b/libraries/SDL_gfx/SDL_gfx.SlackBuild index 903e4c12d9..28e139d3e1 100644 --- a/libraries/SDL_gfx/SDL_gfx.SlackBuild +++ b/libraries/SDL_gfx/SDL_gfx.SlackBuild @@ -1,15 +1,13 @@ #!/bin/sh # Slackware build script for: SDL_gfx -# Written by (Michiel van Wessem ) (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 diff --git a/libraries/SDL_gfx/SDL_gfx.info b/libraries/SDL_gfx/SDL_gfx.info index 6415bbec1f..826a007d5e 100644 --- a/libraries/SDL_gfx/SDL_gfx.info +++ b/libraries/SDL_gfx/SDL_gfx.info @@ -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" -- cgit v1.2.3