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

Last change on this file since 28326 was 28326, checked in by ak19, 8 years ago

Mac 11/12 (Lion/Mountain Lion) need CUPS. Mac 9/10 (Leopard, Snow Leopard) don't need it and gnome-lib fails to compile with it.

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