diff options
author | sobomax <sobomax@FreeBSD.org> | 2000-12-18 17:02:09 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2000-12-18 17:02:09 +0000 |
commit | 82a9eb917c148dc71e1b31a2daba0aa41af618bd (patch) | |
tree | adcbe7b2d056311151277be548c9cd34aedc58b9 /devel/py-game | |
parent | 95383bf79bbe3466c9a9ae9a36fca7c2058e8634 (diff) | |
download | FreeBSD-ports-82a9eb917c148dc71e1b31a2daba0aa41af618bd.zip FreeBSD-ports-82a9eb917c148dc71e1b31a2daba0aa41af618bd.tar.gz |
Add Pygame. Pygame is a cross-platfrom library designed to make it easy to
write multimedia software, such as games, in Python.
Diffstat (limited to 'devel/py-game')
-rw-r--r-- | devel/py-game/Makefile | 37 | ||||
-rw-r--r-- | devel/py-game/distinfo | 1 | ||||
-rw-r--r-- | devel/py-game/files/patch-aa | 13 | ||||
-rw-r--r-- | devel/py-game/files/patch-ab | 13 | ||||
-rw-r--r-- | devel/py-game/pkg-comment | 1 | ||||
-rw-r--r-- | devel/py-game/pkg-descr | 4 | ||||
-rw-r--r-- | devel/py-game/pkg-plist | 33 |
7 files changed, 102 insertions, 0 deletions
diff --git a/devel/py-game/Makefile b/devel/py-game/Makefile new file mode 100644 index 0000000..45e2c8c --- /dev/null +++ b/devel/py-game/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: py-game +# Date created: 14 December 2000 +# Whom: Maxim Sobolev <sobomax@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= py-game +PORTVERSION= 0.4 +CATEGORIES= devel python +MASTER_SITES= http://pygame.seul.org/ftp/ +DISTNAME= ${PORTNAME:S/-//}-${PORTVERSION} + +MAINTAINER= sobomax@FreeBSD.org + +BUILD_DEPENDS= ${PYDISTUTILS} +LIB_DEPENDS= SDL_ttf.2:${PORTSDIR}/graphics/sdl_ttf \ + SDL_image.10:${PORTSDIR}/graphics/sdl_image \ + SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer \ + smpeg.1:${PORTSDIR}/graphics/smpeg + +SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config + +USE_PYTHON= yes +SETUP_CMD= cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} +MAKE_ENV= SDL_CONFIG="${SDL_CONFIG}" + +do-configure: + ${SETUP_CMD} config.py + +do-build: + ${SETUP_CMD} setup.py build + +do-install: + ${SETUP_CMD} setup.py install + +.include <bsd.port.mk> diff --git a/devel/py-game/distinfo b/devel/py-game/distinfo new file mode 100644 index 0000000..9185b3e --- /dev/null +++ b/devel/py-game/distinfo @@ -0,0 +1 @@ +MD5 (pygame-0.4.tar.gz) = 6575358c5f440cbaae9561e26c5a666c diff --git a/devel/py-game/files/patch-aa b/devel/py-game/files/patch-aa new file mode 100644 index 0000000..3244d79 --- /dev/null +++ b/devel/py-game/files/patch-aa @@ -0,0 +1,13 @@ +--- config_unix.py 2000/12/16 08:03:29 1.1 ++++ config_unix.py 2000/12/16 08:23:56 +@@ -4,7 +4,9 @@ + import os, sys, shutil + from glob import glob + +-configcommand = 'sdl-config --version --cflags --libs' ++try: configcommand = os.environ['SDL_CONFIG'] ++except KeyError: configcommand = 'sdl-config' ++configcommand = configcommand + ' --version --cflags --libs' + + + diff --git a/devel/py-game/files/patch-ab b/devel/py-game/files/patch-ab new file mode 100644 index 0000000..cf06875 --- /dev/null +++ b/devel/py-game/files/patch-ab @@ -0,0 +1,13 @@ +--- Setup.in 2000/12/16 09:11:55 1.1 ++++ Setup.in 2000/12/16 09:12:14 +@@ -4,8 +4,8 @@ + SDL = -I/usr/include/SDL -D_REENTRANT -lSDL + FONT = -lSDL_ttf + IMAGE = -lSDL_image +-MIXER = -lSDL_mixer +-SMPEG = -lsmpeg ++MIXER = -lSDL_mixer -lgcc_r ++SMPEG = -lsmpeg -lgcc_r + #--EndConfig + + diff --git a/devel/py-game/pkg-comment b/devel/py-game/pkg-comment new file mode 100644 index 0000000..70c2cb4 --- /dev/null +++ b/devel/py-game/pkg-comment @@ -0,0 +1 @@ +A module designed to write games in Python diff --git a/devel/py-game/pkg-descr b/devel/py-game/pkg-descr new file mode 100644 index 0000000..a8d528d --- /dev/null +++ b/devel/py-game/pkg-descr @@ -0,0 +1,4 @@ +Pygame is a cross-platfrom library designed to make it easy to write +multimedia software, such as games, in Python. + +WWW: http://pygame.seul.org diff --git a/devel/py-game/pkg-plist b/devel/py-game/pkg-plist new file mode 100644 index 0000000..b0a3d6a --- /dev/null +++ b/devel/py-game/pkg-plist @@ -0,0 +1,33 @@ +include/%%PYTHON_VERSION%%/pygame/font.h +include/%%PYTHON_VERSION%%/pygame/mixer.h +include/%%PYTHON_VERSION%%/pygame/pygame.h +lib/%%PYTHON_VERSION%%/site-packages/pygame/UserRect.py +lib/%%PYTHON_VERSION%%/site-packages/pygame/UserRect.pyc +lib/%%PYTHON_VERSION%%/site-packages/pygame/__init__.py +lib/%%PYTHON_VERSION%%/site-packages/pygame/__init__.pyc +lib/%%PYTHON_VERSION%%/site-packages/pygame/base.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/bluebold.ttf +lib/%%PYTHON_VERSION%%/site-packages/pygame/bluebold.txt +lib/%%PYTHON_VERSION%%/site-packages/pygame/cdrom.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/constants.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/cursors.py +lib/%%PYTHON_VERSION%%/site-packages/pygame/cursors.pyc +lib/%%PYTHON_VERSION%%/site-packages/pygame/display.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/event.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/font.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/ignore.pth +lib/%%PYTHON_VERSION%%/site-packages/pygame/image.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/joystick.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/key.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/locals.py +lib/%%PYTHON_VERSION%%/site-packages/pygame/locals.pyc +lib/%%PYTHON_VERSION%%/site-packages/pygame/mixer.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/mixer_music.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/mouse.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/rect.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/rwobject.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/surface.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/surfarray.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/time.so +@dirrm lib/%%PYTHON_VERSION%%/site-packages/pygame +@dirrm include/%%PYTHON_VERSION%%/pygame |