mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
7e5aa2085f
PR: 276530
33 lines
807 B
Makefile
33 lines
807 B
Makefile
PORTNAME= imposm3
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.11.1
|
|
PORTREVISION= 4
|
|
CATEGORIES= databases geography
|
|
|
|
MAINTAINER= darcy@dbitech.ca
|
|
COMMENT= Imposm imports OpenStreetMap data into PostGIS
|
|
WWW= http://imposm.org/docs/imposm3/latest/
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libgeos.so:graphics/geos \
|
|
libleveldb.so:databases/leveldb
|
|
|
|
USES= go:modules
|
|
GO_MODULE= github.com/omniscale/imposm3
|
|
GO_TARGET= ./cmd/imposm
|
|
GO_BUILDFLAGS= -ldflags "\
|
|
-X github.com/omniscale/imposm3.Version=${DISTVERSION}"
|
|
|
|
PLIST_FILES= bin/imposm
|
|
|
|
PORTEXAMPLES= example-mapping.json example-mapping.yml
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
post-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
.include <bsd.port.mk>
|