root/gs2-extensions/gnome-lib/branches/macos-dev/src/packages/CASCADE-MAKE/LIBGSF.sh @ 34350

Revision 34350, 1.2 KB (checked in by davidb, 6 weeks ago)

Changes to allow gnome-lib extension to compile on Macrocarpa (MacOS)

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3package=libgsf
4version=-1.14.18
5
6progname=$0
7
8source ../cascade-make/lib/cascade-lib.bash GEXTGNOME ../.. $*
9
10prefix=$GEXTGNOME_INSTALLED
11
12export CFLAGS="$CFLAGS -DLIBXML_STATIC"
13
14export CFLAGS="$CFLAGS -I$GEXTGNOME_INSTALLED/include"
15export CPPFLAGS="$CPPFLAGS -I$GEXTGNOME_INSTALLED/include"
16export CXXFLAGS="$CXXFLAGS -I$GEXTGNOME_INSTALLED/include"
17export LDFLAGS="$LDFLAGS -L$GEXTGNOME_INSTALLED/lib"
18
19osversion=`uname -r | sed 's/\..*$//'`;
20if [ "x$GSDLOS" = "xdarwin" -a $osversion -ge 11 ] ; then
21    export CFLAGS="$CFLAGS -framework Carbon -framework CoreFoundation -framework Security"
22    if [ -d /usr/local/lib/pkgconfig ] ; then
23    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
24    fi
25fi
26
27
28opt_run_untar $force_untar $auto_untar $package $version
29
30PARSERPATH=`find $prefix -name "Parser.pm"`
31PARSERDIR=`dirname $PARSERPATH`
32export PERL5LIB=`dirname $PARSERDIR`
33
34opt_run_configure $force_config $auto_config $package $version $prefix \
35  --without-python --without-gdk-pixbuf --disable-shared --enable-static
36
37opt_run_make $compile $package $version
38opt_run_make $install $package $version "install"
39opt_run_make $clean $package $version "clean"
40opt_run_make $distclean $package $version "distclean"
41
42opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the browser.