libraries/guichan: Initial import

This commit is contained in:
Erik Hanson 2010-05-11 14:56:15 +02:00
parent 059b8477e3
commit 8014ab6870
4 changed files with 77 additions and 0 deletions

3
libraries/guichan/README Normal file
View file

@ -0,0 +1,3 @@
Guichan is a small, efficient C++ GUI library designed for games.
It comes with a standard set of widgets and can use several
different objects for displaying graphics and grabbing user input.

View file

@ -0,0 +1,55 @@
#!/bin/sh
# Slackware build script for guichan
# Written by Erik Hanson erik@slackbuilds.org
PRGNAM=guichan
VERSION=0.5.0
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
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
rm -rf $PRGNAM-$VERSION-src
tar xzvf $CWD/$PRGNAM-$VERSION-src.tar.gz || exit 1
cd $PRGNAM-$VERSION-src || exit 1
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
|| exit 1
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
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -ar AUTHORS COPYING ChangeLog NEWS README TODO docs/html \
$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-$VERSION-$ARCH-$BUILD$TAG.tgz

View file

@ -0,0 +1,8 @@
PRGNAM="guichan"
VERSION="0.5.0"
HOMEPAGE="http://guichan.sourceforge.net/"
DOWNLOAD="http://dl.sourceforge.net/sourceforge/guichan/guichan-0.5.0-src.tar.gz"
MD5SUM="c9fcbcb360105247da06afc5c643e664"
MAINTAINER="Erik Hanson"
EMAIL="erik@slackbuilds.org"
APPROVED="elohim,robw810"

View file

@ -0,0 +1,11 @@
guichan: guichan - Darkbits Graphical User Interface Library for games.
guichan:
guichan: Guichan is a small, efficient C++ GUI library designed for games.
guichan: It comes with a standard set of widgets and can use several
guichan: different objects for displaying graphics and grabbing user input.
guichan:
guichan:
guichan:
guichan:
guichan: http://guichan.sourceforge.net/
guichan: