Index: devel/Makefile =================================================================== --- devel/Makefile +++ devel/Makefile @@ -4258,6 +4258,7 @@ SUBDIR += regexx SUBDIR += regexxer SUBDIR += remake + SUBDIR += renpy SUBDIR += replay SUBDIR += rhtvision SUBDIR += rlog Index: devel/renpy/Makefile =================================================================== --- /dev/null +++ devel/renpy/Makefile @@ -0,0 +1,84 @@ +# $FreeBSD$ + +PORTNAME= renpy +PORTVERSION= 6.18.3 +DISTVERSIONSUFFIX=-source +CATEGORIES= devel games +MASTER_SITES= http://www.renpy.org/dl/${PORTVERSION}/ \ + GENTOO/distfiles + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Framework for developing visual-novel type games + +LICENSE= APACHE20 BSD3CLAUSE DejaVu LGPL21 MIT OFL11 ZLIB +LICENSE_COMB= multi +LICENSE_NAME_DejaVu= Bitstream Vera and Arev fonts license +LICENSE_FILE_DejaVu= ${WRKSRC}/renpy/common/DejaVuSans.txt +LICENSE_PERMS_DejaVu= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + +BUILD_DEPENDS= ${PYGAME} \ + cython:${PORTSDIR}/lang/cython +LIB_DEPENDS= libfribidi.so:${PORTSDIR}/converters/fribidi \ + libGLEW.so:${PORTSDIR}/graphics/glew \ + libpng.so:${PORTSDIR}/graphics/png \ + libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \ + libfreetype.so:${PORTSDIR}/print/freetype2 +RUN_DEPENDS= ${PYGAME} + +USES= python:2.7 shebangfix tar:bz2 +USE_PYTHON= autoplist distutils +USE_SDL= sdl +SHEBANG_FILES= renpy.py launcher/game/tkaskdir.py +python_OLD_CMD= /usr/bin/env python +python_CMD= ${PYTHON_CMD} +BUILD_WRKSRC= ${WRKSRC}/module +INSTALL_WRKSRC= ${BUILD_WRKSRC} +MAKE_ENV+= RENPY_DEPS_INSTALL="${LOCALBASE}" +PORTDATA= launcher renpy renpy.py templates +PORTDOCS= * +PLIST_FILES= bin/${PORTNAME} + +DESKTOP_ENTRIES="Ren'Py" \ + "" \ + "${DATADIR}/launcher/game/images/logo32.png" \ + "${PORTNAME} %f" \ + "Development;Game;AdventureGame;" \ + "" + +OPTIONS_DEFAULT=TKINTER +OPTIONS_DEFINE= DOCS EXAMPLES TKINTER + +TKINTER_DESC= Install Tkinter to allow choosing Projects Directory +TKINTER_RUN_DEPENDS=${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter + +.include + +.if ${PORT_OPTIONS:MEXAMPLES} +PORTDATA+= the_question tutorial +.endif + +post-patch: + @${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \ + ${WRKSRC}/launcher/game/project.rpy +# Avoid having to add -I/usr/include -L/usr/lib + @${REINPLACE_CMD} '/library("z")/d' ${BUILD_WRKSRC}/${PYSETUP} + +post-install: + ${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} -name \*.so \ + -exec ${STRIP_CMD} {} + + ${LN} -fs ${DATADIR}/renpy.py \ + ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC} && ${COPYTREE_SHARE} \ + "${PORTDATA}" ${STAGEDIR}${DATADIR} \ + "! -name *.orig ! -name *.bak") + ${CHMOD} +x ${STAGEDIR}${DATADIR}/renpy.py + ${CHMOD} -R u+w ${STAGEDIR}${DATADIR}/templates +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \ + . ${STAGEDIR}${DOCSDIR} \ + "! -name *.orig ! -name *.bak") +.endif + +.include Index: devel/renpy/distinfo =================================================================== --- /dev/null +++ devel/renpy/distinfo @@ -0,0 +1,2 @@ +SHA256 (renpy-6.18.3-source.tar.bz2) = c0c6af79ceb529e69cebfdb0e9849e50dc27e424dc2fd2b322c13d6ec938cba6 +SIZE (renpy-6.18.3-source.tar.bz2) = 23244450 Index: devel/renpy/pkg-descr =================================================================== --- /dev/null +++ devel/renpy/pkg-descr @@ -0,0 +1,7 @@ +Ren'Py is a visual novel engine that helps you use words, images, and +sounds to tell stories with the computer. These can be both visual +novels and life simulation games. The easy to learn script language +allows you to efficiently write large visual novels, while its Python +scripting is enough for complex simulation games. + +WWW: http://www.renpy.org/