libraries/PyOpenGL: Added (Python binding to OpenGL)

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Evandro Alves Rodrigues 2010-08-03 02:33:41 -05:00 committed by Erik Hanson
parent 0753bf962e
commit e389e347db
4 changed files with 96 additions and 0 deletions

View file

@ -0,0 +1,57 @@
#!/bin/sh
# Slackware build script for PyOpenGL
# Written by Evandro Alves Rodrigues
PRGNAM=PyOpenGL
VERSION=${VERSION:-3.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
else
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
python setup.py install --root=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
ChangeLog.txt PKG-INFO license.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -0,0 +1,10 @@
PRGNAM="PyOpenGL"
VERSION="3.0.1"
HOMEPAGE="http://pyopengl.sourceforge.net/"
DOWNLOAD="http://sourceforge.net/projects/pyopengl/files/PyOpenGL/3.0.1/PyOpenGL-3.0.1.tar.gz/download"
MD5SUM="cdf03284f24279b8d9914bb680a37b5e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Evandro Alves Rodrigues"
EMAIL="evandrofisico@gmail.com"
APPROVED="rworkman"

10
libraries/PyOpenGL/README Normal file
View file

@ -0,0 +1,10 @@
PyOpenGL is the cross platform Python binding to OpenGL and related APIs.
The binding is created using the standard (in Python 2.5 and above) ctypes
library and is provided under a BSD-style Open-Source license.
PyOpenGL includes support for OpenGL v1.1 through 3.2, GLU, GLUT v3.7 (and
FreeGLUT), and GLE 3. It also has support for hundreds of OpenGL extensions.
PyOpenGL is interoperable with a large number of external GUI libraries for
Python including wxPython, Pygame, PyGTK, and Qt. It can also use the GLUT
library to provide basic windowing and user interface mechanisms.

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
PyOpenGL: PyOpenGL (Python binding to OpenGL)
PyOpenGL:
PyOpenGL: PyOpenGL is the cross platform Python binding to OpenGL and related
PyOpenGL: APIs. The binding is created using the standard (in Python 2.5 and
PyOpenGL: above) ctypes library, and is provided under an extremely liberal
PyOpenGL: BSD-style Open-Source license.
PyOpenGL:
PyOpenGL:
PyOpenGL:
PyOpenGL:
PyOpenGL: