summaryrefslogtreecommitdiff
path: root/devel/libgpkg/Makefile
blob: 321f739eb0112e78f5902c1562271c563174a6ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$

PORTNAME=	libgpkg
PORTVERSION=	0.9.18
PORTREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	https://bitbucket.org/luciad/libgpkg/get/${PORTVERSION}.tar.bz2?dummy=/ \
		LOCAL/sunpoet

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	SQLite 3 extension of minimal OGC GeoPackage implementation

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

OPTIONS_DEFINE=	GEOS
OPTIONS_DEFAULT=GEOS

USE_LDCONFIG=	yes
USES=		cmake tar:bzip2

PLIST_SUB=	PORTVERSION=${PORTVERSION}
WRKSRC=		${WRKDIR}/luciad-libgpkg-c56e3708453e

GEOS_CMAKE_OFF=		-DGPKG_GEOS=OFF
GEOS_CMAKE_ON=		-DGPKG_GEOS=ON
GEOS_LIB_DEPENDS=	libgeos_c.so:graphics/geos

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

.include <bsd.port.mk>