#!/bin/sh
+#PREFIX=/Applications/SynfigStudio.app/Contents/synfig
+PREFIX=/Users/darco/Projects/Voria/synfig-build
#OPTIONS="--disable-optimization --enable-debug"
-export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig
+export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig
export MACOSX_DEPLOYMENT_TARGET=10.4
-OPTIONS=""
+OPTIONS="--prefix=$PREFIX"
#OPTIONS="$OPTIONS --enable-timelimit=120"
OPTIONS="$OPTIONS --enable-optimization=2"
#OPTIONS="$OPTIONS --enable-optimization=3 --enable-g5opt"
#OPTIONS="$OPTIONS --disable-optimization"
OPTIONS="$OPTIONS --disable-debug"
+OPTIONS="$OPTIONS --disable-dependency-tracking"
#OPTIONS="$OPTIONS --enable-debug"
#export LDFLAGS='-undefined dynamic-lookup'
LDFLAGS="-prebind -prebind_all_twolevel_modules -twolevel_namespace -bind_at_load -undefined dynamic_lookup"
BUILDDIR=macosxbuild
+ARCH_FLAGS=""
+#ARCH_FLAGS="$ARCH_FLAGS -arch ppc"
+ARCH_FLAGS="$ARCH_FLAGS -arch i386"
+
+CC="gcc $ARCH_FLAGS"
+CXX="g++ $ARCH_FLAGS"
+
+CPP="gcc -E"
+CXXCPP="g++ -E"
+
+
[ -e configure ] || ./bootstrap || exit 1
[ -d $BUILDDIR ] && rm -fr $BUILDDIR
set -x
-../configure $OPTIONS LDFLAGS="$LDFLAGS" || exit 1
+../configure $OPTIONS LDFLAGS="$LDFLAGS" CC="$CC" CXX="$CXX" CPP="$CPP" CXXCPP="$CXXCPP" || exit 1
make -j2
-make package
+make install-strip
+#make package
#make installer
return;
}
- // New Method
{
Keyframe keyframe((*row)[model.keyframe]);
synfigapp::Action::Handle action(synfigapp::Action::create("keyframe_set_delta"));
canvas_interface()->get_instance()->perform_action(action);
}
-
- if(0)
- { // Old Method The slowest method EVER!!!
- OneMoment one_moment;
-
- // Create the action group
- synfigapp::Action::PassiveGrouper group(canvas_interface()->get_instance().get(),_("Adjust Time"));
- synfigapp::PushMode push_mode(canvas_interface(), synfigapp::MODE_NORMAL);
-
- Gtk::TreeModel::iterator iter(row);
- if(change_delta<0)
- {
- //DEBUGPOINT();
- KeyframeList keyframe_list(get_canvas()->keyframe_list());
- synfig::KeyframeList::iterator iter(keyframe_list.find((*row)[model.keyframe]));
- //DEBUGPOINT();
- for(;iter!=keyframe_list.end();++iter)
- {
- //DEBUGPOINT();
- synfig::Keyframe keyframe(*iter);
-
- keyframe.set_time(keyframe.get_time()+change_delta);
-
- synfigapp::Action::Handle action(synfigapp::Action::create("keyframe_set"));
-
- if(!action)return;
-
- action->set_param("canvas",canvas_interface()->get_canvas());
- action->set_param("canvas_interface",canvas_interface());
- action->set_param("keyframe",keyframe);
-
- canvas_interface()->get_instance()->perform_action(action);
- }
- }
- else
- {
- //DEBUGPOINT();
- KeyframeList keyframe_list(get_canvas()->keyframe_list());
- synfig::KeyframeList::reverse_iterator end(keyframe_list.find((*row)[model.keyframe]));
- synfig::KeyframeList::reverse_iterator iter(keyframe_list.rbegin());
- //end++;
- //DEBUGPOINT();
- for(;iter!=end;++iter)
- {
- //DEBUGPOINT();
- synfig::Keyframe keyframe(*iter);
-
- keyframe.set_time(keyframe.get_time()+change_delta);
-
- synfigapp::Action::Handle action(synfigapp::Action::create("keyframe_set"));
-
- if(!action)return;
-
- action->set_param("canvas",canvas_interface()->get_canvas());
- action->set_param("canvas_interface",canvas_interface());
- action->set_param("keyframe",keyframe);
-
- canvas_interface()->get_instance()->perform_action(action);
- }
- }
- }
-
return;
}
else