# Created by: neuroworker@gmail.com
# $FreeBSD: branches/RELEASE_8_4_0/games/instead/Makefile 311140 2013-01-28 23:55:00Z amdmi3 $

PORTNAME=	instead
PORTVERSION=	1.8.3
CATEGORIES=	games
MASTER_SITES=	GOOGLE_CODE \
		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=	pkgconfig gtk20
USE_LUA=	5.1
USE_SDL=	sdl image ttf mixer
USE_ICONV=	yes

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>
