summaryrefslogtreecommitdiff
path: root/devel/py-game
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-01-09 23:10:22 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-01-09 23:10:22 +0000
commitd5893b14f49a2458eb379e53abccdf25ce909425 (patch)
tree63bfb57268d8f7140938a377559a7f847ee1218b /devel/py-game
parentAdd SUSv2 compatible fcvt() function ripped from glibc. fcvt() is required by (diff)
Update to 0.5.
Diffstat (limited to 'devel/py-game')
-rw-r--r--devel/py-game/Makefile6
-rw-r--r--devel/py-game/distinfo2
-rw-r--r--devel/py-game/files/patch-aa34
3 files changed, 35 insertions, 7 deletions
diff --git a/devel/py-game/Makefile b/devel/py-game/Makefile
index 45e2c8cd7e74..1eac609d8d52 100644
--- a/devel/py-game/Makefile
+++ b/devel/py-game/Makefile
@@ -6,18 +6,20 @@
#
PORTNAME= py-game
-PORTVERSION= 0.4
+PORTVERSION= 0.5
CATEGORIES= devel python
MASTER_SITES= http://pygame.seul.org/ftp/
DISTNAME= ${PORTNAME:S/-//}-${PORTVERSION}
MAINTAINER= sobomax@FreeBSD.org
-BUILD_DEPENDS= ${PYDISTUTILS}
+BUILD_DEPENDS= ${PYDISTUTILS} \
+ ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/numpy
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
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/numpy
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
diff --git a/devel/py-game/distinfo b/devel/py-game/distinfo
index 9185b3e686a4..5244d471988e 100644
--- a/devel/py-game/distinfo
+++ b/devel/py-game/distinfo
@@ -1 +1 @@
-MD5 (pygame-0.4.tar.gz) = 6575358c5f440cbaae9561e26c5a666c
+MD5 (pygame-0.5.tar.gz) = a565ed4c502f06e734d21bc3252440a8
diff --git a/devel/py-game/files/patch-aa b/devel/py-game/files/patch-aa
index 3244d79d9bd0..f8c2d01c627c 100644
--- a/devel/py-game/files/patch-aa
+++ b/devel/py-game/files/patch-aa
@@ -1,6 +1,6 @@
---- config_unix.py 2000/12/16 08:03:29 1.1
-+++ config_unix.py 2000/12/16 08:23:56
-@@ -4,7 +4,9 @@
+--- config_unix.py.orig Sat Jan 6 19:18:37 2001
++++ config_unix.py Tue Jan 9 19:37:48 2001
+@@ -4,8 +4,12 @@
import os, sys, shutil
from glob import glob
@@ -9,5 +9,31 @@
+except KeyError: configcommand = 'sdl-config'
+configcommand = configcommand + ' --version --cflags --libs'
-
++try: localbase = os.environ['LOCALBASE']
++except KeyError: localbase = ''
+ class Dependency:
+ def __init__(self, name, checkhead, checklib, lib):
+@@ -57,12 +61,16 @@
+ flags have been used, which will likely require a little editing."""
+
+ print 'Hunting dependencies...'
+- incdir = libdir = ''
+- for arg in configinfo.split():
+- if arg.startswith('-I'):
+- incdir = arg[2:]
+- elif arg.startswith('-L'):
+- libdir = arg[2:]
++ if localbase != '':
++ incdir = localbase + '/include/SDL11'
++ libdir = localbase + '/lib'
++ else:
++ incdir = libdir = ''
++ for arg in configinfo.split():
++ if arg.startswith('-I'):
++ incdir = arg[2:]
++ elif arg.startswith('-L'):
++ libdir = arg[2:]
+ #print 'INCDIR', incdir
+ #print 'LIBDIR', libdir
+ for d in DEPS: