mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
kcolorpicker, new recipe (#10214)
This commit is contained in:
77
media-libs/kcolorpicker/kcolorpicker-0.3.1.recipe
Normal file
77
media-libs/kcolorpicker/kcolorpicker-0.3.1.recipe
Normal file
@@ -0,0 +1,77 @@
|
||||
SUMMARY="Qt based color picker with popup menu"
|
||||
DESCRIPTION="QToolButton with color popup menu with lets you select a color. The popup features a \
|
||||
color dialog button which can be used to add custom colors to the popup menu."
|
||||
HOMEPAGE="https://github.com/ksnip/kColorPicker"
|
||||
COPYRIGHT="2018-2021 Damir Porobic"
|
||||
LICENSE="GNU LGPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="e78c785ec4a8a22a48a91835c97601f5704b5076b154415353b0d2697dc0b4f7"
|
||||
SOURCE_DIR="kColorPicker-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
kcolorpicker$secondaryArchSuffix = $portVersion
|
||||
lib:libkColorPicker$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
kcolorpicker${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libkColorPicker$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
kcolorpicker$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
defineDebugInfoPackage kcolorpicker$secondaryArchSuffix \
|
||||
$libDir/libkColorPicker.so.$libVersion
|
||||
|
||||
TEST_REQUIRES="
|
||||
qthaikuplugins$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DBUILD_TESTS=ON
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C build install
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libkColorPicker
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make -C build test
|
||||
}
|
||||
Reference in New Issue
Block a user