# New ports collection makefile for:	sturmbahnfahrer
# Date created:		07 Sep 2006
# Whom:			Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD: ports/games/stormbaancoureur/Makefile,v 1.8 2008/02/10 14:06:32 miwi Exp $
#

PORTNAME=	stormbaancoureur
PORTVERSION=	2.1.0
CATEGORIES=	games
MASTER_SITES=	http://bram.creative4vision.nl/sturmbahnfahrer/download/ \
		http://www.amdmi3.ru/distfiles/

MAINTAINER=	amdmi3@amdmi3.ru
COMMENT=	Simulated obstacle course for automobiles

LIB_DEPENDS=	glut.4:${PORTSDIR}/graphics/libglut
BUILD_DEPENDS=	${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \
		${X11BASE}/lib/libode.a:${PORTSDIR}/devel/ode

USE_GL=		yes

MAKE_ENV=	DATADIR="${DATADIR}"

BUILD_WRKSRC=	${WRKSRC}/src-stormbaancoureur
INSTALL_WRKSRC=	${WRKSRC}/src-stormbaancoureur

PORTDOCS=	README

.include <bsd.port.pre.mk>

post-patch:
	@${REINPLACE_CMD} -e 's|__DATADIR|"${DATADIR}"|' \
		${WRKSRC}/src-stormbaancoureur/main.cxx

.if !defined(NOPORTDOCS)
post-install:
	${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${INSTALL_WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>
