#!/bin/sh

DEB_CONFIGURE_SYSCONFDIR=$1
DEB_STYLE_DIR=$2

THEME_DIR="./theme"
THEME_ADDON_FILE="$THEME_DIR/default"

EXTRA_FLAGS=""

./$THEME_DIR/setup.sh > /dev/null 2>&1

if [ -e $THEME_ADDON_FILE ]; then
	DEB_DEFAULT_STYLE=`cat $THEME_ADDON_FILE`
	EXTRA_FLAGS="$EXTRA_FLAGS --with-style=$DEB_STYLE_DIR$DEB_DEFAULT_STYLE"
fi

echo " --enable-xinerama \
--enable-nls \
--with-apps=$DEB_CONFIGURE_SYSCONFDIR/apps \
--with-keys=$DEB_CONFIGURE_SYSCONFDIR/keys \
--with-init=$DEB_CONFIGURE_SYSCONFDIR/init \
--with-overlay=$DEB_CONFIGURE_SYSCONFDIR/overlay \
--with-menu=$DEB_CONFIGURE_SYSCONFDIR/fluxbox.menu-user \
--with-windowmenu=$DEB_CONFIGURE_SYSCONFDIR/window.menu \
--with-locale=/usr/share/fluxbox/nls \
--enable-shape \
$EXTRA_FLAGS"
