# New ports collection makefile for:	bitefusion
# Date created:		14 Jun 2006
# Whom:			Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD: ports/games/bitefusion/Makefile,v 1.6 2007/10/04 01:02:40 edwin Exp $
#

PORTNAME=	bitefusion
PORTVERSION=	1.0.1
PORTREVISION=	1
CATEGORIES=	games
MASTER_SITES=	http://www.junoplay.com/files/ \
		http://www.amdmi3.ru/distfiles/

MAINTAINER=	amdmi3@amdmi3.ru
COMMENT=	A snake game with 8 levels

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_SDL=	sdl
USE_GCC=	3.4+
CONFIGURE_ENV=	CPPFLAGS="`${SDL_CONFIG} --cflags`" \
		LDFLAGS="`${SDL_CONFIG} --libs`"

PLIST_FILES=	bin/bitefusion

post-patch:
	@${REINPLACE_CMD} -e 's|-linux-gnu|-portbld-freebsd|' \
		${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's|-lSDL||' ${WRKSRC}/Makefile.in

.include <bsd.port.mk>
