# Created by: Marcin Cieslak # $FreeBSD$ PORTNAME= tinypy PORTVERSION= 1.1 CATEGORIES= lang python MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} MAINTAINER= saper@saper.info COMMENT= A minimalist implementation of python in 64k of code USE_PYTHON_BUILD= yes USE_PYDISTUTILS= yes PYDISTUTILS_BUILD_TARGET= linux PYDISTUTILS_NOEGGINFO= yes PLIST_FILES= bin/tinypy OPTIONS_DEFINE= PYGAME PYGAME_DESC= PyGame support (requires SDL) NO_STAGE= yes .include .if ${PORT_OPTIONS:MPYGAME} PYDISTUTILS_BUILD_TARGET+= pygame USE_SDL= sdl PORTEXAMPLES= * .endif .include post-patch: @${REINPLACE_CMD} -e 's|-O.||; s|gcc $$WFLAGS|${CC} ${CFLAGS} -std=c89 -Wall|' \ -e 's|python |${PYTHON_CMD} |g' \ ${WRKSRC}/setup.py do-configure: @${DO_NADA} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/build/tinypy ${PREFIX}/bin .if ${PORT_OPTIONS:MEXAMPLES} && ${PORT_OPTIONS:MPYGAME} @${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/julia.py ${EXAMPLESDIR} .endif .include