0
0
Fork 0
haikuports/sci-geosciences/gpxsee/gpxsee-9.8.recipe

111 lines
3.2 KiB
Bash
Raw Permalink Normal View History

SUMMARY="GPS map/log file viewer and analyzer"
DESCRIPTION="GPXSee is a Qt-based GPS log file viewer and analyzer that \
supports all common GPS log file formats.
Main features:
2020-02-03 17:45:08 +00:00
* Opens GPX, TCX, FIT, KML, NMEA, IGC, CUP, SIGMA SLF, Suunto SML, LOC, GeoJSON, \
2021-08-23 19:35:56 +00:00
OziExplorer (PLT, RTE, WPT), Garmin GPI & CSV, TomTom OV2 & ITN, ONmove OMD/GHP and \
2021-06-01 12:51:17 +00:00
geotagged JPEG files
* User-definable online maps (OpenStreetMap/Google tiles, WMTS, WMS, TMS, \
QuadTiles)
2020-02-13 18:44:18 +00:00
* Offline maps (MBTiles, OziExplorer maps, TrekBuddy maps/atlases, Garmin IMG/GMAP \
2021-03-28 15:28:08 +00:00
& JNX maps, TwoNav RMaps, GeoTIFF images, BSB charts, KMZ maps, AlpineQuest maps, \
2021-07-03 17:58:56 +00:00
Locus/OsmAnd/RMaps SQLite maps, Mapsforge vector maps, ESRI World-File georeferenced images)
* Elevation, speed, heart rate, cadence, power, temperature and gear \
ratio/shifts graphs
* Support for DEM files (SRTM HGT)
* Support for multiple tracks in one view
* Support for POI files
2020-10-25 21:11:22 +00:00
* Print/export to PDF or PNG
* Full-screen mode
* HiDPI/Retina displays & maps support"
2018-10-02 20:12:27 +00:00
HOMEPAGE="https://www.gpxsee.org/"
2021-02-02 21:42:48 +00:00
COPYRIGHT="2015-2021 Martin Tůma"
2018-10-02 20:12:27 +00:00
LICENSE="GNU GPL v3"
2020-04-01 10:30:27 +00:00
REVISION="1"
2018-10-02 20:12:27 +00:00
SOURCE_URI="https://github.com/tumic0/gpxsee/archive/$portVersion/GPXSee-$portVersion.tar.gz"
2021-10-16 18:47:49 +00:00
CHECKSUM_SHA256="b60fcc277124dd659a827de7d42ebdfb15d25391a0cb28f4050f4085db492381"
2018-10-02 20:12:27 +00:00
SOURCE_DIR="GPXSee-$portVersion"
PATCHES="gpxsee-$portVersion.patchset"
ADDITIONAL_FILES="
gpxsee.rdef.in
icons.zip
"
2018-10-02 20:12:27 +00:00
ARCHITECTURES="all !x86_gcc2"
2018-10-02 20:12:27 +00:00
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
gpxsee$secondaryArchSuffix = $portVersion
app:GPXSee = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
2019-01-29 00:06:30 +00:00
lib:libQt5Concurrent$secondaryArchSuffix
2018-10-02 20:12:27 +00:00
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5PrintSupport$secondaryArchSuffix
lib:libQt5Sql$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
2018-10-03 11:02:32 +00:00
2018-10-02 20:12:27 +00:00
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libGL$secondaryArchSuffix
2019-01-29 00:06:30 +00:00
devel:libQt5Concurrent$secondaryArchSuffix
2018-10-02 20:12:27 +00:00
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Network$secondaryArchSuffix
devel:libQt5PrintSupport$secondaryArchSuffix
devel:libQt5Sql$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:g++$secondaryArchSuffix
cmd:lrelease$secondaryArchSuffix
cmd:make
cmd:qmake$secondaryArchSuffix
cmd:unzip
2018-10-02 20:12:27 +00:00
"
PATCH()
{
unzip -o $sourceDir/../../additional-files/icons.zip -d $sourceDir/icons/GUI
}
2018-10-02 20:12:27 +00:00
BUILD()
{
lrelease gpxsee.pro
qmake gpxsee.pro
make $jobArgs
}
INSTALL()
{
2019-01-10 04:41:05 +00:00
mkdir -p $appsDir
mkdir -p $dataDir/GPXSee/{maps,csv,translations}
2019-01-29 00:06:30 +00:00
cp gpxsee $appsDir/GPXSee
2019-01-10 04:41:05 +00:00
cp -r pkg/maps/* $dataDir/GPXSee/maps
cp -r pkg/csv/* $dataDir/GPXSee/csv
cp -r lang/*.qm $dataDir/GPXSee/translations
2018-10-02 20:12:27 +00:00
local APP_SIGNATURE="application/x-vnd.qt5-gpxsee"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="0"
local LONG_INFO="$SUMMARY"
sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/gpxsee.rdef.in > gpxsee.rdef
2019-01-10 04:41:05 +00:00
addResourcesToBinaries gpxsee.rdef $appsDir/GPXSee
addAppDeskbarSymlink $appsDir/GPXSee
2018-10-02 20:12:27 +00:00
}