Files
haikuports/sci-geosciences/gpxsee/gpxsee-6.3.recipe
2018-10-29 07:31:43 +01:00

80 lines
2.2 KiB
Bash

SUMMARY="GPS log file viewer and analyzer"
DESCRIPTION="GPXSee is a Qt-based GPS log file viewer and analyzer that supports \
GPX, TCX, KML, FIT, IGC, NMEA, SLF, LOC and OziExplorer files."
HOMEPAGE="https://www.gpxsee.org/"
COPYRIGHT="2018 Martin Tůma"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/tumic0/gpxsee/archive/$portVersion/GPXSee-$portVersion.tar.gz"
CHECKSUM_SHA256="0650ac670b8beeba14e05c7b04dc60d4aa9f610dd6d4dd0a5507632a07602990"
SOURCE_DIR="GPXSee-$portVersion"
PATCHES="gpxsee-$portVersion.patchset"
ADDITIONAL_FILES="gpxsee.rdef.in"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
gpxsee$secondaryArchSuffix = $portVersion
app:GPXSee = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5PrintSupport$secondaryArchSuffix
lib:libQt5Sql$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libGL$secondaryArchSuffix
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
"
BUILD()
{
lrelease gpxsee.pro
qmake gpxsee.pro
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir/GPXSee/{maps,csv,translations}
cp GPXSee $appsDir/GPXSee/
cp -r pkg/maps/* $appsDir/GPXSee/maps
cp -r pkg/csv/* $appsDir/GPXSee/csv
cp -r lang/*.qm $appsDir/GPXSee/translations
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
addResourcesToBinaries gpxsee.rdef $appsDir/GPXSee/GPXSee
addAppDeskbarSymlink $appsDir/GPXSee/GPXSee
}