### the following is needed for pkgconfig to find the .pc files
mkdir  -p  ${INSTALL_ROOT}/usr/X11R6/lib                                                           &&
ln -sf  ${INSTALL_ROOT}/usr/lib/pkgconfig  ${INSTALL_ROOT}/usr/X11R6/lib                           &&
default_install  &&

### more IMAKE foobars
mkdir -p ${INSTALL_ROOT}/usr/X11R6/lib/X11/doc/html/                                               &&
install -c -m 0444 $SOURCE_DIRECTORY.bld/doc/man/Xext/XTransparency.3x.html                        \
${INSTALL_ROOT}/usr/X11R6/lib/X11/doc/html/XTransparency.3.html                                    &&
cp $SOURCE_DIRECTORY/config/cf/directfb.cf ${INSTALL_ROOT}/usr/X11R6/lib/X11/config/               &&
cp $SOURCE_DIRECTORY/include/extensions/xf86vm* ${INSTALL_ROOT}/usr/X11R6/include/X11/extensions/  &&
### normal
make  install.man                                                                                  &&
mkdir  -p  /usr/X11R6/include/GL

rm     -f  /usr/X11R6/include/zlib.h
rm     -f  /usr/X11R6/lib/libz.a

if  [  !  -e                      /etc/skel/.xsession  ];  then
  cp  $SCRIPT_DIRECTORY/xsession  /etc/skel/.xsession
fi

if  [  !  -e                    /usr/bin/X11  ];  then
  ln -sf $TRACK_ROOT/usr/X11R6/bin  /usr/bin/X11
fi

if  [  !  -e          /usr/X11  ];  then
  ln      -sf  X11R6  /usr/X11
fi

if  [  !  -e                         /usr/include/X11  ];  then
  ln      -sf  ../X11R6/include/X11  /usr/include/X11
fi

if  [  !  -e                     /usr/lib/X11  ];  then
  ln      -sf  ../X11R6/lib/X11  /usr/lib/X11
fi
