source: gs2-extensions/gnome-lib/trunk/src/packages/CASCADE-MAKE/LIBGSF.sh

Last change on this file was 34983, checked in by anupama, 3 years ago

Merging the gnome-lib branch macos-dev at https://trac.greenstone.org/browser/gs2-extensions/gnome-lib/branches/macos-dev with the main trunk after testing it first on assigned linux 64 bit machine in lab as well as 64 bit LSB VM, and making changes for it to compile on Linux 64 bit LSB.

  • Property svn:executable set to *
File size: 1.3 KB
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="-Dg_memmove=memmove $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 repository browser.