mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
110 lines
3.4 KiB
Bash
110 lines
3.4 KiB
Bash
SUMMARY="KDE Interactive Geometry tool"
|
|
DESCRIPTION="Kig is an interactive mathematics software for learning and teaching geometry. \
|
|
It allows to explore mathematical figures and concepts using the computer and also can serve \
|
|
as a drawing tool for mathematical figures. Constructions can be made with points, vectors, \
|
|
lines, and polygons and all elements can be modified directly by using the mouse. Kig helps \
|
|
teachers and students to make conjectures and to understand how to prove geometric theorems."
|
|
HOMEPAGE="https://apps.kde.org/kig/"
|
|
COPYRIGHT="2010-2025 KDE Organisation"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kig-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="d0a4a206d069dde7fad8f1cd383e698524ea05bd50238a673f29427691d0a8bb"
|
|
ADDITIONAL_FILES="kig.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
kig$secondaryArchSuffix = $portVersion
|
|
app:Kig = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
# KF6
|
|
lib:libKF6ColorScheme$secondaryArchSuffix
|
|
lib:libKF6ConfigCore$secondaryArchSuffix
|
|
lib:libKF6ConfigWidgets$secondaryArchSuffix
|
|
lib:libKF6CoreAddons$secondaryArchSuffix
|
|
lib:libKF6Crash$secondaryArchSuffix
|
|
lib:libKF6GuiAddons$secondaryArchSuffix
|
|
lib:libKF6I18n$secondaryArchSuffix
|
|
lib:libKF6KIOCore$secondaryArchSuffix
|
|
lib:libKF6Parts$secondaryArchSuffix
|
|
lib:libKF6WidgetsAddons$secondaryArchSuffix
|
|
lib:libKF6XmlGui$secondaryArchSuffix
|
|
# Qt6
|
|
lib:libQt6DBus$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
lib:libQt6Network$secondaryArchSuffix
|
|
lib:libQt6Widgets$secondaryArchSuffix
|
|
lib:libQt6Xml$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
# KF6
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
devel:libKF6Archive$secondaryArchSuffix
|
|
devel:libKF6ConfigWidgets$secondaryArchSuffix
|
|
devel:libKF6CoreAddons$secondaryArchSuffix
|
|
devel:libKF6Crash$secondaryArchSuffix
|
|
devel:libKF6I18n$secondaryArchSuffix
|
|
devel:libKF6IconThemes$secondaryArchSuffix
|
|
devel:libKF6Parts$secondaryArchSuffix
|
|
devel:libKF6TextEditor$secondaryArchSuffix
|
|
devel:libKF6XmlGui$secondaryArchSuffix
|
|
# Qt6
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Svg$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgfmt$secondaryArchSuffix
|
|
cmd:msgmerge$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=$appsDir/Kig \
|
|
-DCMAKE_INSTALL_DATADIR=$dataDir \
|
|
-DCMAKE_INSTALL_DATAROOTDIR=$dataDir \
|
|
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt6 \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
|
-Wno-dev
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
# cleanup
|
|
rm -rf $dataDir/{applications,icons,metainfo}
|
|
|
|
mv $appsDir/Kig/bin/kig $appsDir/Kig/Kig
|
|
rm -rf $appsDir/Kig/bin dataDir/kig/{icons,applications}
|
|
|
|
local APP_SIGNATURE="application/x-vnd.kde-kig"
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
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/kig.rdef.in > kig.rdef
|
|
|
|
addResourcesToBinaries kig.rdef $appsDir/Kig/Kig
|
|
addAppDeskbarSymlink $appsDir/Kig/Kig
|
|
}
|