aboutsummaryrefslogtreecommitdiff
path: root/graphics/gpxsee/Makefile
blob: 9d508bf5aafeb726c58f951925df31bb69f7779e (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
42
43
44
45
46
47
48
49
50
51
52
53
# Created by: Nikolay Korotkiy <sikmir@gmail.com>
# $FreeBSD$

PORTNAME=	gpxsee
DISTVERSION=	7.1
CATEGORIES=	graphics geography

MAINTAINER=	sikmir@gmail.com
COMMENT=	GPS log file viewer and analyzer

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/licence.txt

USES=		gl qmake:outsource desktop-file-utils qt:5 shared-mime-info
USE_QT=		buildtools_build concurrent core gui network opengl printsupport \
		sql sql-sqlite3_run widgets
USE_GL=		gl

USE_GITHUB=	yes
GH_ACCOUNT=	tumic0
GH_PROJECT=	GPXSee

OPTIONS_DEFINE=	NLS PBF TIFF
OPTIONS_DEFAULT=	PBF TIFF
OPTIONS_SUB=	yes
NLS_USE=	QT=linguisttools_build
NLS_USES=	gettext-runtime
PBF_DESC=	Support for PBF vector maps
PBF_RUN_DEPENDS=	${QT_PLUGINDIR}/imageformats/libpbf.so:graphics/qtpbfimageplugin
TIFF_DESC=	Support for GeoTIFF images
TIFF_USE=	QT=imageformats_run

pre-build-NLS-on:
	${LRELEASE} ${WRKSRC}/${PORTNAME}.pro

do-install:
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/GPXSee ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
	@${MKDIR} ${STAGEDIR}${DATADIR}/maps
	${INSTALL_DATA} ${WRKSRC}/pkg/maps/* ${STAGEDIR}${DATADIR}/maps
	@${MKDIR} ${STAGEDIR}${DATADIR}/csv
	${INSTALL_DATA} ${WRKSRC}/pkg/csv/* ${STAGEDIR}${DATADIR}/csv
	${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps
	${INSTALL_DATA} ${WRKSRC}/pkg/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages
	${INSTALL_DATA} ${WRKSRC}/pkg/${PORTNAME}.xml ${STAGEDIR}${PREFIX}/share/mime/packages
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/metainfo
	${INSTALL_DATA} ${WRKSRC}/pkg/appdata.xml ${STAGEDIR}${PREFIX}/share/metainfo/${PORTNAME}.appdata.xml

do-install-NLS-on:
	@${MKDIR} ${STAGEDIR}${DATADIR}/translations
	${INSTALL_DATA} ${WRKSRC}/lang/*.qm ${STAGEDIR}${DATADIR}/translations

.include <bsd.port.mk>