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

Last change on this file since 30467 was 30467, checked in by ak19, 6 years ago

Dr Bainbridge fixed gnome-lib compilation on Yosemite by updating pkg-config (0.25 to 0.29) and readline (from 6.1 to 6.3), and by promoting the compilation of glib to before the updated pkg-config to get the two to compile with respect to each other.

  • Property svn:executable set to *
File size: 1.8 KB
Line 
1#!/bin/bash
2
3source ../cascade-make/lib/cascade-lib.bash GEXTGNOME .. $*
4
5# The standard list of packages
6# For Mac Yosemite we found that PKG-CONFIG is dependent on GLIB, so we've moved GLIB ahead of PKG-CONFIG in the list
7pkglist="LIBZ LIBBZ2 EXPAT LIBPNG READLINE XMLPARSER INTLTOOL GETTEXT GLIB PKG-CONFIG LIBXML LIBFFI LIBGSF"
8
9# libiconv was found to be necessary on the latest DL mac (2013)
10# This triggered the need for 'cups' as well, not because libiconv needed it, but due to
11# glib getting a conflict during its configure stage over the version of iconv
12
13# Mac 11/12 (Lion/Mountain Lion and possibly later versions) need CUPS. Mac 9/10 (Leopard, Snow Leopard) don't need it and gnome-lib fails to compile with it.
14osversion=`uname -r | sed 's/\..*$//'`;
15if [ "x$GSDLOS" = "xdarwin" -a $osversion -ge 11 ] ; then
16 pkglist="LIBZ LIBBZ2 EXPAT LIBPNG READLINE XMLPARSER INTLTOOL CUPS LIBICONV GETTEXT GLIB PKG-CONFIG LIBXML LIBFFI LIBGSF"
17fi
18
19if [ "x$crossOS" != "x" ] ; then
20 # cross compiling
21 windows_pkglist="LIBZ LIBBZ2 EXPAT LIBPNG READLINE INTLTOOL LIBICONV GETTEXT GLIB LIBXML LIBGSF"
22
23 android_pkglist="LIBZ LIBBZ2 EXPAT LIBPNG READLINE INTLTOOL LIBICONV GETTEXT GLIB LIBXML DBUS LIBFFI LIBGSF"
24
25
26 if [ $crossOS = "android" ] ; then
27 pkglist=$android_pkglist
28 elif [ $crossOS = "windows" ] ; then
29 pkglist=$windows_pkglist
30 fi
31
32fi
33
34for d in $pkglist; do
35
36 echo " Running CASCADE-MAKE/$d.sh"
37
38 ./CASCADE-MAKE/$d.sh $*
39
40 if [ $? != 0 ] ; then
41 echo "Error encountered running CASCADE-MAKE/$d.sh"
42 exit 1
43 fi
44done
45
46if [ $install = "1" ] ; then
47 touch "$GEXTGNOME_INSTALLED/lib/pkgconfig/.fixed-prefix.awk"
48fi
49
50if [ $makedist = "1" ] ; then
51 rm -f "$GEXTGNOME_INSTALLED/lib/pkgconfig/.fixed-prefix.awk"
52 lalist=`find $GEXTGNOME_INSTALLED/lib -name "*.la"`
53 if [ -n "$lalist" ] ; then
54 rm -f $lalist
55 fi
56fi
Note: See TracBrowser for help on using the repository browser.