root/gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE/LIBZ.sh @ 32246

Revision 32228, 1.4 KB (checked in by ak19, 19 months ago)

Tried to compile xpdf-tools up statically with CMake, but still not successful. For now committing modifications necessary (including the new additional packages) for compiling xpdf-tools agains dynamically linked libs of libpng and zlib and freetype. Although these 3 packages have been introduced and are successfully compiled up (and I can even get the CMake configure stage of xpdf-tools to 'see' them), the xpdftools binaries upon successful compilation are shown by ldd to still refer to system versions of zlib, libpng and freetype. Some modifications to a single file in the xpdftools src package were necessary to get things to compile again with these changes, so recommitting the xpdftools src package with modications using the usual gs- prefix and a readme.

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3package=zlib
4version=-1.2.7
5
6progname=$0
7
8source ../cascade-make/lib/cascade-lib.bash GEXT_XPDFTOOLS ../.. $*
9
10prefix=$GEXTXPDFTOOLS_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 --prefix="$prefix" $CROSSCONFIGURE_ARGS $@ ; \
36      eval $CROSSCONFIGURE_VARS ./configure --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 browser.