139.7. libvpx-1.17.0
VP8 and VP9 codecs — BSD, so this one does not relicense ffmpeg
1.17.0-1 · BSD-3-Clause · 1.7 SBU · 3.7 MiB, 17 files · 41_system, 986 of 1047 · ports/core/video-libs/libvpx
Homepage: https://www.webmproject.org/
Why it is in KDOS. The comment above the 4 ports from x264 to svt-av1 in script/phases/41_system/packages.d/video-libs.txt:
ffmpeg and the gst plugin packages are configured against these and are only as capable as what is installed: each of those build systems answers a missing library by disabling the feature rather than failing. One encoder per format: adding a second earns nothing. See ports/core/media-frameworks/ffmpeg/LICENSE.notice for what --enable-gpl does to the shipped binary's licence.
libvpx is the reference VP8 and VP9 encoder and decoder from the WebM project. ffmpeg, the GStreamer plugins and the browsers’ media stacks link it. It is BSD-licensed, so linking it leaves ffmpeg’s licence as it is, which the GPL encoders x264 and x265 do not.
Depends on: nasm.
Required by (10): avidemux, baresip, ffmpeg, firefox-esr, gst-plugins-good, handbrake, librewolf, scummvm, thunderbird, vlc.
Sources: libvpx-1.17.0.tar.gz (5.4 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libvpx'
build.sh:
export CFLAGS="$CFLAGS -flto=auto -frandom-seed=libvpx" CXXFLAGS="$CXXFLAGS -flto=auto -frandom-seed=libvpx"
export LDFLAGS="$LDFLAGS -flto=auto"
./configure \
--prefix=/usr \
--as=nasm \
--libdir=/usr/lib \
--enable-shared \
--disable-static \
--enable-pic \
--enable-vp8 \
--enable-vp9 \
--enable-postproc \
--enable-vp9-highbitdepth \
--disable-examples \
--disable-unit-tests \
--disable-docs
make
make DESTDIR=$PKG install
-flto=auto— Link-time optimisation, inCFLAGS,CXXFLAGSandLDFLAGS. libvpx is one of the media libraries the tree builds with LTO, and its configure has no switch of its own for it (see Every port).-frandom-seed=libvpx— Fix the names GCC gives each object’s LTO sections, which are otherwise random, so the build is reproducible.--as=nasm— Assemble with nasm. The default,auto, prefers yasm whenever it is installed, so the assembler would follow what earlier ports happened to install; nasm is the one independs.--enable-shared— Buildlibvpx.so. libvpx’s configure builds only the static library unless asked.--enable-pic— Compile position-independent code, which a shared library on x86-64 needs.--enable-vp8,--enable-vp9— Both codecs, encoder and decoder. Upstream builds both by default; naming them keeps the set the same on every build.--enable-postproc— The decoder’s post-processing filters (deblocking and noise reduction), which configure turns on by default only on x86 targets.--enable-vp9-highbitdepth— VP9 at 10 and 12 bits per sample, the profiles HDR VP9 uses. Off by default upstream.--disable-examples— Leave out the example encoder and decoder programs, such asvpxencandvpxdec, which upstream builds and installs by default.--disable-unit-tests— Leave out the unit-test programs. Running them needs test vectors that thetestdatatarget downloads.--disable-docs— Leave out the API reference, which needs doxygen.
Libraries: libvpx.so.
Directories: /usr/include/vpx, /usr/share/licenses/libvpx.