Files
haikuports/kde-base/marble/marble-17.07.80.recipe
2017-07-31 15:52:54 +03:00

101 lines
2.8 KiB
Bash

SUMMARY="A virtual globe and world atlas"
DESCRIPTION="Marble is a geographical atlas and a virtual globe which lets you \
quickly explore places on our home planet.
You can use Marble to look up addresses, to easily create maps, \
measure distances and to retrieve detail information about locations \
that you have just heard about in the news or on the Internet.
The user interface is clean, simple and easy to use."
HOMEPAGE="https://marble.kde.org/"
COPYRIGHT="2007-2017 by the authors of Marble Virtual Globe"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://github.com/KDE/marble/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="ba439e99b9d6ec3d66295be49e55e6592d29e380e072d45d5fa0d08f829a6f8b"
ADDITIONAL_FILES="marble.rdef.in"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
marble$secondaryArchSuffix = $portVersion
app:Marble$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku${secondaryArchSuffix}
lib:libQt5Core$secondaryArchSuffix
lib:libQt5DBus$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5PrintSupport$secondaryArchSuffix
lib:libQt5WebKit$secondaryArchSuffix
lib:libQt5WebKitWidgets$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
lib:libQt5Xml$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt5Core$secondaryArchSuffix
devel:libQt5DBus$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Network$secondaryArchSuffix
devel:libQt5PrintSupport$secondaryArchSuffix
devel:libQt5WebKit$secondaryArchSuffix
devel:libQt5WebKitWidgets$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
devel:libQt5Xml$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:qmake$secondaryArchSuffix
cmd:make
cmd:g++$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
cmd:cmake
"
BUILD()
{
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DQTONLY=TRUE \
-DWITH_DESIGNER_PLUGIN=FALSE \
-DCMAKE_INSTALL_PREFIX=$appsDir/Marble \
-DMARBLE_DATA_PATH=$appsDir/Marble/data \
..
# Disable Phonon
echo "#undef HAVE_PHONON" > src/lib/marble/config-phonon.h
make $jobArgs
}
INSTALL()
{
cd build
make install
mv $appsDir/Marble/bin/marble-qt $appsDir/Marble/Marble
rm -rf $appsDir/Marble/bin
rm -rf $appsDir/Marble/include
rm -rf $appsDir/Marble/share
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
$portDir/additional-files/marble.rdef.in > marble.rdef
addResourcesToBinaries marble.rdef $appsDir/Marble/Marble
addAppDeskbarSymlink $appsDir/Marble/Marble
}