freebsd-ports/devel/py-game/Makefile
Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00

59 lines
1.6 KiB
Makefile

# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= game
PORTVERSION= 1.9.1
PORTREVISION= 8
CATEGORIES= devel python
MASTER_SITES= https://www.pygame.org/ftp/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py${PORTNAME}-${PORTVERSION}release
MAINTAINER= ports@FreeBSD.org
COMMENT= Module designed to write games in Python
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LGPL
LIB_DEPENDS= libsmpeg.so:multimedia/smpeg
RUN_DEPENDS= ${PYNUMPY}
USES= dos2unix python
DOS2UNIX_FILES= src/scale_mmx64.c
USE_SDL= ttf image mixer sdl
USE_PYTHON= autoplist distutils
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-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${TAR} -C ${WRKSRC}/examples -cf - . | \
${TAR} --unlink -C ${STAGEDIR}${EXAMPLESDIR} -xf -
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${TAR} -C ${WRKSRC}/docs -cf - . | \
${TAR} --unlink -C ${STAGEDIR}${DOCSDIR} -xf -
.include <bsd.port.mk>