#!/bin/bash -e #--------------------------------------------------------------------- # buildxorg-all - Distro-specific "xorgbase" build script # License: MIT/X (for this file only) # Revision: 210613 #--------------------------------------------------------------------- # After "xorgbase-*.tar.bz2" is unpacked and all patches are applied, # this script may be run in the top-level directory created. #--------------------------------------------------------------------- badlinks -d $PRODTREE/actools/share/ || exit 1 source /src/0*_xorg/*_xorgbase/special/build/buildxorg-setenv \ || exit 1 #--------------------------------------------------------------------- # Define a "bar" separator. BARSEP="===================================" BARSEP="$BARSEP$BARSEP" #--------------------------------------------------------------------- # Adjust system directories. echo $BARSEP ; echo `date` Adjusting system directories ; echo rm -fr /usr/X11 || exit 1 X="rm -fr {$UM,$UL}/{$UD}/{X11,xorg}" || exit 1 eval $X || exit 1 X="rm -fr {$UM,$UL}/bin/{X,Xorg,Xvfb}" || exit 1 eval $X || exit 1 X="rm -fr {$UM,$UL}/lib/lib{GL,GLU,X11,Xt}.*" || exit 1 eval $X || exit 1 rm -fr $STDDIR || exit 1 rm -fr $PREFIX || exit 1 mkdir -p $PREFIX || exit 1 # X="mkdir -p {$UM,$UL}/{$UD}" || exit 1 # eval $X || exit 1 ldconfig || exit 1 # Note: The $LIBDIR directory must be created at this point or a seg- # mentation fault may occur due to a bug in "getpwuid" that's trig- # gered when "build.sh" sets LD_LIBRARY_PATH and then does "git # clone". rm -fr $BINDIR $DOCDIR $INCDIR $GLIDIR || exit 1 rm -fr $LIBDIR $LPCDIR $MANBASE || exit 1 mkdir -p $BINDIR $DOCDIR $INCDIR $GLIDIR || exit 1 mkdir -p $LIBDIR $LPCDIR $MANBASE || exit 1 #--------------------------------------------------------------------- # Additional kludges and tweaks. sed -e 's/build app xbacklight/# &/' \ -e 's/build driver xf86-video-sis/# &/' \ -i util/modular/build.sh || exit 1 mkdir -p app/rstart/m4 || exit 1 DIR=$PREFIX/share/aclocal mkdir -p $DIR || exit 1 touch $DIR/{xorg-macros,xorg-server,xtrans}.m4 || exit 1 #--------------------------------------------------------------------- # Compile Xorg base system. echo $BARSEP ; echo `date` Compiling XOrg ; echo sh ./util/modular/build.sh $PREFIX || exit 1 #--------------------------------------------------------------------- # Post-build adjustments. source /src/0*_xorg/*_xorgbase/special/build/buildxorg-wrapup \ || exit 1