# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD: games/toycars/Makefile 324744 2013-08-14 22:35:50Z ak $

PORTNAME=	toycars
PORTVERSION=	0.3.10
PORTREVISION=	5
CATEGORIES=	games
MASTER_SITES=	SF

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Physics-based 2D racing game

LIB_DEPENDS=	fltk:${PORTSDIR}/x11-toolkits/fltk

USE_SDL=	image sdl
USE_GL=		gl glu
USE_GMAKE=	yes
GNU_CONFIGURE=	yes

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

PORTDOCS=	README

.include <bsd.port.options.mk>

post-extract:
	@${RM} ${WRKSRC}/data/.*Store

.if ${PORT_OPTIONS:MDOCS}
post-install:
	${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
