# New ports collection makefile for:	madbomber
# Date created:				28 September 2000
# Whom:					Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD: ports/games/madbomber/Makefile,v 1.7 2003/02/20 17:32:10 knu Exp $
#

PORTNAME=	madbomber
PORTVERSION=	0.2.4
CATEGORIES=	games
MASTER_SITES=	http://www.nbswebfx.com/downloads/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A clone of Activision's classic Atari 2600 console game "Kaboom!"

LIB_DEPENDS=	SDL_image.10:${PORTSDIR}/graphics/sdl_image \
		SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer

SDL_CONFIG?=	${LOCALBASE}/bin/sdl11-config

USE_GMAKE=	yes
MAKE_ENV=	SDL_CONFIG="${SDL_CONFIG}"

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/madbomber ${PREFIX}/bin
	@${MKDIR} ${PREFIX}/share/madbomber
	@cd ${WRKSRC}/data; tar cf - . | \
		(cd ${PREFIX}/share/madbomber; ${TAR} --unlink -xf - )

.include <bsd.port.mk>
