#!/bin/bash source ../functions/main source /etc/profile check_for_root_user init_log_file VERSIONS_DIR="${SCRDIR}/versions" export XORG_CONFIG="\ --mandir=/usr/share/man \ --localstatedir=/var" # Arg #1: module name and version # Arg #2: optional configure arguments ipkg_xorg() { local MODULE=${1} shift local MY_CONFIGURE_OPTS=${*} ipkg ${MODULE} ${XORG_CONFIG} ${MY_CONFIGURE_OPTS} } # Install all submodules in a module # # Arg #1: module name install_xorg_modules() { local MODULE=${1} for package in $(grep -v '^#' ${VERSIONS_DIR}/${MODULE}.md5 | \ awk '{print $2}' | sed 's!\.tar\.bz2$!!'); do ipkg_xorg ${package} done } ipkg_xorg ${XORG_UTIL_MACROS} install_xorg_modules proto ipkg_xorg ${LIBXAU} ipkg_xorg ${LIBXDMCP} ipkg ${LIBPTHREAD_STUBS} ${XORG_CONFIG} ipkg ${XCB_PROTO} ${XORG_CONFIG} ipkg ${LIBXCB} ${XORG_CONFIG} install_xorg_modules lib ipkg ${XCB_UTIL} ${XORG_CONFIG} ipkg ${XCB_UTIL_KSYMS} ${XORG_CONFIG} ipkg_xorg ${XBITMAPS} ipkg -m acnb -j ${MOTIF} ipkg ${LIBDRM} "\ --enable-udev \ --enable-nouveau-experimental-api" ipkg -m acnb ${TALLOC} ipkg -m acnb ${LLVM} "\ --enable-shared \ --enable-libffi \ --enable-targets=all \ --disable-expensive-checks \ --disable-assertions \ --enable-optimized" ipkg -m acnb ${MESALIB} ipkg ${GLU} ipkg ${FREEGLUT} install_xorg_modules app ipkg_xorg ${XCURSOR_THEMES} install_xorg_modules font ipkg ${XKEYBOARD_CONFIG} ${XORG_CONFIG} --with-xkb-rules-symlink=xorg ipkg ${PIXMAN} ipkg ${DBUS} ipkg ${GLIB} "--with-pcre=system" ipkg ${GOBJECT_INSTROSPECTION} "--disable-tests" ipkg -m acnb ${DBUS_GLIB} \ --disable-tests \ --libexecdir=/usr/lib/dbus-1.0/dbus-1 ipkg -m acnb -j ${LIBEPOXY} ipkg_xorg ${XORG_SERVER} "\ --with-xkb-output=/var/lib/xkb \ --enable-dmx \ --enable-glamor \ --enable-install-setuid \ --enable-suid-wrapper" ipkg -m acnb ${MTDEV} "--disable-static" ipkg ${LIBEVDEV} ${XORG_CONFIG} install_xorg_modules driver ipkg_xorg ${XDM} "--with-xdmlibdir=/usr/lib/xorg/xdm" rscr once "Configuring X.org" configure-xorg ipkg ${XTERM} ipkg -m acnb ${T1LIB} ipkg -s tk -d unix ${TK} "\ --enable-threads \ --mandir=/usr/share/man" # Re-installing python now that tk is present??? ipkg ${PYTHON} "--enable-shared" ipkg -m noac ${DEJAVUFONTS} ipkg -m acnb ${XDG_UTILS} "--mandir=/usr/share/man" ipkg -m acnb ${WINDOWMAKER} "--with-gnustepdir=/usr/share/GNUstep" ipkg ${WINDOWMAKER_EXTRA} write_completed_stage display_stage_build_stats exit $?