1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/devel/py-game/Makefile
Gerald Pfeifer 1cd277bdce Update the default version of GCC used in the Ports Collection from
GCC 4.6.4 to GCC 4.7.3.  This entails updating the lang/gcc port as
well as changing the default in Mk/bsd.default-versions.mk.

Part II, Bump PORTREVISIONs.

PR:		182136
Supported by:	Christoph Moench-Tegeder <cmt@burggraben.net> (fixing many ports)
Tested by:	bdrewery (two -exp runs)
2014-03-10 20:55:20 +00:00

58 lines
1.5 KiB
Makefile

# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= game
PORTVERSION= 1.9.1
PORTREVISION= 2
CATEGORIES= devel python
MASTER_SITES= http://pygame.seul.org/ftp/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py${PORTNAME}-${PORTVERSION}release
MAINTAINER= mva@FreeBSD.org
COMMENT= A module designed to write games in Python
LICENSE= LGPL21
LIB_DEPENDS= libsmpeg.so:${PORTSDIR}/multimedia/smpeg
RUN_DEPENDS= ${PYNUMPY}
USE_SDL= ttf image mixer sdl
USE_GCC= any
USE_PYTHON= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_AUTOPLIST= yes
SDLNOX11= sdl-nox11-[0-9]*
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e 's|^_camera|#_camera|' \
-e 's|^pypm|#pypm|' ${WRKSRC}/Setup.in
@${REINPLACE_CMD} -e "s|Dependency('PORT|#Dependency('PORT|" \
${WRKSRC}/config_unix.py
pre-configure:
@invalid=`${PKG_INFO} -I ${SDLNOX11:C/.+/'&'/} 2>/dev/null | ${AWK} '{print $$1}'`
@if [ ! -z "$$invalid" ]; then \
${ECHO_MSG} "${PKGNAME} is marked as broken: devel/sdl12 needs to be built with X11 support enabled."; \
exit 1; \
fi
do-configure:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} config.py -auto
post-install:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${TAR} -C ${WRKSRC}/examples -cf - . | \
${TAR} --unlink -C ${STAGEDIR}${EXAMPLESDIR} -xf -
${MKDIR} ${STAGEDIR}${DOCSDIR}
${TAR} -C ${WRKSRC}/docs -cf - . | \
${TAR} --unlink -C ${STAGEDIR}${DOCSDIR} -xf -
.include <bsd.port.mk>