# New ports collection makefile for:	abuse_sdl
# Date created:				11 May 2002
# Whom:					des
#
# $FreeBSD: ports/games/abuse_sdl/Makefile,v 1.17 2008/08/21 06:17:03 rafan Exp $
#

PORTNAME=	abuse_sdl
PORTVERSION=	0.7.0
PORTREVISION=	5
CATEGORIES=	games
MASTER_SITES=	http://www.labyrinth.net.au/~trandor/abuse/files/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	An SDL port of the Abuse game engine

USE_BZIP2=	yes
USE_GL=		gl
USE_SDL=	sdl
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

MAN6=		abuse-sdl.6

post-patch:
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure

.include <bsd.port.mk>
