# mesa-amber/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. The source tarball used by this package was created based on "git" upstream sources. The sources were obtained as follows: ocgitfetch --run mesa-amber \ --checkout=amber \ --deletegit \ https://gitlab.freedesktop.org/mesa/mesa #--------------------------------------------------------------------- 2. For "mesa-amber" to work correctly, the command below should be added to "/etc/profile": export __GLX_VENDOR_LIBRARY_NAME=amber Also: a. The regular Mesa package should be installed in addition to this one. b. "/etc/X11/xorg.conf" shouldn't specify a video driver. #--------------------------------------------------------------------- [buildtimes] 00.09 hours (or 005.13 minutes) - ThinkPad L390 24GB RAM i5 4x2 #--------------------------------------------------------------------- [settings] license = tbd proddir = none purge = no shareddir = yes tmpsize = 295M setpaths = llvmgcc17 #--------------------------------------------------------------------- [depends] llvmgcc meson:forward ninja:forward xorgbase:strict #--------------------------------------------------------------------- [configure] #--------------------------------------------------------------------- treetextsub \ --pattern="typedef khronos_ssize_t GLsizeiptr;" \ --newtext="typedef ptrdiff_t GLsizeiptr;" \ --keeptimes treetextsub \ --pattern="typedef khronos_ssize_t GLsizeiptARB;" \ --newtext="typedef ptrdiff_t GLsizeiptrARB;" \ --keeptimes treetextsub \ --pattern="typedef khronos_intptr_t GLintptr;" \ --newtext="typedef ptrdiff_t GLintptr;" \ --keeptimes treetextsub \ --pattern="typedef khronos_intptr_t GLintptrARB;" \ --newtext="typedef ptrdiff_t GLintptrARB;" \ --keeptimes #--------------------------------------------------------------------- rm -fr build mkdir build meson build \ -Dprefix=$PRODTREE/xorg \ -Damber=true \ -Dbuildtype=release \ -Dcpp_rtti=false \ -Dgallium-drivers="" \ -Dgallium-vdpau=disabled \ -Dgallium-xa=disabled \ -Dgbm=enabled \ -Dgles1=enabled \ -Dgles2=enabled \ -Dlibunwind=disabled \ -Dllvm=enabled \ -Dopengl=true \ -Dosmesa=false \ -Dplatforms=x11 \ -Dshared-glapi=enabled \ -Dshared-llvm=disabled \ -Dvalgrind=disabled \ -Dvulkan-drivers="" cd build if [ \! -f build.ninja ]; then exit 1; fi meson configure #--------------------------------------------------------------------- [build] cd build ninja_simple_build #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = Not checked yet url_home = Ditto url_lfs = Ditto url_tarball = git # See "technotes" in "cfg" file #--------------------------------------------------------------------- [history] 230220 Added package. Started with 14d7da246 ("git" hash). 240311 Updated to 492799145