# Created by: Loïc BARTOLETTI <coder@tuxfamily.org>
# $FreeBSD: head/databases/sfcgal/Makefile 468186 2018-04-24 07:28:36Z yuri $

PORTNAME=	sfcgal
DISTVERSIONPREFIX=	v
DISTVERSION=	1.3.5
CATEGORIES=	databases math graphics

MAINTAINER=	lbartoletti@tuxfamily.org
COMMENT=	Wrapper library around CGAL for PostGIS

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libCGAL.so:math/cgal \
		libboost_system.so:devel/boost-libs \
		libgmp.so:math/gmp \
		libmpfr.so:math/mpfr

USES=		cmake compiler libtool
USE_GITHUB=	yes
GH_ACCOUNT=	Oslandia
GH_PROJECT=	SFCGAL
compiler_ARGS=	c++0x
USE_LDCONFIG=	yes

PLIST_SUB=	SHL3=${PORTVERSION} SHL1=${PORTVERSION:R:R}

.include <bsd.port.mk>
