import of pygame 1.5.6, submitted & maintained by Xavier Santolaria:

Pygame is a cross-platfrom library designed to make it easy to write
multimedia software, such as games, in Python.  Pygame requires the
Python language and SDL multimedia library.  It can also make use of
several other popular libraries.
This commit is contained in:
jolan 2003-08-08 21:48:58 +00:00
parent 0b65e95058
commit d1446928b7
10 changed files with 296 additions and 0 deletions

61
devel/pygame/Makefile Normal file
View File

@ -0,0 +1,61 @@
# $OpenBSD: Makefile,v 1.1.1.1 2003/08/08 21:48:58 jolan Exp $
COMMENT= "set of Python modules designed for writing games"
DISTNAME= pygame-1.5.6
CATEGORIES= devel games
HOMEPAGE= http://www.pygame.org/
MAINTAINER= Xavier Santolaria <xavier@santolaria.net>
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}ftp/
MODULES= python
BUILD_DEPENDS+= :py-Numeric-*:math/py-Numeric
LIB_DEPENDS= SDL_ttf::devel/sdl-ttf \
SDL_image::devel/sdl-image \
SDL_mixer::devel/sdl-mixer
MAKE_ENV+= LOCALBASE="${LOCALBASE}" \
SDL_CONFIG="${LOCALBASE}/bin/sdl-config"
EXAMPLESDIR= ${PREFIX}/share/examples/pygame
DOCDIR= ${PREFIX}/share/doc/pygame
DOCSUBDIRS= ref tut tut/chimp tut/surfarray \
tut/tom util
do-configure:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MODPY_BIN} config.py
post-build:
@perl -pi -e 's,/usr/bin/env python,/usr/bin/env python${MODPY_VERSION},g' \
${WRKSRC}/examples/*.py
@perl -pi -e 's,%%PYTHON%%,python${MODPY_VERSION},g' ${WRKSRC}/examples/*.py
post-install:
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/readme.txt ${EXAMPLESDIR}
${INSTALL_DATA_DIR} ${EXAMPLESDIR}/data
${INSTALL_SCRIPT} ${WRKSRC}/examples/data/* ${EXAMPLESDIR}/data
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/readme.* ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.{gif,html} ${DOCDIR}
.for i in ${DOCSUBDIRS}
${INSTALL_DATA_DIR} ${DOCDIR}/$i
${INSTALL_DATA} `find ${WRKSRC}/docs/$i -maxdepth 1 -type f` \
${DOCDIR}/$i
.endfor
do-regress:
@cd ${WRKSRC} && ${MODPY_BIN} ./run_tests.py
.include <bsd.port.mk>

3
devel/pygame/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (pygame-1.5.6.tar.gz) = d5ed5a18f463d898d590b77ea4ea9e00
RMD160 (pygame-1.5.6.tar.gz) = d7926fad0d65ac70981fd94d4d3680e8f4fc0afe
SHA1 (pygame-1.5.6.tar.gz) = 5213a71d5641713f89e617c0c7008bb18aaf176e

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-config_unix_py,v 1.1.1.1 2003/08/08 21:48:58 jolan Exp $
--- config_unix.py.orig Mon Feb 3 17:31:01 2003
+++ config_unix.py Fri Jul 25 10:59:52 2003
@@ -82,7 +82,7 @@ class Dependency:
for dir in libdirs:
for name in libnames:
path = os.path.join(dir, name)
- if os.path.isfile(path):
+ if filter(os.path.isfile, glob(path+'*')):
self.lib_dir = dir
if self.lib_dir and self.inc_dir:

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-examples_arraydemo_py,v 1.1.1.1 2003/08/08 21:48:58 jolan Exp $
--- examples/arraydemo.py.orig 2002-02-19 23:48:44.000000000 +0100
+++ examples/arraydemo.py 2003-08-08 21:17:52.000000000 +0200
@@ -1,3 +1,5 @@
+#!/usr/bin/env %%PYTHON%%
+
import os
try:
import pygame

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-examples_chimp_py,v 1.1.1.1 2003/08/08 21:48:58 jolan Exp $
--- examples/chimp.py.orig 2002-07-22 21:21:08.000000000 +0200
+++ examples/chimp.py 2003-08-08 21:18:17.000000000 +0200
@@ -1,4 +1,4 @@
-#/usr/bin/env python
+#!/usr/bin/env python
"""
This simple example is used for the line-by-line tutorial
that comes with pygame. It is based on a 'popular' web banner.

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-examples_fonty_py,v 1.1.1.1 2003/08/08 21:48:58 jolan Exp $
--- examples/fonty.py.orig 2002-01-05 10:17:53.000000000 +0100
+++ examples/fonty.py 2003-08-08 21:18:45.000000000 +0200
@@ -1,3 +1,4 @@
+#!/usr/bin/env %%PYTHON%%
"""Here we load a .TTF font file, and display it in
a basic pygame window. It demonstrates several of the
@@ -65,4 +66,4 @@ def main():
if __name__ == '__main__': main()
-
\ No newline at end of file
+

View File

@ -0,0 +1,8 @@
$OpenBSD: patch-examples_liquid_py,v 1.1.1.1 2003/08/08 21:48:58 jolan Exp $
--- examples/liquid.py.orig 2002-01-05 10:17:53.000000000 +0100
+++ examples/liquid.py 2003-08-08 21:19:13.000000000 +0200
@@ -1,3 +1,4 @@
+#!/usr/bin/env %%PYTHON%%
"""This examples demonstrates a simplish water effect of an
image. It attempts to create a hardware display surface that

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-examples_uberball_py,v 1.1.1.1 2003/08/08 21:48:58 jolan Exp $
--- examples/uberball.py.orig 2002-05-29 02:03:40.000000000 +0200
+++ examples/uberball.py 2003-08-08 21:19:54.000000000 +0200
@@ -1,4 +1,4 @@
-#/usr/bin/env python
+#!/usr/bin/env python
"""
ÜberBall python source by Geoff Howland. 04-28-02

4
devel/pygame/pkg/DESCR Normal file
View File

@ -0,0 +1,4 @@
Pygame is a cross-platfrom library designed to make it easy to write
multimedia software, such as games, in Python. Pygame requires the
Python language and SDL multimedia library. It can also make use of
several other popular libraries.

166
devel/pygame/pkg/PLIST Normal file
View File

@ -0,0 +1,166 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/08/08 21:48:58 jolan Exp $
include/python${MODPY_VERSION}/pygame/CPS.h
include/python${MODPY_VERSION}/pygame/font.h
include/python${MODPY_VERSION}/pygame/mixer.h
include/python${MODPY_VERSION}/pygame/pygame.h
include/python${MODPY_VERSION}/pygame/setproctitle.h
lib/python${MODPY_VERSION}/site-packages/pygame/__init__.py
lib/python${MODPY_VERSION}/site-packages/pygame/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/pygame/base.so
lib/python${MODPY_VERSION}/site-packages/pygame/cdrom.so
lib/python${MODPY_VERSION}/site-packages/pygame/color.py
lib/python${MODPY_VERSION}/site-packages/pygame/color.pyc
lib/python${MODPY_VERSION}/site-packages/pygame/colordict.py
lib/python${MODPY_VERSION}/site-packages/pygame/colordict.pyc
lib/python${MODPY_VERSION}/site-packages/pygame/constants.so
lib/python${MODPY_VERSION}/site-packages/pygame/cursors.py
lib/python${MODPY_VERSION}/site-packages/pygame/cursors.pyc
lib/python${MODPY_VERSION}/site-packages/pygame/display.so
lib/python${MODPY_VERSION}/site-packages/pygame/draw.so
lib/python${MODPY_VERSION}/site-packages/pygame/event.so
lib/python${MODPY_VERSION}/site-packages/pygame/font.so
lib/python${MODPY_VERSION}/site-packages/pygame/freesansbold.ttf
lib/python${MODPY_VERSION}/site-packages/pygame/image.so
lib/python${MODPY_VERSION}/site-packages/pygame/imageext.so
lib/python${MODPY_VERSION}/site-packages/pygame/joystick.so
lib/python${MODPY_VERSION}/site-packages/pygame/key.so
lib/python${MODPY_VERSION}/site-packages/pygame/locals.py
lib/python${MODPY_VERSION}/site-packages/pygame/locals.pyc
lib/python${MODPY_VERSION}/site-packages/pygame/mixer.so
lib/python${MODPY_VERSION}/site-packages/pygame/mixer_music.so
lib/python${MODPY_VERSION}/site-packages/pygame/mouse.so
lib/python${MODPY_VERSION}/site-packages/pygame/movie.so
lib/python${MODPY_VERSION}/site-packages/pygame/pygame.ico
lib/python${MODPY_VERSION}/site-packages/pygame/pygame_icon.bmp
lib/python${MODPY_VERSION}/site-packages/pygame/pygame_icon.icns
lib/python${MODPY_VERSION}/site-packages/pygame/pygame_icon.tiff
lib/python${MODPY_VERSION}/site-packages/pygame/rect.so
lib/python${MODPY_VERSION}/site-packages/pygame/rwobject.so
lib/python${MODPY_VERSION}/site-packages/pygame/sndarray.so
lib/python${MODPY_VERSION}/site-packages/pygame/sprite.py
lib/python${MODPY_VERSION}/site-packages/pygame/sprite.pyc
lib/python${MODPY_VERSION}/site-packages/pygame/surface.so
lib/python${MODPY_VERSION}/site-packages/pygame/surfarray.so
lib/python${MODPY_VERSION}/site-packages/pygame/surflock.so
lib/python${MODPY_VERSION}/site-packages/pygame/sysfont.py
lib/python${MODPY_VERSION}/site-packages/pygame/sysfont.pyc
lib/python${MODPY_VERSION}/site-packages/pygame/time.so
lib/python${MODPY_VERSION}/site-packages/pygame/transform.so
lib/python${MODPY_VERSION}/site-packages/pygame/version.py
lib/python${MODPY_VERSION}/site-packages/pygame/version.pyc
share/doc/pygame/index.html
share/doc/pygame/logos.html
share/doc/pygame/pygame_logo.gif
share/doc/pygame/pygame_powered.gif
share/doc/pygame/pygame_small.gif
share/doc/pygame/pygame_tiny.gif
share/doc/pygame/readme.html
share/doc/pygame/readme.txt
share/doc/pygame/ref/CD.html
share/doc/pygame/ref/Channel.html
share/doc/pygame/ref/Clock.html
share/doc/pygame/ref/Font.html
share/doc/pygame/ref/Joystick.html
share/doc/pygame/ref/Movie.html
share/doc/pygame/ref/Rect.html
share/doc/pygame/ref/Sound.html
share/doc/pygame/ref/Surface.html
share/doc/pygame/ref/pygame.html
share/doc/pygame/ref/pygame_cdrom.html
share/doc/pygame/ref/pygame_color.html
share/doc/pygame/ref/pygame_constants.html
share/doc/pygame/ref/pygame_cursors.html
share/doc/pygame/ref/pygame_display.html
share/doc/pygame/ref/pygame_draw.html
share/doc/pygame/ref/pygame_event.html
share/doc/pygame/ref/pygame_font.html
share/doc/pygame/ref/pygame_image.html
share/doc/pygame/ref/pygame_joystick.html
share/doc/pygame/ref/pygame_key.html
share/doc/pygame/ref/pygame_mixer.html
share/doc/pygame/ref/pygame_mixer_music.html
share/doc/pygame/ref/pygame_mouse.html
share/doc/pygame/ref/pygame_movie.html
share/doc/pygame/ref/pygame_sndarray.html
share/doc/pygame/ref/pygame_sprite.html
share/doc/pygame/ref/pygame_surfarray.html
share/doc/pygame/ref/pygame_time.html
share/doc/pygame/ref/pygame_transform.html
share/doc/pygame/tut/DisplayModes.html
share/doc/pygame/tut/Executable.html
share/doc/pygame/tut/ImportInit.html
share/doc/pygame/tut/MoveIt.html
share/doc/pygame/tut/SpriteIntro.html
share/doc/pygame/tut/chimp/ChimpLineByLine.html
share/doc/pygame/tut/chimp/chimp.py.html
share/doc/pygame/tut/chimp/chimpshot.gif
share/doc/pygame/tut/newbieguide.html
share/doc/pygame/tut/surfarray/SurfarrayIntro.html
share/doc/pygame/tut/surfarray/allblack.jpg
share/doc/pygame/tut/surfarray/flipped.jpg
share/doc/pygame/tut/surfarray/imgarray.jpg
share/doc/pygame/tut/surfarray/redimg.jpg
share/doc/pygame/tut/surfarray/scaledown.jpg
share/doc/pygame/tut/surfarray/scaleup.jpg
share/doc/pygame/tut/surfarray/soften.jpg
share/doc/pygame/tut/surfarray/striped.jpg
share/doc/pygame/tut/surfarray/xfade.jpg
share/doc/pygame/tut/tom/MakeGames.html
share/doc/pygame/tut/tom/basic.png
share/doc/pygame/tut/tom/event-flowchart.png
share/doc/pygame/tut/tom/formulae.png
share/doc/pygame/tut/tom/games2.html
share/doc/pygame/tut/tom/games3.html
share/doc/pygame/tut/tom/games4.html
share/doc/pygame/tut/tom/games5.html
share/doc/pygame/tut/tom/games6.html
share/doc/pygame/tut/tom/radians.png
share/doc/pygame/util/doclate.html
share/doc/pygame/util/listlate.html
share/doc/pygame/util/makedocs.py
share/doc/pygame/util/pagelate.html
share/examples/pygame/aliens.py
share/examples/pygame/arraydemo.py
share/examples/pygame/chimp.py
share/examples/pygame/data/alien1.gif
share/examples/pygame/data/alien2.gif
share/examples/pygame/data/alien3.gif
share/examples/pygame/data/arraydemo.bmp
share/examples/pygame/data/background.gif
share/examples/pygame/data/bomb.gif
share/examples/pygame/data/bong.wav
share/examples/pygame/data/boom.wav
share/examples/pygame/data/car_door.wav
share/examples/pygame/data/chimp.bmp
share/examples/pygame/data/danger.gif
share/examples/pygame/data/explosion1.gif
share/examples/pygame/data/fist.bmp
share/examples/pygame/data/house_lo.wav
share/examples/pygame/data/liquid.bmp
share/examples/pygame/data/oldplayer.gif
share/examples/pygame/data/player1.gif
share/examples/pygame/data/punch.wav
share/examples/pygame/data/secosmic_lo.wav
share/examples/pygame/data/shot.gif
share/examples/pygame/data/whiff.wav
share/examples/pygame/fonty.py
@comment share/examples/pygame/glcube.py
share/examples/pygame/liquid.py
share/examples/pygame/moveit.py
share/examples/pygame/oldalien.py
share/examples/pygame/readme.txt
share/examples/pygame/sound.py
share/examples/pygame/stars.py
share/examples/pygame/uberball.py
share/examples/pygame/vgrade.py
@dirrm share/examples/pygame/data
@dirrm share/examples/pygame
@dirrm share/doc/pygame/util
@dirrm share/doc/pygame/tut/tom
@dirrm share/doc/pygame/tut/surfarray
@dirrm share/doc/pygame/tut/chimp
@dirrm share/doc/pygame/tut
@dirrm share/doc/pygame/ref
@dirrm share/doc/pygame
@dirrm lib/python${MODPY_VERSION}/site-packages/pygame
@dirrm include/python${MODPY_VERSION}/pygame