# New ports collection makefile for:	amoebax
# Date created:		15 Aug 2007
# Whom:			Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD: ports/games/amoebax/Makefile,v 1.9 2010/02/05 11:37:03 dinoex Exp $
#

PORTNAME=	amoebax
PORTVERSION=	0.2.1
PORTREVISION=	3
CATEGORIES=	games
MASTER_SITES=	http://www.emma-soft.com/games/amoebax/download/ \
		http://mirror.amdmi3.ru/distfiles/

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Cute and addictive Puyo Puyo like game

USE_BZIP2=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_SDL=	sdl mixer image

MAN6=		amoebax.6

PORTDOCS=	*

post-patch:
	@${REINPLACE_CMD} -e '/^SUBDIRS =/s|doc||' ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e 's|datarootdir|datadir|' ${WRKSRC}/data/Makefile.in
	@${FIND} ${WRKSRC}/ -name Makefile.in|${XARGS}\
		${REINPLACE_CMD} -e '/^pkgdatadir =/s|=.*|= ${DATADIR}|'

.if !defined(NOPORTDOCS)
post-install:
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/manual.pdf ${DOCSDIR}
.endif

.include <bsd.port.mk>
