mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
116 lines
3.1 KiB
Bash
116 lines
3.1 KiB
Bash
SUMMARY="OSM multi-floor indoor map renderer"
|
|
DESCRIPTION="A library and QML component for rendering multi-level OSM indoor maps of for example \
|
|
a (large) train station."
|
|
HOMEPAGE="https://invent.kde.org/libraries/kosmindoormap"
|
|
COPYRIGHT="2010-2025 KDE Organisation"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kosmindoormap-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="1a2ce2c3e514bfe01e7b1fde943bf099121cad82a88f444bdac03b57509be3df"
|
|
SOURCE_DIR="kosmindoormap-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= 1"
|
|
|
|
PROVIDES="
|
|
kosmindoormap_kf6$secondaryArchSuffix = $portVersion
|
|
lib:libKOSM$secondaryArchSuffix = $libVersionCompat
|
|
lib:libKOSMIndoorMap$secondaryArchSuffix = $libVersionCompat
|
|
lib:libKOSMIndoorRouting$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
cmd:osmconvert
|
|
lib:libDetour$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libKirigamiAddonsStatefulApp$secondaryArchSuffix
|
|
lib:libKOpeningHours$secondaryArchSuffix
|
|
lib:libprotobuf$secondaryArchSuffix
|
|
lib:libRecast$secondaryArchSuffix
|
|
# Qt6
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
lib:libQt6Network$secondaryArchSuffix
|
|
"
|
|
REPLACES="
|
|
kosmindoormap24$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
kosmindoormap_kf6${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libKOSM$secondaryArchSuffix = $libVersionCompat
|
|
devel:libKOSMIndoorMap$secondaryArchSuffix = $libVersionCompat
|
|
devel:libKOSMIndoorRouting$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
kosmindoormap_kf6$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libDetour$secondaryArchSuffix
|
|
devel:libKirigamiAddonsStatefulApp$secondaryArchSuffix
|
|
devel:libKOpeningHours$secondaryArchSuffix
|
|
devel:libKPublicTransport$secondaryArchSuffix
|
|
devel:libprotobuf$secondaryArchSuffix >= 31
|
|
devel:libRecast$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
# KF6
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
devel:libKF6ConfigCore$secondaryArchSuffix
|
|
devel:libKF6CoreAddons$secondaryArchSuffix
|
|
devel:libKF6I18n$secondaryArchSuffix
|
|
devel:libKF6Service$secondaryArchSuffix
|
|
# Qt6
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Gui$secondaryArchSuffix
|
|
devel:libQt6Network$secondaryArchSuffix
|
|
devel:libQt6Qml$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:bison
|
|
cmd:cmake
|
|
cmd:flex
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgfmt$secondaryArchSuffix
|
|
cmd:msgmerge$secondaryArchSuffix
|
|
cmd:osmconvert
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DBUILD_TESTING=OFF
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
# cleanup
|
|
rm -rf $dataDir/qlogging-categories6
|
|
|
|
prepareInstalledDevelLibs \
|
|
libKOSM \
|
|
libKOSMIndoorMap \
|
|
libKOSMIndoorRouting
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
|
ctest --test-dir build --output-on-failure
|
|
}
|