mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-11 06:10:06 +02:00
HaikuPorter now does not care what is in ARCHITECTURES when building for a SECONDARY_ARCHITECTURE.
74 lines
1.9 KiB
Bash
74 lines
1.9 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_gcc2 x86"
|
|
#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
|
|
}
|