PORTNAME=	libgpkg
PORTVERSION=	0.9.18
PORTREVISION=	3
CATEGORIES=	devel

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	SQLite 3 extension of minimal OGC GeoPackage implementation
WWW=		https://github.com/luciad/libgpkg

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cmake:insource compiler:c11 tar:bzip2

USE_LDCONFIG=	yes

PLIST_SUB=	PORTVERSION=${PORTVERSION}

USE_GITHUB=	yes
GH_ACCOUNT=	luciad

OPTIONS_DEFINE=	GEOS
OPTIONS_DEFAULT=GEOS

GEOS_CMAKE_BOOL=	GPKG_GEOS
GEOS_LIB_DEPENDS=	libgeos_c.so:graphics/geos

post-install:
	${INSTALL_DATA} ${WRKSRC}/gpkg/libgpkg.a ${STAGEDIR}${PREFIX}/lib/

.include <bsd.port.mk>
