mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
106 lines
3.1 KiB
Bash
106 lines
3.1 KiB
Bash
SUMMARY="3D photo-realistic skies in real time"
|
|
DESCRIPTION="Stellarium is a free open source planetarium for your computer. \
|
|
It shows a realistic sky in 3D, just like what you see with the naked eye, \
|
|
binoculars or a telescope."
|
|
HOMEPAGE="https://stellarium.org"
|
|
COPYRIGHT="2001-2022 Fabien Chéreau"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/Stellarium/stellarium/archive/refs/tags/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="841dfbd27fa6ea97c4ce22424b12a9e73ad70d61af892734ce2f67d7681ec76d"
|
|
PATCHES="stellarium-$portVersion.patchset"
|
|
ADDITIONAL_FILES="stellarium.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
stellarium$secondaryArchSuffix = $portVersion
|
|
app:Stellarium = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libopenal$secondaryArchSuffix
|
|
lib:libQt6Charts$secondaryArchSuffix
|
|
lib:libQt6Concurrent$secondaryArchSuffix
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
lib:libQt6Multimedia$secondaryArchSuffix
|
|
lib:libQt6MultimediaWidgets$secondaryArchSuffix
|
|
lib:libQt6Network$secondaryArchSuffix
|
|
lib:libQt6OpenGL$secondaryArchSuffix
|
|
lib:libQt6OpenGLWidgets$secondaryArchSuffix
|
|
lib:libQt6Positioning$secondaryArchSuffix
|
|
lib:libQt6Qml$secondaryArchSuffix
|
|
lib:libQt6SerialPort$secondaryArchSuffix
|
|
lib:libQt6Widgets$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
qt6_tools${secondaryArchSuffix}_devel
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libopenal$secondaryArchSuffix
|
|
devel:libQt6Charts$secondaryArchSuffix
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Gui$secondaryArchSuffix
|
|
devel:libQt6Multimedia$secondaryArchSuffix
|
|
devel:libQt6OpenGL$secondaryArchSuffix
|
|
devel:libQt6Positioning$secondaryArchSuffix
|
|
devel:libQt6Qml$secondaryArchSuffix
|
|
devel:libQt6SerialPort$secondaryArchSuffix
|
|
devel:libQt6Widgets$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:perl
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python3
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build
|
|
cd build
|
|
cmake .. \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DENABLE_SHOWMYSKY=OFF
|
|
|
|
sed -e '/#include <algorithm>/a #include <sys/select.h>' -i _deps/indiclient-src/libs/indibase/baseclient.cpp
|
|
sed -e '/if (bt == 0 && ioctl(t_fd, TIOCEXCL) == -1)/c if (0)' -i _deps/indiclient-src/libs/indicom.c
|
|
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
mkdir -p $appsDir
|
|
mv $prefix/bin/stellarium $appsDir/Stellarium
|
|
rm -rf $prefix/{bin,share}
|
|
|
|
local APP_SIGNATURE="application/x-vnd.stellarium"
|
|
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/stellarium.rdef.in > stellarium.rdef
|
|
|
|
addResourcesToBinaries stellarium.rdef $appsDir/Stellarium
|
|
addAppDeskbarSymlink $appsDir/Stellarium
|
|
}
|