PORTNAME=	atris
PORTVERSION=	1.0.1
PORTREVISION=	2
CATEGORIES=	games
MASTER_SITES=	http://www.wkiri.com/projects/atris/
PKGNAMESUFFIX=	-sounds
DISTNAME=	${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Sounds for Atris: Alizarin Tetris
WWW=		https://www.wkiri.com/projects/atris/

RUN_DEPENDS=	atris:games/atris

USES=		gmake
GNU_CONFIGURE=	yes
NO_WRKSUBDIR=	yes

post-patch:
# Fix path to ${DATADIR}
	${REINPLACE_CMD} -e 's|\(GAME_INSTALLDIR=\).*|\1"${DATADIR}"|' \
			${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}

do-install:
	(cd ${WRKSRC} ; ${COPYTREE_SHARE} sounds ${STAGEDIR}${DATADIR})

.include <bsd.port.mk>
