# Created by: demon@FreeBSD.org
# $FreeBSD: tags/RELEASE_11_0_0/graphics/gource/Makefile 412346 2016-04-01 14:00:51Z mat $

PORTNAME=	gource
PORTVERSION=	0.43
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	https://github.com/acaudwell/Gource/releases/download/${PORTNAME}-${PORTVERSION}/

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

LICENSE=	GPLv3

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

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

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

.include <bsd.port.mk>
