summaryrefslogtreecommitdiff
path: root/graphics/openorienteering-mapper/Makefile
blob: 7797d6f27c4f66e184f95d4948b047cbd1db70d5 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Created by: Nikolay Korotkiy <sikmir@gmail.com>
# $FreeBSD$

PORTNAME=	openorienteering-mapper
PORTVERSION=	0.8.2
PORTREVISION=	1
DISTVERSIONPREFIX=	v
CATEGORIES=	graphics geography

MAINTAINER=	sikmir@gmail.com
COMMENT=	Map drawing program from OpenOrienteering

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libpolyclipping.so:graphics/polyclipping \
		libproj.so:graphics/proj

USES=		cmake:outsource,noninja compiler:c++14-lang \
		desktop-file-utils gmake qt:5 shared-mime-info
USE_QT=		buildtools_build help qmake_build core gui \
		location network printsupport sensors widgets
USE_GITHUB=	yes
GH_ACCOUNT=	OpenOrienteering
GH_PROJECT=	mapper

CMAKE_ARGS+=	-DLICENSING_PROVIDER=freebsd \
		-DMapper_PACKAGE_NAME=${PORTNAME} \
		-Wno-dev \
		-DQt5Help_QCOLLECTIONGENERATOR_EXECUTABLE=${QT_BINDIR}/qhelpgenerator

OPTIONS_DEFINE=	DOCS EXAMPLES GDAL NLS TEST TIFF
OPTIONS_DEFAULT=	GDAL
OPTIONS_SUB=	yes
DOCS_CMAKE_BOOL=	Mapper_WITH_DOCS
DOCS_BUILD_DEPENDS=	doxygen:devel/doxygen
DOCS_USES=	qt:5
DOCS_USE=	QT=assistant_run
EXAMPLES_CMAKE_BOOL=	Mapper_WITH_EXAMPLES
GDAL_DESC=	Use the GDAL library
GDAL_CMAKE_BOOL=	Mapper_USE_GDAL
GDAL_LIB_DEPENDS=	libgdal.so:graphics/gdal
NLS_CMAKE_BOOL=	Mapper_WITH_NLS
NLS_BUILD_DEPENDS=	gsed:textproc/gsed
NLS_USE=	QT=linguisttools_build
NLS_USES=	gettext-runtime qt:5
TEST_CMAKE_BOOL=	Mapper_WITH_TEST
TEST_USES=	qt:5
TEST_USE=	QT=testlib_build
TEST_TEST_TARGET=	test
TIFF_DESC=	Support for TIFF
TIFF_USES=	qt:5
TIFF_USE=	QT=imageformats

.include <bsd.port.mk>