1
0
forked from ports/contrib

26 lines
724 B
Plaintext
Raw Normal View History

2008-03-07 02:23:16 +11:00
# Description: Python bindings for SDL.
# URL: http://pygame.org/
2008-03-26 13:45:31 +11:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
2008-03-07 02:23:16 +11:00
# Packager: Han Boetes, han at mijncomputer dot nl
# Depends on: numeric sdl_image sdl_mixer sdl_ttf
2007-02-13 08:40:55 +10:00
name=pygame
2008-07-30 01:22:54 +10:00
version=1.8.1
2008-03-30 18:41:26 +10:00
release=1
2007-02-13 08:40:55 +10:00
source=(http://www.pygame.org/ftp/pygame-${version}release.tar.gz)
build() {
2008-03-07 02:23:16 +11:00
cd pygame-${version}release
2008-03-30 18:41:26 +10:00
export CFLAGS="$CFLAGS -fno-strict-aliasing"
2008-03-07 15:26:05 +11:00
python config.py
2007-02-13 08:40:55 +10:00
python setup.py install --prefix=/usr --root $PKG
2008-03-30 18:41:26 +10:00
chmod a-x $PKG/usr/lib/python*/site-packages/pygame/*.so
2008-07-30 01:22:54 +10:00
find $PKG -name '*.h' -exec chmod 0644 {} \;
find $PKG \( \
-name 'pygame.ico' -o \
-name 'pygame_icon.*' -o \
-name 'freesansbold.ttf' \) -exec chmod 0644 {} \;
2007-02-13 08:40:55 +10:00
}
2008-03-07 02:23:16 +11:00