# New ports collection makefile for: py-game # Date created: 14 December 2000 # Whom: Maxim Sobolev # # $FreeBSD$ # PORTNAME= py-game PORTVERSION= 1.4 CATEGORIES= devel python MASTER_SITES= http://pygame.seul.org/ftp/ DISTNAME= ${PORTNAME:S/-//}-${PORTVERSION} MAINTAINER= sobomax@FreeBSD.org BUILD_DEPENDS= ${PYDISTUTILS} \ ${PYNUMERIC} LIB_DEPENDS= SDL_ttf.3:${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= ${PYNUMERIC} SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config USE_PYTHON= yes SETUP_CMD= cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} MAKE_ENV= SDL_CONFIG="${SDL_CONFIG}" .include .if (${PYTHON_VERSION} == "python2.1" || ${PYTHON_VERSION} == "python2.2") 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 do-build: @${SETUP_CMD} setup.py build do-install: @${SETUP_CMD} setup.py install .if !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/examples/py-game ${TAR} -C ${WRKSRC}/examples -cf - . | \ ${TAR} --unlink -C ${PREFIX}/share/examples/py-game -xf - ${MKDIR} ${PREFIX}/share/doc/py-game ${TAR} -C ${WRKSRC}/docs -cf - . | \ ${TAR} --unlink -C ${PREFIX}/share/doc/py-game -xf - .endif .include