# Created by: neuroworker@gmail.com
# $FreeBSD: games/instead/Makefile 323031 2013-07-15 13:23:32Z amdmi3 $

PORTNAME=	instead
PORTVERSION=	1.9.1
CATEGORIES=	games
MASTER_SITES=	SF/instead/instead/${PORTVERSION}/ \
		http://mirror.amdmi3.ru/distfiles/
DISTNAME=	instead_${PORTVERSION}

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Simple Text Adventure, The Interpreter

HAS_CONFIGURE=	yes
USE_GMAKE=	yes
USE_GNOME=	gtk20
USE_LUA=	5.1
USE_SDL=	sdl image ttf mixer
USES=		pkgconfig iconv

CONFIGURE_SCRIPT=	configure.sh
CONFIGURE_ENV=	PREFIX="${PREFIX}"

WRKSRC=		${WRKDIR}/instead-${PORTVERSION}
MAN6=		instead.6

PORTDOCS=	*

.include <bsd.port.options.mk>

.if ! ${PORT_OPTIONS:MDOCS}
post-patch:
	@${REINPLACE_CMD} -e '/INSTALL.*DOCPATH/ d' ${WRKSRC}/doc/Makefile
.endif

.include <bsd.port.mk>
