# New ports collection makefile for:	Maelstrom
# Date created:				13 May 1998
# Whom:					Andrey Zakhvatov
#
# $FreeBSD: ports/games/maelstrom/Makefile,v 1.42 2012/02/18 10:17:59 mva Exp $
#

PORTNAME=	maelstrom
PORTVERSION=	3.0.6
PORTREVISION=	8
CATEGORIES=	games
MASTER_SITES=	http://slouken.libsdl.org/projects/Maelstrom/src/
DISTNAME=	Maelstrom-${PORTVERSION}
DIST_SUBDIR=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Asteroids-style game for X Window System

USE_SDL=	sdl net
USE_XORG=	xpm
GNU_CONFIGURE=	yes
MAKE_JOBS_SAFE=	yes

.if !defined(NOPORTDOCS)
INSTALL_TARGET=	install install_gamedocs
.endif

post-install:
	${CHOWN} root:games ${PREFIX}/bin/Maelstrom
	${CHMOD} 2755 ${PREFIX}/bin/Maelstrom
	${CHMOD} 664 ${PREFIX}/share/Maelstrom/Maelstrom-Scores
	${CHOWN} root:games ${PREFIX}/share/Maelstrom/Maelstrom-Scores

.include <bsd.port.mk>
