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

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