# New ports collection makefile for:	glosm
# Date created:		15 Jan 2011
# Whom:			Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD: ports/graphics/glosm/Makefile,v 1.3 2012/02/18 10:18:25 mva Exp $
#

PORTNAME=	glosm
PORTVERSION=	0.0.2
PORTREVISION=	1
CATEGORIES=	graphics geography
MASTER_SITES=	http://cloud.github.com/downloads/AMDmi3/glosm/ \
		http://mirror.amdmi3.ru/distfiles/

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	3D OpenGL renderer for OpenStreetMap

LIB_DEPENDS=	png.6:${PORTSDIR}/graphics/png \
		expat.6:${PORTSDIR}/textproc/expat2

USE_BZIP2=	yes
USE_CMAKE=	yes
USE_GL=		gl
USE_SDL=	sdl
MAKE_JOBS_SAFE=	yes

PORTDOCS=	README ChangeLog

regression-test:
	cd ${BUILD_WRKSRC} && ctest

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

.include <bsd.port.mk>
