mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
* cmake/debuginfo: Mass fix packages with broken debuginfo * rtl_sdr: Fix trailing whitespace * meson/debuginfo: Mass fix packages with broken debuginfo * clean up conflicts --------- Co-authored-by: Luc Schrijvers <begasus@gmail.com>
98 lines
2.3 KiB
Bash
98 lines
2.3 KiB
Bash
SUMMARY="Tool for annotating images"
|
|
DESCRIPTION="Library and a tool for annotating images. Part of KSnip project."
|
|
HOMEPAGE="https://github.com/ksnip/kImageAnnotator"
|
|
COPYRIGHT="2021 Antonio Prcela
|
|
2018-2022 Damir Porobi"
|
|
LICENSE="GNU LGPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="2335c5be15a5dde34c3333c10a6339da114e2232e4c4642dea1793e491e09677"
|
|
SOURCE_DIR="kImageAnnotator-$portVersion"
|
|
PATCHES="kimageannotator-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
kimageannotator$secondaryArchSuffix = $portVersion
|
|
lib:libkImageAnnotator$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libkColorPicker$secondaryArchSuffix
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
lib:libQt6Svg$secondaryArchSuffix
|
|
lib:libQt6Widgets$secondaryArchSuffix
|
|
# lib:libX11$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
kimageannotator${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libkImageAnnotator$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
kimageannotator$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgtest$secondaryArchSuffix
|
|
devel:libkColorPicker$secondaryArchSuffix
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Svg$secondaryArchSuffix
|
|
devel:libQt6UiTools$secondaryArchSuffix
|
|
# devel:libX11$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
qthaikuplugins$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage kimageannotator$secondaryArchSuffix \
|
|
$libDir/libkImageAnnotator.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DBUILD_WITH_QT6=ON \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DBUILD_TESTS=OFF
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
prepareInstalledDevelLib \
|
|
libkImageAnnotator
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
# export LIBRARY_PATH="$sourceDir/build/tests${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
|
build/tests/ColorPickerTest
|
|
}
|