Files
haikuports/dev-python/pygame/pygame-1.9.1.recipe
Oliver Tappe 52b344b97b Drop references to $haikuVersion.
* Referring the current haiku version explicitly is not needed, since
  the RequiresUpdater takes care of setting the version of Haiku used
  for building a package.
2014-12-14 23:08:52 +01:00

86 lines
2.1 KiB
Plaintext

SUMMARY="PyGame - 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/"
SRC_URI="http://www.pygame.org/ftp/pygame-1.9.1release.tar.gz"
CHECKSUM_MD5="1c4cdc708d17c8250a2d78ef997222fc"
CHECKSUM_SHA256="a26095472ae4be9631e0d5bfb9a52ac57a3a091e45757913128e4a473807d433"
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"
#
# No stable python_x86 => impossible to build _x86
#
ARCHITECTURES="x86 ?x86_gcc2"
SECONDARY_ARCHITECTURES="x86_gcc2 ?x86"
#ARCHITECTURES="x86"
#if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# # x86_gcc2 is fine as primary target architecture as long as we're building
# # for a different secondary architecture.
# ARCHITECTURES="$ARCHITECTURES x86_gcc2"
#fi
#SECONDARY_ARCHITECTURES="x86"
SOURCE_DIR="pygame-1.9.1release"
PROVIDES="
pygame${secondaryArchSuffix} = $portVersion
"
# python$secondaryArchSuffix >= 2.6.4
REQUIRES="
python >= 2.6.4
libsdl$secondaryArchSuffix >= 1.2.14
sdl_image$secondaryArchSuffix >= 1.2.10
sdl_ttf$secondaryArchSuffix >= 1.2
sdl_mixer$secondaryArchSuffix >= 1.2
smpeg$secondaryArchSuffix >= 0.4.5
lib:libpng$secondaryArchSuffix
jpeg$secondaryArchSuffix
sdl_gfx$secondaryArchSuffix
"
# portmidi ^
# portmap |
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
python >= 2.6.4
gcc${secondaryArchSuffix}
libsdl${secondaryArchSuffix}_devel >= 1.2.14
sdl_image${secondaryArchSuffix}_devel >= 1.2.10
sdl_ttf${secondaryArchSuffix}_devel >= 1.2
sdl_mixer${secondaryArchSuffix}_devel >= 1.2
libpng${secondaryArchSuffix}_devel
jpeg${secondaryArchSuffix}_devel
smpeg${secondaryArchSuffix}_devel >= 0.4.5
sdl_gfx${secondaryArchSuffix}_devel
"
#libjpeg ^
# |
BUILD_PREREQUIRES="
"
BUILD()
{
# $portPackageLinksDir/cmd~python/bin/python setup.py build
# don't build without features
echo "n" | python setup.py build || exit 1
}
INSTALL()
{
# don't build without features
echo "n" | python setup.py install \
--prefix=$prefix || exit 1
}