mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
The version we were using was not even a git tag in KDE git repo. I tried to find a close enough (slightly more recent) tag, and pull it from a github archive. Change the version number to match the tag naming (1.9.2 used in the old recipe is what it says in the About box, but that doesn't seem to change as often as the tags). Issue #1103
72 lines
1.8 KiB
Bash
72 lines
1.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="http://marble.kde.org"
|
|
COPYRIGHT="2007-2014 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="c4f511865f18cecda7eaa349a2eafb0c2d8b6dac526f59af9a60e9e0199d5a04"
|
|
PATCHES="marble_x86-1.9.2.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
marble$secondaryArchSuffix = $portVersion
|
|
app:Marble$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku${secondaryArchSuffix}
|
|
libqt4$secondaryArchSuffix >= 4.8.0
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
libqt4${secondaryArchSuffix}_devel >= 4.8.0
|
|
"
|
|
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
|
|
|
|
addResourcesToBinaries ../haiku/marble.rdef $appsDir/Marble/Marble
|
|
addAppDeskbarSymlink $appsDir/Marble/Marble "Marble"
|
|
}
|