}
PROGRAM=$1
+SOURCE=$PROGRAM
+if [[ $PROGRAM == 'libfm-extra' ]]; then
+ SOURCE='libfm'
+fi
VERSION=${VERSION:-0.15.0}
PKG="$BUILD_DIR/package-${PROGRAM}"
rm -rf "$PKG" "$TMP/${PROGRAM}-$VERSION"
cd "$TMP"
-cp -R ${CWD}/src/${PROGRAM} $TMP/${PROGRAM}-$VERSION
+cp -R ${CWD}/src/${SOURCE} $TMP/${PROGRAM}-$VERSION
cd "${PROGRAM}"-$VERSION
fix_perms
# Check autotools builds before continuing with cmake programs
if [ -r $CWD/autotools/${PROGRAM} ]; then
+ echo "sourcing autotools settings for $PROGRAM"
. $CWD/autotools/${PROGRAM}
else
if [ -r $CWD/cmake/${PROGRAM} ]; then
+ echo "sourcing cmake settings for $PROGRAM"
. $CWD/cmake/${PROGRAM}
else
# This is the default configure script:
+ echo "setting generic cmake for $PROGRAM"
. $CWD/cmake/cmake
fi
fi