2000-12-18 12:02:09 -05:00
|
|
|
# New ports collection makefile for: py-game
|
|
|
|
# Date created: 14 December 2000
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= py-game
|
2002-06-05 17:03:37 -04:00
|
|
|
PORTVERSION= 1.5
|
2000-12-18 12:02:09 -05:00
|
|
|
CATEGORIES= devel python
|
|
|
|
MASTER_SITES= http://pygame.seul.org/ftp/
|
|
|
|
DISTNAME= ${PORTNAME:S/-//}-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
|
|
|
|
2002-04-29 10:01:09 -04:00
|
|
|
BUILD_DEPENDS= ${PYNUMERIC}
|
2001-06-26 06:18:52 -04:00
|
|
|
LIB_DEPENDS= SDL_ttf.3:${PORTSDIR}/graphics/sdl_ttf \
|
2000-12-18 12:02:09 -05:00
|
|
|
SDL_image.10:${PORTSDIR}/graphics/sdl_image \
|
|
|
|
SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer \
|
|
|
|
smpeg.1:${PORTSDIR}/graphics/smpeg
|
2001-05-03 04:55:08 -04:00
|
|
|
RUN_DEPENDS= ${PYNUMERIC}
|
2000-12-18 12:02:09 -05:00
|
|
|
|
|
|
|
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
|
|
|
|
|
|
|
|
USE_PYTHON= yes
|
2002-04-29 10:01:09 -04:00
|
|
|
USE_PYDISTUTILS= yes
|
2000-12-18 12:02:09 -05:00
|
|
|
MAKE_ENV= SDL_CONFIG="${SDL_CONFIG}"
|
|
|
|
|
2001-05-03 04:55:08 -04:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-02-04 05:16:06 -05:00
|
|
|
.if (${PYTHON_VERSION} == "python2.1" || ${PYTHON_VERSION} == "python2.2")
|
2001-05-03 04:55:08 -04:00
|
|
|
PYNUMERIC= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric
|
|
|
|
.else
|
|
|
|
PYNUMERIC= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric17
|
|
|
|
.endif
|
|
|
|
|
2000-12-18 12:02:09 -05:00
|
|
|
do-configure:
|
2002-05-01 11:13:36 -04:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} config.py
|
2000-12-18 12:02:09 -05:00
|
|
|
|
2001-06-11 08:01:07 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-04-29 10:01:09 -04:00
|
|
|
post-install:
|
2001-06-11 08:01:07 -04:00
|
|
|
${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
|
2000-12-18 12:02:09 -05:00
|
|
|
|
2001-05-03 04:55:08 -04:00
|
|
|
.include <bsd.port.post.mk>
|