smlinux/xorg/mesa/smbuild
PktSurf 9d657e0a1d Upgraded base/perl to 5.38.0
Renamed .SMBuild files to smbuild for simplicity
Added musl-fts, musl-obstack, glslang, python-glad, libptytty, libmilter, elfutils and fuse to base section build list
Discarded fuse2 and fuse3 from base section
Temporarily discarded slapt-get, syslinux, p7zip, acpid, libelf-compat, gnu-eif, libtirpc, mozilla-nss,
lua53, qpdf, kernel-source and signify from base section build list
Disabled nls and made amends to base/e2fsprogs
Upgraded base/git to 2.46.2
Upgraded extra/gnumeric to 1.12.57
Disabled nls in base/gnutls, extra/dia
Disabled a patch and made amends in base/llvm
Fixed configure.local file in base/mandoc
Upgraded base/rust to 1.79
Fixed a ton of build files to use build prefix as /usr and miscellaneous changes
Discarded extra/bluez,blueman,scrcpy,adafruit-io
Added tomb to extra
Added new build option to extra/libass
Upgraded extra/mpv to 0.37.0
Disabled tests in gtk/gdk-pixbuf
Upgraded gtk/goffice to 0.10.57
Added gtk-doc to gtk section
Fixed build options in gtk/gtk2
Added new patches to gtk/gtk3
Added gtksourceview to gtk section
Added vulkan-headers to xorg section
Upgraded xorg/mesa to 23.1.9
Added libplacebo to xorg section
Fixed build stuff in xorg/glew
2024-10-29 20:25:20 +05:30

55 lines
No EOL
1.5 KiB
Bash

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=mesa
version=23.1.9
build=1sml
homepage="https://www.mesa3d.org/"
download="https://archive.mesa3d.org/mesa-$version.tar.xz"
desc="An open-source implementation of the OpenGL specification"
requires="gcc-libs libelf expat libxml2 llvm libdrm libx11 libxrandr libxdamage libxshmfence libxxf86vm libvdpau"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
applypatch $srcdir/llvm17.patch
}
build() {
galliumdrivers="nouveau,radeonsi,swrast,r300,i915,iris,zink"
mkdir -p smbuild && cd smbuild
meson .. \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
-Dbuildtype=release \
-Dgallium-va=enabled \
-Dgallium-vdpau=enabled \
-Dgallium-drivers="$galliumdrivers" \
-Dvulkan-drivers=amd,intel,swrast \
-Dplatforms="x11,wayland" \
-Dgallium-nine=false \
-Degl=enabled \
-Dgles1=disabled \
-Dgles2=enabled \
-Dglx=dri \
-Dopengl=true \
-Dvalgrind=disabled \
-Dlibunwind=disabled
ninja
DESTDIR="$pkg" ninja install
cp $srcdir/LICENSE $pkgdocs/
mkfinalpkg
}
sha512sums="
886403cd9133e64c741a65497891aa868127f3d97583f908056c2b196690b562173a31f4573656fdd35ec89e22dd95ce02e0d683e5bf6261500420485ed268af mesa-23.1.9.tar.lz
2026e88c245da00c5170e7ce658c783427569787805e024fbea333d24da399e46ca0d4403e222e8138911c7f76216852c9214a800e3a84cac1993379abb5a621 llvm17.patch
"