mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
94 lines
2.3 KiB
Bash
94 lines
2.3 KiB
Bash
SUMMARY="Reusable library for GPU-accelerated image processing primitives"
|
|
DESCRIPTION="Reusable library for GPU-accelerated image/video processing primitives and shaders, \
|
|
as well a batteries-included, extensible, high-quality rendering pipeline (similar to mpv's vo_gpu). \
|
|
Supports Vulkan, OpenGL, Metal (via MoltenVK) and Direct3D 11."
|
|
HOMEPAGE="https://libplacebo.org/"
|
|
COPYRIGHT="2017-2022 Niklas Haas"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://code.videolan.org/videolan/libplacebo/-/archive/v${portVersion}/libplacebo-v${portVersion}.tar.bz2"
|
|
CHECKSUM_SHA256="38c9c75d9c1bb412baf34845d1ca58c41a9804d1d0798091d7a8602a0d7c9aa6"
|
|
SOURCE_DIR="libplacebo-v$portVersion"
|
|
PATCHES="libplacebo-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libplacebo$secondaryArchSuffix = $portVersion compat >= 7
|
|
lib:libplacebo$secondaryArchSuffix = 349
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgl$secondaryArchSuffix
|
|
lib:libglslang$secondaryArchSuffix
|
|
lib:liblcms2$secondaryArchSuffix
|
|
lib:libxxhash$secondaryArchSuffix
|
|
lib:libvulkan$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libplacebo${secondaryArchSuffix}_devel = $portVersion compat >= 7
|
|
devel:libplacebo$secondaryArchSuffix = 349
|
|
"
|
|
REQUIRES_devel="
|
|
libplacebo$secondaryArchSuffix == $portVersion base
|
|
devel:libgl$secondaryArchSuffix
|
|
devel:liblcms2$secondaryArchSuffix
|
|
devel:libxxhash$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
jinja_python310
|
|
devel:libgl$secondaryArchSuffix
|
|
devel:libglslang$secondaryArchSuffix
|
|
devel:liblcms2$secondaryArchSuffix
|
|
devel:libxxhash$secondaryArchSuffix
|
|
devel:libvulkan$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:meson
|
|
cmd:ninja
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python3
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
meson build \
|
|
--buildtype=debugoptimized \
|
|
--prefix="$prefix" \
|
|
--bindir="$binDir" \
|
|
--libdir="$libDir" \
|
|
--includedir="$includeDir" \
|
|
--datadir="$dataDir" \
|
|
-Dopengl=disabled \
|
|
-Dvulkan=enabled \
|
|
-Dshaderc=disabled \
|
|
-Dglslang=enabled \
|
|
-Dvulkan-registry=/system/data/vulkan/registry/vk.xml
|
|
|
|
ninja -C build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C build install
|
|
|
|
prepareInstalledDevelLib libplacebo
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
ninja -C build test
|
|
}
|