#AUTOMAKE_OPTIONS=dist-zip dist-shar dist-bzip2
AUTOMAKE_OPTIONS=dist-zip dist-shar
-MAINTAINERCLEANFILES=config/config.guess config/config.sub config/ltmain.sh config/install-sh config/mkinstalldirs config/aclocal.m4 config/missing config/texinfo.tex config/depcomp aclocal.m4 config.h.in configure stamp-h.in Makefile.in config.log config.status .doc_stamp .DS_Store @PACKAGE_TARNAME@-@VERSION@.spec include/etl_profile.h.in libltdl/COPYING.LIB libltdl/Makefile.in libltdl/acinclude.m4 libltdl/config-h.in libltdl/configure.in libltdl/ltdl.h libltdl/Makefile.am libltdl/README libltdl/aclocal.m4 libltdl/configure libltdl/ltdl.c libltdl/stamp-h.in
+MAINTAINERCLEANFILES=config/package config/config.guess config/config.sub config/ltmain.sh config/install-sh config/mkinstalldirs config/aclocal.m4 config/missing config/texinfo.tex config/depcomp aclocal.m4 config.h.in configure stamp-h.in Makefile.in config.log config.status .doc_stamp .DS_Store @PACKAGE_TARNAME@-@VERSION@.spec include/etl_profile.h.in libltdl/COPYING.LIB libltdl/Makefile.in libltdl/acinclude.m4 libltdl/config-h.in libltdl/configure.in libltdl/ltdl.h libltdl/Makefile.am libltdl/README libltdl/aclocal.m4 libltdl/configure libltdl/ltdl.c libltdl/stamp-h.in
SUBDIRS=libltdl src
win32inst.nsi: $(srcdir)/win32inst.nsi.in
./config.status win32inst.nsi
-
-installer: all win32inst.nsi
+
+pkg-info/macosx/synfig-core.info: $(srcdir)/pkg-info/macosx/synfig-core.info.in
+ ./config.status pkg-info/macosx/synfig-core.info
+
+RMDIR=rm -fr
+
+if WIN32_PKG
+package: all win32inst.nsi
makensis win32inst.nsi
+else
+if MACOSX_PKG
+package: all pkg-info/macosx/synfig-core.info
+ [ -d pkg_root ] && $(RMDIR) pkg_root || true
+ make install prefix="`pwd`/pkg_root"
+ $(srcdir)/config/package pkg_root pkg-info/macosx/synfig-core.info -r $(srcdir)/pkg-info/macosx/core-resources
+endif
+endif
run: check
# Look for the CVS directory. If we don't find it, we need to
# ask the user if they know what they are doing.
-test -d CVS ||
+( test -d CVS || test -d .svn ) ||
{
output warning: This shell script is intended for those
output warning: who either know what they are doing or
" < libltdl/ltdl.h > $TEMPFILE && cp $TEMPFILE libltdl/ltdl.h
)
+(
+output Patching libtool...
+patch config/ltmain.sh config/ltmain.patch
+) ||
+{
+ # Something went wrong...
+ set +x
+ output Failure.
+ cleanup;
+ exit 1
+}
+
#echo '#define LTDL_SHLIB_EXT ".so"' >> libltdl/config-h.in
-echo '
+#echo '
#ifdef WIN32
#define LTDL_SHLIB_EXT ".dll"
#else
VERSION_MAJ="0"
VERSION_MIN="61"
VERSION_REV="00"
-VERSION_REL=
+VERSION_REL=`svn info | grep Revision | sed "s/.* \([0123456789]*\)/\1/"`
[ -d CVS ] && VERSION_REL="CVS"
-MODULE_DIR=$libdir/sinfg/modules
+MODULE_DIR='${libdir}/sinfg/modules'
moduledir=$libdir/sinfg/modules
AC_SUBST(MODULE_DIR)
SINFGLIB_DIR=$libdir/sinfg
AC_CHECK_HEADERS(signal.h termios.h)
+
+case "$host" in
+ *mingw* | *cygwin*)
+ AM_CONDITIONAL(WIN32_PKG, true)
+ AM_CONDITIONAL(MACOSX_PKG, false)
+ ;;
+ *darwin*)
+ AM_CONDITIONAL(WIN32_PKG, false)
+ AM_CONDITIONAL(MACOSX_PKG, true)
+ ;;
+ *)
+ AM_CONDITIONAL(WIN32_PKG, false)
+ AM_CONDITIONAL(MACOSX_PKG, false)
+ ;;
+esac
+
+
+
# -- H E A D E R S --------------------------------------------
# -- T Y P E S & S T R U C T S --------------------------------
src/tool/Makefile
src/modules/sinfg_modules.cfg
win32inst.nsi
+pkg-info/macosx/synfig-core.info
dnl src/modules/trgt_mpg/Makefile
dnl src/modules/mptr_mplayer/Makefile
)
--- /dev/null
+--- ltmain.bak Thu Apr 7 19:12:55 2005
++++ ltmain.sh Thu Apr 7 19:20:28 2005
+@@ -5362,10 +5362,10 @@
+ # At present, this check doesn't affect windows .dll's that
+ # are installed into $libdir/../bin (currently, that works fine)
+ # but it's something to keep an eye on.
+- if test "$inst_prefix_dir" = "$destdir"; then
+- $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+- exit 1
+- fi
++# if test "$inst_prefix_dir" = "$destdir"; then
++# $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
++# exit 1
++# fi
+
+ if test -n "$inst_prefix_dir"; then
+ # Stick the inst_prefix_dir data into the link command.
--- /dev/null
+#!/bin/sh
+
+#OPTIONS="--disable-optimization --enable-debug"
+
+OPTIONS=""
+#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"
+
+BUILDDIR=macosxbuild
+
+[ -e configure ] || ./bootstrap || exit 1
+
+# [ -d $BUILDDIR ] && rm -fr $BUILDDIR
+
+mkdir $BUILDDIR
+
+cd $BUILDDIR
+
+../configure $OPTIONS || exit 1
+
+make package
+
+#make installer
+
+
--- /dev/null
+This is the readme for Synfig Core.
--- /dev/null
+This is the welcome for Sinfg.
--- /dev/null
+#!/bin/sh
+# finish up the installation
+# this script should be executed using the sudo command
+# this file is copied to sinfg-devel.post_install and sinfg-devel.post_upgrade
+# inside the .pkg bundle
+LOGFILE="/sinfg_install.log"
+
+exit 0
+
+
+umask 022
+
+RESOURCE_DIR=`dirname $0`
+PREFIX=/usr/local
+
+cd $RESOURCE_DIR
+
+echo "Creating sinfg-config script"
+[ -d $PREFIX ] || mkdir $PREFIX
+[ -d $PREFIX/bin ] || mkdir $PREFIX/bin
+[ -d $PREFIX/include ] || mkdir $PREFIX/include
+[ -d $PREFIX/lib ] || mkdir $PREFIX/lib
+[ -d $PREFIX/sbin ] || mkdir $PREFIX/sbin
+
+echo "Cleaning up any previous installation"
+[ -d $PREFIX/include/sinfg ] && rm -fr $PREFIX/include/sinfg
+ln -s /Library/Frameworks/sinfg.framework/Headers $PREFIX/include/sinfg
+
+sed '
+s:@exec_prefix@:/usr/local:g;
+s:@prefix@:/usr/local:g;
+s:@bindir@:$exec_prefix/bin:g;
+s:@libdir@:$exec_prefix/lib:g;
+s:@includedir@:$prefix/include:g;
+s:@VERSION@:@_VERSION_@:g;
+s:@PACKAGE@:@_PACKAGE_@:g;
+s:@LIBS@::g;
+s:@VERSION@:@_VERSION_@:;
+s:@PACKAGE@:@_PACKAGE_@:;
+s:@CONFIG_LIBS@:-F/Library/Frameworks/sinfg.framework:;
+s:@SINFG_LIBS@:-F/Library/Frameworks/sinfg.framework:;
+s:@CONFIG_CFLAGS@:-framework sinfg:;
+' < $RESOURCE_DIR/sinfg-config.in > $PREFIX/bin/sinfg-config
+chmod 775 $PREFIX/bin/sinfg-config
+
+echo "Precompiling Headers"
+#/usr/bin/c++ -precomp /Library/Frameworks/sinfg.framework/Headers/sinfg.h -o /Library/Frameworks/sinfg.framework/Headers/sinfg.p
+
+echo "Moving sinfg tool"
+cp $RESOURCE_DIR/sinfg $PREFIX/bin || exit 1
+
+echo "Done with shell script"
+
+
+exit 0
+
+
+
--- /dev/null
+Title @PACKAGE_NAME@ @VERSION@
+Version @VERSION@
+Description @PACKAGE_NAME@
+DefaultLocation /usr/local
+DeleteWarning
+NeedsAuthorization YES
+DisableStop NO
+UseUserMask YES
+Application NO
+Relocatable NO
+Required NO
+InstallOnly NO
+RequiresReboot NO
+InstallFat NO
MAINTAINERCLEANFILES=Makefile.in
INCLUDES = -I$(top_srcdir)/src
+# GCC on MacOS X does not take kindly to the -ffastmath optimization
+# in this module for some reason.
+CXXFLAGS=`echo @CXXFLAGS@ | sed s/-ffast-math//g`
+
moduledir=@MODULE_DIR@
module_LTLIBRARIES = libmod_geometry.la