Added
Link Here
|
1 |
# Created by: Nikolay Korotkiy <sikmir@gmail.com> |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= gpxsee |
5 |
PORTVERSION= 5.6 |
6 |
CATEGORIES= graphics geography |
7 |
|
8 |
MAINTAINER= sikmir@gmail.com |
9 |
COMMENT= GPS log file viewer and analyzer |
10 |
|
11 |
LICENSE= GPLv3 |
12 |
LICENSE_FILE= ${WRKSRC}/licence.txt |
13 |
|
14 |
USE_GITHUB= yes |
15 |
GH_ACCOUNT= tumic0 |
16 |
GH_PROJECT= GPXSee |
17 |
|
18 |
USES= qmake:outsource desktop-file-utils shared-mime-info |
19 |
USE_QT5= buildtools_build core gui network printsupport widgets |
20 |
USE_GL= gl |
21 |
|
22 |
OPTIONS_DEFINE= NLS TIFF |
23 |
OPTIONS_DEFAULT= TIFF |
24 |
OPTIONS_SUB= yes |
25 |
NLS_USE= QT5=linguisttools_build |
26 |
NLS_USES= gettext-runtime |
27 |
TIFF_DESC= Support for TIFF |
28 |
TIFF_USE= QT5=imageformats_run |
29 |
|
30 |
do-patch: |
31 |
@${REINPLACE_CMD} -e "s|/usr/share/gpxsee|${DATADIR}|" ${WRKSRC}/src/config.h |
32 |
|
33 |
pre-build-NLS-on: |
34 |
${LRELEASE} ${WRKSRC}/${PORTNAME}.pro |
35 |
|
36 |
do-install: |
37 |
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/GPXSee ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
38 |
@${MKDIR} ${STAGEDIR}${DATADIR}/maps |
39 |
${INSTALL_DATA} ${WRKSRC}/pkg/maps/* ${STAGEDIR}${DATADIR}/maps |
40 |
@${MKDIR} ${STAGEDIR}${DATADIR}/csv |
41 |
${INSTALL_DATA} ${WRKSRC}/pkg/csv/* ${STAGEDIR}${DATADIR}/csv |
42 |
${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps |
43 |
${INSTALL_DATA} ${WRKSRC}/pkg/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications |
44 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages |
45 |
${INSTALL_DATA} ${WRKSRC}/pkg/${PORTNAME}.xml ${STAGEDIR}${PREFIX}/share/mime/packages |
46 |
|
47 |
do-install-NLS-on: |
48 |
@${MKDIR} ${STAGEDIR}${DATADIR}/translations |
49 |
${INSTALL_DATA} ${WRKSRC}/lang/*.qm ${STAGEDIR}${DATADIR}/translations |
50 |
|
51 |
.include <bsd.port.mk> |