#!/bin/sh set -o errexit # First argument of this script is the package name. # Remaining arguments are additional configure options. # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list PACKAGE=${1} shift CONFIGURE_OPTS=${*} # Applying patches (if any) apply_patches ${PACKAGE} cd ${LFS_TMP}/${PACKAGE} ./configure \ --prefix=${XORG_PREFIX} \ ${CONFIGURE_OPTS} sed -i "s@libdir)/X11/mwm@sysconfdir)/mwm@" clients/Motif-2.1/mwm/Makefile make rootdir=/usr/share/doc/${PACKAGE} make rootdir=/usr/share/doc/${PACKAGE} install ldconfig # Applicatons that utilize Xorg libraries often, and incorrectly, expect to find configuration # files in $XORG_PREFIX/lib/X11. While still the root user, create a compatibility symlink with # the following command: ln -v -sf /etc/X11/mwm ${XORG_PREFIX}/lib/X11 exit $?