#!/bin/bash -e #--------------------------------------------------------------------- # File: buildxorg-all # Purpose: Distro-specific "xorgbase" build script # License: MIT/X (for this file only) # Revision: 260816 #--------------------------------------------------------------------- # After "xorgbase-*.tar.bz2" is unpacked and all patches are applied, # this script may be run in the top-level directory created. #--------------------------------------------------------------------- set -e badlinks -d $PRODTREE/actools/share/ source /src/0*_xorg/*_xorgbase/special/build/buildxorg-setenv #--------------------------------------------------------------------- # Define a "bar" separator. BARSEP="===================================" BARSEP="$BARSEP$BARSEP" #--------------------------------------------------------------------- # Adjust system directories. echo $BARSEP ; echo `date` Adjusting system directories ; echo rm -fr /usr/X11 X="rm -fr {$UM,$UL}/{$UD}/{X11,xorg}" eval $X X="rm -fr {$UM,$UL}/bin/{X,Xorg,Xvfb}" eval $X X="rm -fr {$UM,$UL}/lib/lib{GL,GLU,X11,Xt}.*" eval $X rm -fr $STDDIR rm -fr $PREFIX mkdir -p $PREFIX # X="mkdir -p {$UM,$UL}/{$UD}" # eval $X ldconfig # 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 rm -fr $LIBDIR $LPCDIR $MANBASE mkdir -p $BINDIR $DOCDIR $INCDIR $GLIDIR mkdir -p $LIBDIR $LPCDIR $MANBASE #--------------------------------------------------------------------- # Additional kludges and tweaks. sed -e 's/build app xbacklight/# &/' \ -e 's/build driver xf86-video-sis/# &/' \ -i util/modular/build.sh mkdir -p app/rstart/m4 DIR=$PREFIX/share/aclocal mkdir -p $DIR touch $DIR/{xorg-macros,xorg-server,xtrans}.m4 #--------------------------------------------------------------------- # Compile Xorg base system. echo $BARSEP ; echo `date` Compiling XOrg ; echo bash ./util/modular/build.sh $PREFIX #--------------------------------------------------------------------- # Post-build adjustments. source /src/0*_xorg/*_xorgbase/special/build/buildxorg-wrapup