From 91ba89ed910aac0bc63f687fc6176f38b163bbcd Mon Sep 17 00:00:00 2001 From: darco Date: Tue, 19 Apr 2005 23:11:31 +0000 Subject: [PATCH] bleh git-svn-id: http://svn.voria.com/code@24 1f10aa63-cdf2-0310-b900-c93c546f37ac --- .../trunk/pkg-info/macosx/resources/ReadMe.txt | 1 + .../trunk/pkg-info/macosx/resources/Welcome.txt | 1 + .../trunk/pkg-info/macosx/resources/install.sh | 58 ++++++++++++++++++++++ .../trunk/pkg-info/macosx/synfig-studio.info.in | 14 ++++++ 4 files changed, 74 insertions(+) create mode 100644 synfig-studio/trunk/pkg-info/macosx/resources/ReadMe.txt create mode 100644 synfig-studio/trunk/pkg-info/macosx/resources/Welcome.txt create mode 100755 synfig-studio/trunk/pkg-info/macosx/resources/install.sh create mode 100644 synfig-studio/trunk/pkg-info/macosx/synfig-studio.info.in diff --git a/synfig-studio/trunk/pkg-info/macosx/resources/ReadMe.txt b/synfig-studio/trunk/pkg-info/macosx/resources/ReadMe.txt new file mode 100644 index 0000000..cdb5c31 --- /dev/null +++ b/synfig-studio/trunk/pkg-info/macosx/resources/ReadMe.txt @@ -0,0 +1 @@ +This is the readme for Synfig Core. diff --git a/synfig-studio/trunk/pkg-info/macosx/resources/Welcome.txt b/synfig-studio/trunk/pkg-info/macosx/resources/Welcome.txt new file mode 100644 index 0000000..3662015 --- /dev/null +++ b/synfig-studio/trunk/pkg-info/macosx/resources/Welcome.txt @@ -0,0 +1 @@ +This is the welcome for Sinfg. diff --git a/synfig-studio/trunk/pkg-info/macosx/resources/install.sh b/synfig-studio/trunk/pkg-info/macosx/resources/install.sh new file mode 100755 index 0000000..60f8537 --- /dev/null +++ b/synfig-studio/trunk/pkg-info/macosx/resources/install.sh @@ -0,0 +1,58 @@ +#!/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 + + + diff --git a/synfig-studio/trunk/pkg-info/macosx/synfig-studio.info.in b/synfig-studio/trunk/pkg-info/macosx/synfig-studio.info.in new file mode 100644 index 0000000..7dc1a3b --- /dev/null +++ b/synfig-studio/trunk/pkg-info/macosx/synfig-studio.info.in @@ -0,0 +1,14 @@ +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 -- 2.7.4