# Created by: Maxim Sobolev # $FreeBSD$ PORTNAME= game PORTVERSION= 1.9.1 PORTREVISION= 6 CATEGORIES= devel python MASTER_SITES= http://pygame.seul.org/ftp/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= py${PORTNAME}-${PORTVERSION}release MAINTAINER= mva@FreeBSD.org COMMENT= Module designed to write games in Python LICENSE= LGPL21 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: ${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