diff options
author | Robby Workman <rw@rlworkman.net> | 2010-05-11 14:56:13 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 14:56:13 +0200 |
commit | 375545c2c0a9a5450eb5c0cd572b23443402267d (patch) | |
tree | 0d37223fa4ce888277140b08aa753f1d80ae137a /libraries | |
parent | 2c73612cbcd18e853199181eefd5aee33196876e (diff) |
libraries/fox-toolkit: Initial import
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/fox-toolkit/README | 4 | ||||
-rw-r--r-- | libraries/fox-toolkit/fox-toolkit.SlackBuild | 101 | ||||
-rw-r--r-- | libraries/fox-toolkit/fox-toolkit.info | 8 | ||||
-rw-r--r-- | libraries/fox-toolkit/slack-desc | 11 |
4 files changed, 124 insertions, 0 deletions
diff --git a/libraries/fox-toolkit/README b/libraries/fox-toolkit/README new file mode 100644 index 0000000000000..da21eedeb6f10 --- /dev/null +++ b/libraries/fox-toolkit/README @@ -0,0 +1,4 @@ +FOX is a C++ based Toolkit for developing Graphical User Interfaces +easily and effectively. The FOX toolkit is fast and memory-efficient +and has a large selection of Controls available to programmers. + diff --git a/libraries/fox-toolkit/fox-toolkit.SlackBuild b/libraries/fox-toolkit/fox-toolkit.SlackBuild new file mode 100644 index 0000000000000..f0c079451a8d9 --- /dev/null +++ b/libraries/fox-toolkit/fox-toolkit.SlackBuild @@ -0,0 +1,101 @@ +#!/bin/sh + +# Slackware build script for fox-toolkit + +# Copyright 2006-2007 Robby Workman (http://rlworkman.net) +# 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=fox-toolkit +VERSION=1.6.25 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +# If you have a video card that supports hardware accelerated OpenGL, +# then set the variable below to "YES" - otherwise, "NO" +# This can be specified on the command line when calling the build script: +# OPENGL=NO ./fox-toolkit.SlackBuild +# It is probably safe to leave this enabled even if you only have software +# "mesa" rendering. If you encounter problems or slowdown, let us know. +OPENGL=${OPENGL:-YES} + +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 fox-$VERSION +tar -xzvf $CWD/fox-$VERSION.tar.gz || exit 1 +cd fox-$VERSION || exit 1 +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +# If OPENGL=YES above, then enable opengl; otherwise, disable it. +if [ "$OPENGL" = "YES" ]; then + do_opengl="yes" + else + do_opengl="no" +fi + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --enable-static=no \ + --with-opengl=${do_opengl} \ + --enable-threadsafe \ + --enable-release \ + || 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 +) + +if [ -d $PKG/usr/man ]; then +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done +) +fi + +mkdir -p $PKG/usr/doc +mv $PKG/usr/share/doc/fox-1.6 $PKG/usr/doc/$PRGNAM-$VERSION +cp -a ADDITIONS AUTHORS INSTALL LICENSE LICENSE_ADDENDUM README TRACING \ + $PKG/usr/doc/$PRGNAM-$VERSION +rm -rf $PKG/usr/share +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 diff --git a/libraries/fox-toolkit/fox-toolkit.info b/libraries/fox-toolkit/fox-toolkit.info new file mode 100644 index 0000000000000..859b7e323eac0 --- /dev/null +++ b/libraries/fox-toolkit/fox-toolkit.info @@ -0,0 +1,8 @@ +PRGNAM="fox-toolkit" +VERSION="1.6.25" +HOMEPAGE="http://www.fox-toolkit.org/ " +DOWNLOAD="http://www.fox-toolkit.org/ftp/fox-1.6.25.tar.gz" +MD5SUM="216095ac8d78f5376415f72b309bf50d" +MAINTAINER="Robby Workman" +EMAIL="rw@rlworkman.net" +APPROVED="elohim" diff --git a/libraries/fox-toolkit/slack-desc b/libraries/fox-toolkit/slack-desc new file mode 100644 index 0000000000000..619f95e37bb32 --- /dev/null +++ b/libraries/fox-toolkit/slack-desc @@ -0,0 +1,11 @@ +fox-toolkit: FOX C++ Graphical Toolkit +fox-toolkit: +fox-toolkit: FOX is a C++ based Toolkit for developing Graphical User Interfaces +fox-toolkit: easily and effectively. The FOX toolkit is fast and memory-efficient +fox-toolkit: and has a large selection of Controls available to programmers. +fox-toolkit: +fox-toolkit: http://www.fox-toolkit.org/ +fox-toolkit: +fox-toolkit: +fox-toolkit: +fox-toolkit: |