mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-07 07:28:57 +02:00
91 lines
2.0 KiB
Bash
91 lines
2.0 KiB
Bash
SUMMARY="A libmpv wrapper for Qt Quick 2/Qml"
|
|
DESCRIPTION="MpvQt is a libmpv wrapper for Qt Quick 2/Qml."
|
|
HOMEPAGE="https://invent.kde.org/libraries/mpvqt"
|
|
COPYRIGHT="2023 George Florea Bănuș"
|
|
LICENSE="BSD (2-clause)
|
|
BSD (3-clause)
|
|
CC-BY-SA-4.0
|
|
CC0-1.0
|
|
MIT
|
|
GNU GPL v2
|
|
GNU GPL v3
|
|
GNU LGPL v2.1
|
|
GNU LGPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="$HOMEPAGE/-/archive/v$portVersion/mpvqt-v$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="6a462b4830b5770629345b03ca3b395624e874f089a09dc173594f88def5baa3"
|
|
SOURCE_DIR="mpvqt-v$portVersion"
|
|
|
|
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="
|
|
mpvqt$secondaryArchSuffix = $portVersion
|
|
lib:libMpvQt$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libmpv$secondaryArchSuffix
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
lib:libQt6Network$secondaryArchSuffix
|
|
lib:libQt6Qml$secondaryArchSuffix
|
|
lib:libQt6Quick$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
mpvqt${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libMpvQt$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
mpvqt$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
devel:libmpv$secondaryArchSuffix
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Quick$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage mpvqt$secondaryArchSuffix \
|
|
$libDir/libMpvQt.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
|
make -Cbuild $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -Cbuild install
|
|
|
|
prepareInstalledDevelLib \
|
|
libMpvQt
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|