WARNING: Mesa is big, if your cpu is weak, expect long compilation times
I recently stumbled across codec and hwaccel support. Unfortunately due to licensing issues, CL can’t ship it to us, but we can build it ourselves without polluting our system install with various devpkgs.
Autospec is great, Here is a basic guide. For full official guide, check here → Autospec.doc
Dependencies:
sudo swupd bundle-add package-builder
/* this is all you need for autospec */
Create workspace
curl -O https://raw.githubusercontent.com/clearlinux/common/master/user-setup.sh
chmod +x user-setup.sh
./user-setup.sh
/* this will create a ./clearlinux folder in wherever you ran the script in */
Get CL’s Mesa package - check repo clearlinux-pkgs · GitHub for full list of available pkgs
cd ./clearlinux
make clone_mesa
cd ./packages/mesa
Add lines to configure and run autospec
echo "Apache-2.0 BSD-2-Clause MIT Unicode-DFS-2016" >> mesa.license
echo "" >> configure //fix for missing new-line
echo "-Dvideo-codecs=all" >> configure
/* you can edit the configure file based on your needs */
make autospec
check build.log and root.log in case of error, and once its done, install
make install-local
That’s all, enjoy!