# Description: core rendering algorithms and ideas of mpv rewritten as an independent library # URL: http://libplacebo.org/ # Maintainer: KRAK3N Team, extra ports at krak3n dot my # Depends on: meson glad lcms2 python-markupsafe vulkan-headers name=libplacebo version=7.351.0 release=1 source=(https://github.com/haasn/${name}/archive/v${version}/${name}-${version}.tar.gz) build() { cd ${name}-${version} # fix an incompatibility with Python-3.13.6 and later sed -e '204a\ tree = ET.parse(xmlfile)' \ -e 's/VkXML(ET.parse(xmlfile))/VkXML(tree.getroot())/' \ -i src/vulkan/utils_gen.py meson setup \ -Dprefix=/usr \ -Dlibdir=/usr/lib \ -Dincludedir=/usr/include \ -Ddatadir=/usr/share \ -Dmandir=/usr/share/man \ -Dinfodir=/usr/share/info \ -Dlocaledir=/usr/share/locale \ -Dsysconfdir=/etc \ -Dlocalstatedir=/var \ -Dsharedstatedir=/var/lib \ -Dbuildtype=plain \ -Dauto_features=auto \ -Dwrap_mode=nodownload \ -Db_lto=true \ -Db_pie=true \ -Ddemos=false \ build ninja -C build DESTDIR=$PKG meson install -C build }