Files
haikuports/dev-python/pygame/pygame-1.9.1.recipe
Humdinger b82c8008b6 De-Lint recipes.
*	netpbm
	Re-arranged copright madness.

*	pygame
	Re-ordering blocks.
	Re-formatted patch properly.
	Added formerly undeclared patch. Doesn't build with or without.

*	python3_mako, python_mako
	Removed "." from SUMMARY.
	Re-ordering blocks.

*	python3_setuptools, python_setuptools
	Removed "." from SUMMARY.
	Re-ordering blocks.

*	qemu
	Removed "." from SUMMARY.
	Re-ordering blocks.

*	quassel
	Removed "." from SUMMARY.
	Re-ordering blocks.

*	qupzilla
	Removed "." from SUMMARY.
	Re-ordering blocks.
2015-07-23 08:01:11 +02:00

79 lines
2.1 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="http://www.pygame.org/ftp/pygame-1.9.1release.tar.gz"
CHECKSUM_SHA256="a26095472ae4be9631e0d5bfb9a52ac57a3a091e45757913128e4a473807d433"
SOURCE_DIR="pygame-1.9.1release"
PATCHES="pygame-1.9.1.patchset"
#
# 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"
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
"
#libjpeg ^
# |
BUILD_PREREQUIRES="
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
"
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
}