diff options
author | Phil Warner <pc_warner@yahoo.com> | 2010-05-11 20:00:40 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 20:00:40 +0200 |
commit | 66dc7ae353903de15efe8528e8e0ad73c0940d43 (patch) | |
tree | 4c0e8dd31523e51939622c50966b532a76b1e221 /libraries/CEGUI/CEGUI.SlackBuild | |
parent | e968c78f8c822163f6baded9175f64433603f33a (diff) |
libraries/CEGUI: Added to 12.0 repository
Diffstat (limited to 'libraries/CEGUI/CEGUI.SlackBuild')
-rw-r--r-- | libraries/CEGUI/CEGUI.SlackBuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/libraries/CEGUI/CEGUI.SlackBuild b/libraries/CEGUI/CEGUI.SlackBuild new file mode 100644 index 000000000000..77008519a0ea --- /dev/null +++ b/libraries/CEGUI/CEGUI.SlackBuild @@ -0,0 +1,57 @@ +#!/bin/sh + +# Slackware build script for CEGUI +# Written by Phil Warner <pc_warner@yahoo.com> +# Modified by Robby Workman <rworkman@slackbuilds.org> + +PRGNAM=CEGUI +VERSION=0.5.0 +PKG_VERSION=${VERSION}b +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$PKG_VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R a-s,u+rw,go-w . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --disable-debug + +make force_arch="$ARCH" +make install DESTDIR=$PKG + +( 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 +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp AUTHORS COPYING README ChangeLog TODO $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERSION-$ARCH-$BUILD$TAG.tgz |