# ex:ts=8
# Ports collection makefile for:	csmash
# Date created:			Nov 11, 2003
# Whom:				ijliao
#
# $FreeBSD: ports/games/csmash/Makefile,v 1.10 2005/03/12 10:53:46 marcus Exp $
#

PORTNAME=	csmash
PORTVERSION=	0.6.6
PORTREVISION=	5
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	cannonsmash

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A 3D tabletennis game

USE_SDL=	image mixer sdl
USE_GL=		yes
USE_GNOME=	gnometarget gtk20
USE_REINPLACE=	yes
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386"
BROKEN=		"Does not compile on !i386"
.endif

post-patch:
	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
		's|/games/|/|g'

.include <bsd.port.post.mk>
