aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-13 00:28:42 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:28:42 +0200
commit549cdb1109fd0424ac8db28425f35730081b14b7 (patch)
tree35042fb8c054c74fc16100c1935a6b3bc3b07b8c
parentefb5f10ea942edc0c3fae7fdab7862830f2990d8 (diff)
libraries/SDL_Pango: Updated for version 0.1.2
-rw-r--r--libraries/SDL_Pango/SDL_Pango.SlackBuild39
-rw-r--r--libraries/SDL_Pango/SDL_Pango.info2
2 files changed, 35 insertions, 6 deletions
diff --git a/libraries/SDL_Pango/SDL_Pango.SlackBuild b/libraries/SDL_Pango/SDL_Pango.SlackBuild
index 14786fa26ce48..92e843f6cd9a3 100644
--- a/libraries/SDL_Pango/SDL_Pango.SlackBuild
+++ b/libraries/SDL_Pango/SDL_Pango.SlackBuild
@@ -1,14 +1,33 @@
#!/bin/sh
-
+#
# Slackware build script for SDL_Pango
-# Written by Erik Hanson erik@slackbuilds.org
-# Modified by the SlackBuilds.org project
+#
+# Copyright 2009 Erik W. Hanson, Minneapolis, MN, USA
+# 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
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=SDL_Pango
VERSION=0.1.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -16,8 +35,13 @@ 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"
fi
rm -rf $PKG
@@ -34,6 +58,7 @@ patch -p0 < $CWD/SDL_Pango-0.1.2-API-adds.patch || exit 1
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
|| exit 1
@@ -42,8 +67,10 @@ make || exit 1
make install DESTDIR=$PKG || exit 1
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -55,4 +82,4 @@ mkdir -p $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}
diff --git a/libraries/SDL_Pango/SDL_Pango.info b/libraries/SDL_Pango/SDL_Pango.info
index 6c5288562dbbb..aba8696fa3ba4 100644
--- a/libraries/SDL_Pango/SDL_Pango.info
+++ b/libraries/SDL_Pango/SDL_Pango.info
@@ -2,7 +2,9 @@ PRGNAM="SDL_Pango"
VERSION="0.1.2"
HOMEPAGE="http://sdlpango.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/sdlpango/SDL_Pango-0.1.2.tar.gz"
+DOWNLOAD_x86_64=""
MD5SUM="85bbf9bb7b1cee0538154dadd045418c"
+MD5SUM_x86_64=""
MAINTAINER="Erik Hanson"
EMAIL="erik@slackbuilds.org"
APPROVED="rworkman"