# $FreeBSD: tags/RELEASE_12_0_0/games/renpy6/Makefile 478837 2018-09-03 00:21:45Z jbeich $

PORTVERSION=	6.18.3
PORTREVISION=	7
PKGNAMESUFFIX=	6

CONFLICTS_INSTALL=	${PORTNAME}-[0-9]*

MASTERDIR=	${.CURDIR}/../renpy
PATCHDIR=	${.CURDIR}/files
DISTINFO_FILE=	${.CURDIR}/distinfo

PORTSCOUT=	limit:^6\.18\.*

BUILD_DEPENDS=	${PYGAME}
RUN_DEPENDS=	${PYGAME}

USE_SDL=	sdl
PORTDATA=	templates

post-patch:
	@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \
		${WRKSRC}/launcher/game/project.rpy

post-install:
	${CHMOD} -R u+w ${STAGEDIR}${DATADIR}/templates

.include "${MASTERDIR}/Makefile"
