Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add libplacebo #28673

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions recipes/libplacebo/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

export LC_ALL=C
export NINJA=$(which ninja)
export PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}"
PKG_CONFIG="${BUILD_PREFIX}/bin/pkg-config"

meson setup build -Dopengl=disabled ${MESON_ARGS}

meson compile -C build --verbose
meson install -C build

58 changes: 58 additions & 0 deletions recipes/libplacebo/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
context:
name: libplacebo
version: 7.349.0

package:
name: ${{ name|lower }}
version: ${{ version }}

source:
url: https://code.videolan.org/videolan/libplacebo/-/archive/v${{ version }}/libplacebo-v${{ version }}.tar.gz
sha256: 79120e685a1836344b51b13b6a5661622486a84e4d4a35f6c8d01679a20fbc86

build:
number: 0
skip: win

requirements:
build:
- ${{ compiler('c') }}
- ${{ stdlib('c') }}
- ${{ compiler('cxx') }}
- ninja
- cmake
- pkg-config
- meson
- jinja2
host:
- fast_float
- glslang
- lcms2
- markupsafe
- libvulkan-headers
- shaderc
- xxhash

tests:
- package_contents:
lib:
- libplacebo
- script:
- if pkg-config --exists libplacebo; then echo "Libplacebo found"; else echo "Libplacebo not found"; exit 1; fi
requirements:
run:
- pkg-config

about:
license: LGPL-2.1-or-later
license_file: LICENSE
summary: Core rendering algorithms and ideas from mpv as an independent library
description: |
Libplacebo is, in a nutshell, the core rendering algorithms and ideas of
mpv rewritten as an independent library. It provides robust and efficient
GPU rendering for a variety of multimedia applications.
homepage: https://code.videolan.org/videolan/libplacebo

extra:
recipe-maintainers:
- Tobias-Fischer
Loading