2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-22 07:10:16 -07:00
repo/extra/ffmpeg/build
2024-05-28 00:48:45 +05:30

44 lines
1014 B
Bash
Executable File

#!/bin/sh -e
mv libavcodec/vulkan_video_codec_av1std_decode.h \
libavcodec/vulkan_video_codec_av1std_decode_mesa.h
mv libavcodec/vulkan_video_codec_av1std.h \
libavcodec/vulkan_video_codec_av1std_mesa.h
patch -p1 < add-av_stream_get_first_dts-for-chromium.patch
patch -p1 < fix-vulkan-headers.patch
./configure \
--cc="$CC" \
--cxx="$CXX" \
--prefix=/usr \
--disable-debug \
--disable-libxml2 \
--disable-static \
--disable-libxcb \
--disable-libxcb-shm \
--disable-libxcb-xfixes \
--disable-libxcb-shape \
--disable-xlib \
--enable-gpl \
--enable-libass \
--enable-libdrm \
--enable-libmp3lame \
--enable-libopus \
--enable-libvorbis \
--enable-libvpx \
--enable-libwebp \
--enable-libx264 \
--enable-libx265 \
--enable-libxvid \
--enable-nonfree \
--enable-openssl \
--enable-shared \
--enable-version3 \
--x86asmexe=nasm
make
make DESTDIR="$1" install
rm -rf "$1/usr/share/ffmpeg/examples"