mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
phonon, add recipe for Qt6 (#10470)
This commit is contained in:
94
kde-frameworks/phonon/phonon6-4.12.0.recipe
Normal file
94
kde-frameworks/phonon/phonon6-4.12.0.recipe
Normal file
@@ -0,0 +1,94 @@
|
||||
SUMMARY="A multimedia library"
|
||||
DESCRIPTION="The Phonon multimedia library."
|
||||
HOMEPAGE="https://invent.kde.org/libraries/phonon"
|
||||
COPYRIGHT="2010-2024 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/phonon/${portVersion}/phonon-${portVersion}.tar.xz"
|
||||
CHECKSUM_SHA256="3287ffe0fbcc2d4aa1363f9e15747302d0b080090fe76e5f211d809ecb43f39a"
|
||||
SOURCE_DIR="phonon-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
phonon6$secondaryArchSuffix = $portVersion
|
||||
cmd:phononsettings6$secondaryArchSuffix = $portVersion
|
||||
lib:libphonon4qt6$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libphonon4qt6experimental$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libQt6Core$secondaryArchSuffix
|
||||
lib:libQt6Core5Compat$secondaryArchSuffix
|
||||
lib:libQt6DBus$secondaryArchSuffix
|
||||
lib:libQt6Gui$secondaryArchSuffix
|
||||
lib:libQt6Widgets$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
phonon6${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libphonon4qt6$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libphonon4qt6experimental$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
phonon6$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix
|
||||
qt6_tools${secondaryArchSuffix}_devel
|
||||
devel:libQt6Core$secondaryArchSuffix
|
||||
devel:libQt6Core5Compat$secondaryArchSuffix
|
||||
devel:libQt6DBus$secondaryArchSuffix
|
||||
devel:libQt6Gui$secondaryArchSuffix
|
||||
devel:libQt6Widgets$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:qmake6$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DPHONON_BUILD_QT5=OFF \
|
||||
-DPHONON_BUILD_QT6=ON \
|
||||
-DKDE_INSTALL_QTPLUGINDIR=$addOnsDir/Qt6 \
|
||||
-DCMAKE_INSTALL_INCLUDEDIR=$includeDir \
|
||||
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt6/mkspecs \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-DBUILD_TESTING=OFF \
|
||||
-Wno-dev
|
||||
make -Cbuild $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -Cbuild install
|
||||
|
||||
mv $binDir/phononsettings $binDir/phononsettings6
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libphonon4qt6 \
|
||||
libphonon4qt6experimental
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
# no tests found
|
||||
make -Cbuild test
|
||||
}
|
||||
Reference in New Issue
Block a user