OSMesa got removed in mesa 25.1, replace it with gl

This commit is contained in:
lod 2025-06-24 15:34:08 +02:00
parent cccca05e1e
commit b020e3bc0a

View file

@ -33,11 +33,12 @@ prepare() {
# Fix xgettext: case-sensitive mismatches
sed -i 's|src/slic3r/GUI/AMSMappingPopup.cpp|src/slic3r/GUI/AmsMappingPopup.cpp|g' $pkgname/localization/i18n/list.txt
sed -i 's|https://www.mpfr.org/mpfr-current/mpfr-4.2.1.tar.bz2|https://www.mpfr.org/mpfr-4.2.1/mpfr-4.2.1.tar.bz2|' $pkgname/deps/MPFR/MPFR.cmake
# OSMesa got removed in mesa 25.1, replace it with gl
sed -i 's/OSMesa/OpenGL::GL/' $pkgname/src/slic3r/CMakeLists.txt
}
build() {
cd $pkgname
export CXXFLAGS="${CXXFLAGS} -flto"
export CMAKE_POLICY_VERSION_MINIMUM=3.5
export CC=/usr/bin/gcc-14
export CXX=/usr/bin/g++-14