[banshee] [build] pass --enable-osx if profile is darwin



commit 8009f5093329f95c4cccab079f13ac38bf8fc51f
Author: Aaron Bockover <abockover novell com>
Date:   Tue Jan 19 11:41:31 2010 -0500

    [build] pass --enable-osx if profile is darwin
    
    On darwin, also ammend the environment file with GTK2_RC_FILES
    set to the location of the gtkrc in the bundle skeleton

 bootstrap-bundle |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/bootstrap-bundle b/bootstrap-bundle
index f73b51c..9dacdc4 100755
--- a/bootstrap-bundle
+++ b/bootstrap-bundle
@@ -22,13 +22,17 @@ if ! test -f "build/bundle/$profile"; then
 	exit 1
 fi
 
-envfile="$(pwd)/$(dirname "$0")/$profile_name.env"
+selfdir="$(pwd)/$(dirname "$0")"
+envfile="$selfdir/$profile_name.env"
 
 pushd build/bundle &>/dev/null
 ./$profile -bv
 ./$profile -e > "$envfile"
 popd &>/dev/null
 
+[ $profile_name = darwin ] && \
+	echo "export GTK2_RC_FILES=\"$selfdir/build/bundle/skeleton.darwin/Contents/Resources/etc/gtk-2.0/gtkrc\"" >> "$envfile"
+
 source "$envfile"
 
 CONFIGURE_ARGS="
@@ -39,7 +43,7 @@ CONFIGURE_ARGS="
 	--disable-gnome
 	--disable-docs
 "
-[ $profile_name = osx ] && CONFIGURE_ARGS="$CONFIGURE_ARGS --enable-osx"
+[ $profile_name = darwin ] && CONFIGURE_ARGS="$CONFIGURE_ARGS --enable-osx"
 ./autogen.sh --prefix="$BUILD_PREFIX" $CONFIGURE_ARGS
 
 cat <<EOF



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]