aboutsummaryrefslogtreecommitdiff
path: root/graphics/tippecanoe/Makefile
blob: 3694edf5686de2fed42d765be1adedfc0f021eb2 (plain) (blame)
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
34
35
36
37
38
39
40
41
PORTNAME=	tippecanoe
DISTVERSION=	2.26.1
PORTREVISION=	1
CATEGORIES=	graphics

MAINTAINER=	darcy@dbitech.ca
COMMENT=	Builds vector tilesets from large (or small) collections GEO features
WWW=		https://github.com/felt/tippecanoe

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE.md

BROKEN_FreeBSD_14=	fails to compile: static_assert failed due to requirement

LIB_DEPENDS=	libsqlite3.so:databases/sqlite3
BUILD_DEPENDS=	bash:shells/bash

USES=		gmake
USE_GITHUB=	yes

GH_ACCOUNT=	felt

PLIST_FILES=	bin/tile-join bin/tippecanoe bin/tippecanoe-decode \
		bin/tippecanoe-enumerate bin/tippecanoe-json-tool \
		share/man/man1/tippecanoe.1.gz

.include <bsd.port.options.mk>

# Suppress a clang-16 error on 32-bit arch:
#  non-constant-expression cannot be narrowed from type 'uint64_t'
.if ${ARCH} == i386 || ${ARCH:Marmv?} != ""
CXXFLAGS+=	-Wno-narrowing
.endif

do-install:
.for file in tile-join tippecanoe tippecanoe-decode tippecanoe-enumerate tippecanoe-json-tool
	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${STAGEDIR$}${PREFIX}/bin
.endfor
	${INSTALL_MAN} ${WRKSRC}/man/tippecanoe.1 ${STAGEDIR}${PREFIX}/share/man/man1/tippecanoe.1

.include <bsd.port.mk>