Files
haikuports/dev-python/pygame/python_pygame-1.9.3.recipe
2017-08-24 12:08:39 +02:00

72 lines
1.7 KiB
Bash

SUMMARY="A popular game development module for python"
DESCRIPTION="PyGame - python bindings to sdl and other libs that facilitate \
game production."
HOMEPAGE="http://www.pygame.org/"
COPYRIGHT="2000-2004, 2007 Pete Shinners
2004 Takafumi Mizuno
2006-2007 Rene Dudfield
2007 Richard Goedeken
2007-2008 Marcus von Appen"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/61/06/3c25051549c252cc6fde01c8aeae90b96831370884504fe428a623316def/pygame-1.9.3.tar.gz#md5=ac744ea6952b68d5f2b6d02a6d8e836c"
CHECKSUM_SHA256="751021819bdc0cbe5cbd51904abb6ff9e9aee5b0e8955af02284d0e77d6c9ec2"
SOURCE_DIR="pygame-$portVersion"
PATCHES="pygame-$portVersion.patchset"
ARCHITECTURES="?x86 ?x86_gcc2 x86_64"
PROVIDES="
pygame = $portVersion
"
REQUIRES="
cmd:python2
lib:libjpeg
lib:libpng16
lib:libsdl
lib:libsdl_gfx
lib:libsdl_image
lib:libsdl_mixer
lib:libsdl_ttf
lib:libsmpeg_0.4
"
# portmidi ^
# portmap |
BUILD_REQUIRES="
haiku_devel
setuptools_python
devel:libjpeg
devel:libpng16
devel:libsdl
devel:libsdl_gfx
devel:libsdl_image
devel:libsdl_mixer
devel:libsdl_ttf
devel:libsmpeg_0.4
"
BUILD_PREREQUIRES="
cmd:python2
cmd:gcc
"
BUILD()
{
# don't build without features
echo "y" | $portPackageLinksDir/cmd~python2/bin/python2 setup.py build || exit 1
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python2/bin/python2
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
echo "y" | $portPackageLinksDir/cmd~python2/bin/python2 setup.py \
build install --prefix $prefix || exit 1
}