aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--devel/py-game/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/devel/py-game/Makefile b/devel/py-game/Makefile
index a01cdb1f42c7..df4d28cad7cf 100644
--- a/devel/py-game/Makefile
+++ b/devel/py-game/Makefile
@@ -14,12 +14,12 @@ DISTNAME= ${PORTNAME:S/-//}-${PORTVERSION}
MAINTAINER= sobomax@FreeBSD.org
BUILD_DEPENDS= ${PYDISTUTILS} \
- ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/numpy
+ ${PYNUMERIC}
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
+RUN_DEPENDS= ${PYNUMERIC}
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
@@ -27,6 +27,14 @@ USE_PYTHON= yes
SETUP_CMD= cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD}
MAKE_ENV= SDL_CONFIG="${SDL_CONFIG}"
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_VERSION} == "python2.1"
+PYNUMERIC= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric
+.else
+PYNUMERIC= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric17
+.endif
+
do-configure:
@${SETUP_CMD} config.py
@@ -36,4 +44,4 @@ do-build:
do-install:
@${SETUP_CMD} setup.py install
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>