tce-load -lwi compiletc cmake libaom-dev squashfs-tools wget -O- https://github.com/AOMediaCodec/libavif/archive/refs/tags/v0.11.1.tar.gz | tar -xzvf - cd libavif-0.11.1 mkdir build cd build CFLAGS="-mtune=generic -Os -pipe" CXXFLAGS="-mtune=generic -Os -pipe -fno-exceptions -fno-rtti" cmake .. -DAVIF_CODEC_AOM=ON make -j8 mkdir /tmp/libavif_tmp make DESTDIR=/tmp/libavif_tmp install find /tmp/libavif_tmp -exec strip -s {} \; mksquashfs /tmp/libavif_tmp ../../libavif.tcz -e usr/local/include usr/local/lib/cmake usr/local/lib/pkgconfig rm -rf /tmp/libavif_tmp/usr/local/lib/*.so* mksquashfs /tmp/libavif_tmp ../../libavif-dev.tcz