mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
pygame recipe. Only x86_gcc2. Patchset in wrong format as haikuporter -e does not work for me.
This commit is contained in:
@@ -1,32 +1,85 @@
|
||||
SUMMARY="PyGame - a popular game development module for python"
|
||||
DESCRIPTION="
|
||||
pygame - python bindings to sdl and other libs that facilitate game production.
|
||||
PyGame - python bindings to sdl and other libs that facilitate game production.
|
||||
"
|
||||
HOMEPAGE="http://www.pygame.org"
|
||||
HOMEPAGE="http://www.pygame.org/"
|
||||
SRC_URI="http://www.pygame.org/ftp/pygame-1.9.1release.tar.gz"
|
||||
CHECKSUM_MD5="1c4cdc708d17c8250a2d78ef997222fc"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="dev-lang/python >= 2.6.4
|
||||
media-libs/libsdl >= 1.2.14
|
||||
media-libs/sdl-image >= 1.2.10
|
||||
media-libs/smpeg >= 0.4.5"
|
||||
CHECKSUM_SHA256="a26095472ae4be9631e0d5bfb9a52ac57a3a091e45757913128e4a473807d433"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd pygame-1.9.1release
|
||||
LOCALBASE=/boot/common/
|
||||
python setup.py build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd pygame-1.9.1release
|
||||
python setup.py install --root=${DESTDIR}
|
||||
}
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
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 >= $haikuVersion
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user