#!/bin/bash -e #--------------------------------------------------------------------- # File: buildxorg-setenv # Purpose: To be documented # License: MIT/X (for this file only) # Revision: 210613 #--------------------------------------------------------------------- # Basic parameters. if [ "x$HAVEBUILDXORGSETENV" == "x" ]; then HAVEBUILDXORGSETENV=yes unset JAVA_HOME MAKE=smpmake export MAKE UM=/usr UL=/usr/local UD=bin,include,lib,share LOCBIN=$UL/bin LOCINC=$UL/include LOCLIB=$UL/lib PREFIX=$PRODTREE/xorg STDDIR=/usr/X11R6 #--------------------------------------------------------------------- # The setting LACSLOWDOWN=0.52 helps "xorgbase" to build even on a # flaky old system, but increases build times from about 3 hours to # over 6 hours just to get past building "xserver". The addition of # LACSMPTRIES=4 may, or may not, make it possible to increase LAC- # SLOWDOWN, and thereby build speeds. # export GCCPAUSE=5 # export LACSLOWDOWN=0.52 export LACLLVMPKG=llvmgcc17 export LACMESONXORG=yes export LACSMPTRIES=8 BINDIR=$PREFIX/bin DOCDIR=$PREFIX/doc INCDIR=$PREFIX/include GLIDIR=$INCDIR/GL LIBDIR=$PREFIX/lib LPCDIR=$LIBDIR/pkgconfig XPCDIR=$PREFIX/share/pkgconfig MANBASE=$PREFIX/man #--------------------------------------------------------------------- # Define a "bar" separator. BARSEP="===================================" BARSEP="$BARSEP$BARSEP" #--------------------------------------------------------------------- # More parameters. P=$PRODTREE ACLOCAL="aclocal -I $PREFIX/share/aclocal" CONFFLAGS=$CONFGENERAL LACNOWERROR=yes LD_LIBRARY_PATH=$LIBDIR LACINCDIRS=$INCDIR:/$LACARCH/include LACINCDIRS=$P/freetype2/include:$LACINCDIRS LACINCDIRS=$P/freetype2/include/freetype2:$LACINCDIRS LACLDDIRS=$P/xorg/lib:$P/expat/lib . srcpkgpaths glibc . srcpkgpaths $LACLLVMPKG LDINSERTBEFORE="-lncurses -lc" PATH=$PRODTREE/python3/bin:$PATH PATH=$PRODTREE/byacc/bin:$PATH PATH=$PRODTREE/gettext/bin:$PATH PATH=$PRODTREE/$LACLLVMPKG/bin:$PATH PATH=.:$BINDIR:$PATH PKG_CONFIG_PATH=$LPCDIR:$PKG_CONFIG_PATH PKG_CONFIG_PATH=$XPCDIR:$PKG_CONFIG_PATH export ACLOCAL export CONFFLAGS CONFMESA CONFMESADRM CONFXSERVER export LACINCDIRS LACNOWERROR export LD_LIBRARY_PATH LACLDDIRS LDINSERTBEFORE export PATH PKG_CONFIG_PATH PREFIX #--------------------------------------------------------------------- # "configure" option switches for general builds. CONFGENERAL=" --build=$LACARCHBUILD --host=$LACARCHHOST --disable-static --enable-shared --mandir=$MANBASE --with-fop=no " #--------------------------------------------------------------------- # "configure" option switches for Mesa. hash llvm-config || exit 1 echo llvm-config is at `which llvm-config` export LDFLAGS="`llvm-config --libs`" echo LDFLAGS="`llvm-config --libs`" DRV_GALLIUM="i915,iris,nouveau,r600,radeonsi,svga,swrast,virgl" DRV_DRI="i965,nouveau" OLDCONFMESADRM=" CC=gcc CXX=g++ CFLAGS=-O2 CXXFLAGS=-O2 --build=$LACARCHBUILD --host=$LACARCHHOST --disable-static --enable-shared --mandir=$MANBASE --prefix=$PREFIX --disable-debug --enable-llvm --disable-vdpau --enable-dri --enable-gbm --enable-gles1 --enable-gles2 --enable-glx --enable-glx-tls --enable-opengl --enable-osmesa --enable-shared-glapi --enable-xa --with-platforms=drm,x11 --with-gallium-drivers=$DRV_GALLIUM " CONFMESADRM=" --prefix=$PREFIX -Dbuildtype=release -Dvalgrind=disabled " # future: -Dgallium-nine=true needs llvmpipe # -Ddri-drivers=auto # -Ddri3=enabled # -Dglx=dri CONFMESA=" -Dbuildtype=release -Dcpp_rtti=false -Dgallium-drivers=auto -Dgallium-vdpau=disabled -Dgallium-xa=auto -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=auto " OLDCONFXSERVER=" --disable-config-hal --disable-debug --disable-dependency-tracking --disable-dmx --disable-xinerama --disable-xnest --disable-xwin --enable-config-dbus --with-os-vendor=Laclin --with-vendor-name=Laclin --with-vendor-name-short=Laclin " CONFXSERVER=" -Dxorg=true -Dxephyr=false -Dxwayland=false -Dglamor=true -Dxwayland_eglstream=false -Dxnest=true -Dxvfb=true -Dxwin=false -Dxquartz=false -Dglx=true -Dxdmcp=true -Dxdm-auth-1=true -Dsecure-rpc=true -Dipv6=false -Dinput_thread=auto -Dfallback_input_driver=auto -Dvendor_name='Laclin' -Dvendor_name_short='Laclin' -Dvendor_web='https://laclin.com/' -Ddtrace=false -Dhal=false -Dsystemd_logind=false -Dxselinux=false -Ddocs=false " #--------------------------------------------------------------------- # Wrap it up. fi