libraries/gtkglarea: Added to 12.1 repository

This commit is contained in:
Kyle Guinn 2010-05-11 22:54:02 +02:00 committed by Erik Hanson
parent 554a4b2601
commit 68c18de9e0
4 changed files with 85 additions and 0 deletions

View file

@ -0,0 +1,10 @@
GtkGLArea is an OpenGL widget for GTK+ GUI toolkit.
Just as GTK+ is built on top of GDK, GtkGLArea is built on top of gdkgl which
is basically a wrapper around GLX functions. The widget itself is very
similar to the GtkDrawingArea widget and adds only three extra functions.
Lower level gdkgl functions make it easy to render on any OpenGL capable
widget; rendering to off-screen pixmaps is also supported.
This project appears to be abandoned in favor of GtkGLExt, but is still
required by a few programs.

View file

@ -0,0 +1,56 @@
#!/bin/sh
# Slackware build script for gtkglarea
# Written by Kyle Guinn <elyk03@gmail.com>
PRGNAM="gtkglarea"
VERSION="1.99.0"
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM-$VERSION
OUTPUT=${OUTPUT:-/tmp}
DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README"
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 -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-st .
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-shared \
--disable-static \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $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="gtkglarea"
VERSION="1.99.0"
HOMEPAGE="http://www.student.oulu.fi/~jlof/gtkglarea/"
DOWNLOAD="http://www.vg.kernel.org/pub/mirrors/gentoo/source/distfiles/gtkglarea-1.99.0.tar.bz2"
MD5SUM="cd69f77240ae8038f95a2e5e0b7e5f25"
MAINTAINER="Kyle Guinn"
EMAIL="elyk03@gmail.com"
APPROVED="Erik Hanson"

View file

@ -0,0 +1,11 @@
gtkglarea: GtkGLArea (OpenGL widget for GTK+)
gtkglarea:
gtkglarea: GtkGLArea is an OpenGL widget for GTK+ GUI toolkit.
gtkglarea: Just as GTK+ is built on top of GDK, GtkGLArea is built on top of
gtkglarea: gdkgl which is basically a wrapper around GLX functions. The
gtkglarea: widget itself is very similar to the GtkDrawingArea widget and
gtkglarea: adds only three extra functions. Lower level gdkgl functions
gtkglarea: make it easy to render on any OpenGL capable widget; rendering
gtkglarea: to off-screen pixmaps is also supported.
gtkglarea:
gtkglarea: