# HG changeset patch # User Yuri Pourre # Date 1449163303 7200 # Node ID 7cd0cf16851e885f5a82e3a398d09025984a86d9 # Parent 1acd9b9a92737e3a1aacd04673197db5826a14ba Add python-opengl diff -r 1acd9b9a9273 -r 7cd0cf16851e python-opengl/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-opengl/receipt Thu Dec 03 15:21:43 2015 -0200 @@ -0,0 +1,32 @@ +# SliTaz package receipt. + +PACKAGE="python-opengl" +SOURCE="PyOpenGL" +VERSION="3.0.2" +CATEGORY="development" +SHORT_DESC="Cross platform Python binding to OpenGL." +MAINTAINER="yuripourre@gmail.com" +LICENSE="BSD" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://pyopengl.sf.net" +WGET_URL="https://pypi.python.org/packages/source/P/$SOURCE/$TARBALL" + +https://pypi.python.org/packages/source/P/PyOpenGL/PyOpenGL-3.0.2.tar.gz#md5=77becc24ffc0a6b28030aa109ad7ff8b + +DEPENDS="python python-numpy python-pil freeglut" +BUILD_DEPENDS="python python-dev freeglut-dev" + +# Rules to configure and make the package. +compile_rules() +{ + { + python setup.py build && + python setup.py install --root=$DESTDIR + } 2>&1 | grep -Ev '(conftest.c:|configtest.c:)' +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $install/usr $fs +}