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

Revision 34350, 0.9 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=pkg-config
4#version=-0.25
5version=-0.29
6
7progname=$0
8
9source ../cascade-make/lib/cascade-lib.bash GEXTGNOME ../.. $*
10
11prefix=$GEXTGNOME_INSTALLED
12
13export GLIB_CFLAGS="-I$GEXTGNOME_INSTALLED/include/glib-2.0 -I$GEXTGNOME_INSTALLED/lib/glib-2.0/include"
14export GLIB_LIBS="-L$GEXTGNOME_INSTALLED/lib -lglib-2.0"
15
16osversion=`uname -r | sed 's/\..*$//'`;
17if [ "x$GSDLOS" = "xdarwin" -a $osversion -ge 11 ] ; then
18    export CFLAGS="$CFLAGS -framework Carbon -framework CoreFoundation -framework Security"
19fi
20
21opt_run_untar $force_untar $auto_untar $package $version
22opt_run_configure $force_config $auto_config $package $version $prefix --disable-shared --enable-static
23
24opt_run_make $compile $package $version
25opt_run_make $install $package $version "install"
26opt_run_make $clean $package $version "clean"
27opt_run_make $distclean $package $version "distclean"
28
29opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the browser.