diff options
| author | Michael Forney <mforney@mforney.org> | 2024-08-15 00:49:31 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2024-08-15 01:09:25 -0700 |
| commit | 559deaa755f18455fbcdaf3ce1474214811f8c8f (patch) | |
| tree | 61f5450d7762e1fa5ba4799022eebb3fcd07883f /pkg | |
| parent | c26adb5386edeb7bd09e79da969771aa3a5053c5 (diff) | |
Add libplacebo 7.349.0
Hard dependency of newer mpv versions.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/gen.lua | 1 | ||||
| -rw-r--r-- | pkg/libplacebo/config_internal.h | 9 | ||||
| -rw-r--r-- | pkg/libplacebo/gen.lua | 73 | ||||
| m--------- | pkg/libplacebo/src | 0 | ||||
| -rw-r--r-- | pkg/libplacebo/ver | 1 |
5 files changed, 84 insertions, 0 deletions
diff --git a/pkg/gen.lua b/pkg/gen.lua index f666331b..bc2f20f7 100644 --- a/pkg/gen.lua +++ b/pkg/gen.lua @@ -57,6 +57,7 @@ subgen 'libjpeg-turbo' subgen 'libliftoff' subgen 'libnl' subgen 'libpciaccess' +subgen 'libplacebo' subgen 'libpng' subgen 'libressl' subgen 'libtermkey' diff --git a/pkg/libplacebo/config_internal.h b/pkg/libplacebo/config_internal.h new file mode 100644 index 00000000..f7e3d724 --- /dev/null +++ b/pkg/libplacebo/config_internal.h @@ -0,0 +1,9 @@ +#define BUILD_API_VER 349 +#define BUILD_FIX_VER 0 +#undef PL_DEBUG_ABORT +#undef PL_HAVE_DBGHELP +#undef PL_HAVE_EXECINFO +#undef PL_HAVE_UNWIND + +#define PL_HAVE_PTHREAD 1 +#define PTHREAD_HAS_SETCLOCK 1 diff --git a/pkg/libplacebo/gen.lua b/pkg/libplacebo/gen.lua new file mode 100644 index 00000000..eab54a80 --- /dev/null +++ b/pkg/libplacebo/gen.lua @@ -0,0 +1,73 @@ +cflags{ + '-std=c11', '-Wall', + '-D _XOPEN_SOURCE=700', + '-I $srcdir/src', + '-I $srcdir/src/include', + '-I $outdir/include', + '-I $outdir', + '-I $dir', +} + +pkg.hdrs = copy('$outdir/include/libplacebo', '$srcdir/src/include/libplacebo', { + -- src/src/meson.build:/^headers =/ + 'cache.h', + 'colorspace.h', + 'common.h', + 'd3d11.h', + 'dispatch.h', + 'dither.h', + 'dummy.h', + 'filters.h', + 'gamut_mapping.h', + 'gpu.h', + 'log.h', + 'opengl.h', + 'options.h', + 'renderer.h', + 'shaders/colorspace.h', + 'shaders/custom.h', + 'shaders/deinterlacing.h', + 'shaders/dithering.h', + 'shaders/film_grain.h', + 'shaders/icc.h', + 'shaders/lut.h', + 'shaders/sampling.h', + 'shaders.h', + 'swapchain.h', + 'tone_mapping.h', + 'utils/dav1d.h', + 'utils/dav1d_internal.h', + 'utils/dolbyvision.h', + 'utils/frame_queue.h', + 'utils/libav.h', + 'utils/libav_internal.h', + 'utils/upload.h', + 'vulkan.h', +}) +pkg.deps = { + '$gendir/headers', + '$outdir/version.h', + '$outdir/include/libplacebo/config.h', +} + +build('awk', '$outdir/version.h', '$dir/ver', { + expr=[['{printf "#define BUILD_VERSION \"%s\"\n", $$1}']], +}) +build('sed', '$outdir/include/libplacebo/config.h', '$srcdir/src/include/libplacebo/config.h.in', { + expr={ + '-e s,@majorver@,7,', + '-e s,@apiver@,349,', + '-e /@extra_defs@/d', + } +}) + +-- just enough to build mpv +lib('libplacebo.a', [[ + src/( + colorspace.c + common.c + ) + +]]) + +fetch 'git' diff --git a/pkg/libplacebo/src b/pkg/libplacebo/src new file mode 160000 +Subproject 1fd3c7bde7b943fe8985c893310b5269a09b46c diff --git a/pkg/libplacebo/ver b/pkg/libplacebo/ver new file mode 100644 index 00000000..ed9e6d46 --- /dev/null +++ b/pkg/libplacebo/ver @@ -0,0 +1 @@ +7.349.0 r0 |
