# Created by: demon@FreeBSD.org
# $FreeBSD: tags/RELEASE_10_1_0/graphics/gource/Makefile 367888 2014-09-10 20:50:31Z gerald $

PORTNAME=	gource
PORTVERSION=	0.40
PORTREVISION=	4
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	demon@FreeBSD.org
COMMENT=	OpenGL-based 3D visualisation tool for source control repositories

BUILD_DEPENDS=	${LOCALBASE}/include/glm/glm.hpp:${PORTSDIR}/math/glm
LIB_DEPENDS=	libSDL_image.so:${PORTSDIR}/graphics/sdl_image \
		libfreetype.so:${PORTSDIR}/print/freetype2 \
		libpcre.so:${PORTSDIR}/devel/pcre \
		libGLEW.so:${PORTSDIR}/graphics/glew \
		libboost_filesystem.so:${PORTSDIR}/devel/boost-libs
RUN_DEPENDS=	${LOCALBASE}/include/glm/glm.hpp:${PORTSDIR}/math/glm

GNU_CONFIGURE=	yes
USES=		gmake pkgconfig compiler:c++0x

CONFIGURE_ARGS+=--with-boost-system=boost_system \
		--with-boost-filesystem=boost_filesystem
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

.include <bsd.port.mk>
