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

Last change on this file since 26619 was 26619, checked in by davidb, 11 years ago

Cross-compilation support added (mingw under Linux) which in turn needed the version of zlib used to be upgraded

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/bash
2
3package=zlib
4version=-1.2.7
5
6progname=$0
7
8source ../cascade-make/lib/cascade-lib.bash GEXTGNOME ../.. $*
9
10prefix=$GEXTGNOME_INSTALLED
11
12if [ "x$CROSSCONFIGURE_ARGS" != "x" ] ; then
13 export LDSHAREDLIBC=-lcrtdll
14 # zlib configure does not support '--host'
15 export CROSSCONFIGURE_ARGS=
16fi
17
18
19opt_run_untar $force_untar $auto_untar $package $version
20
21#opt_run_configure $force_config $auto_config $package $version $prefix
22
23if [ $auto_config = "1" ] ; then
24 if [ ! -f $package$version/configure.log] ; then
25 force_config=1
26 fi
27
28fi
29
30if [ $force_config = "1" ] ; then
31 echo "[pushd $package$version]"
32 ( cd $package$version ; \
33 echo $CROSSCONFIGURE_VARS ./configure --prefix="$prefix" $CROSSCONFIGURE_ARGS $@ ; \
34 eval $CROSSCONFIGURE_VARS ./configure --prefix="$prefix" $CROSSCONFIGURE_ARGS $@ )
35 if [ $? != 0 ] ; then
36 echo " Error encountered running *configure* stage of $progname"
37 exit 1
38 fi
39 echo "[popd]"
40 else
41 if [ $auto_config = "1" ] ; then
42 echo "Found top-level for ${progname%.*} => no need to run ./configure"
43 fi
44fi
45
46
47
48opt_run_make $compile $package $version
49opt_run_make $install $package $version "install"
50opt_run_make $clean $package $version "clean"
51opt_run_make $distclean $package $version "distclean"
52
53opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the repository browser.