source: gs2-extensions/imagemagick/trunk/src/packages/CASCADE-MAKE/LIBICONV.sh@ 31803

Last change on this file since 31803 was 31803, checked in by ak19, 7 years ago

About 2 fixes to get imagemagick to compile up on Ubuntu v 16.04: 1. Dr Bainbridge fixed up PKGCONFIG.sh to not have lintl in its LIBS, and instead to run the configure command without setting LIBS and without involving lintl (a lib for internationalization, like encoding stuff). The LIBS may be necessary on El Capitan for which Dr Bainbridge appears to have first included the PKG-CONFIG.SH compile script and pkg-config in the first place. So the script now sets the LIBS with lintl for darwin, while for other unix, it doesn't set LIBS but runs configure directly and without lintl. 2. libiconv had a gets vs fgets issue. Fixed with a patch found online. This resulted in a greenstone version of the libiconv version we're using. The patch is now documented in the README.txt folder in imagemagick/packages.

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/bash
2
3package=gs-libiconv
4version=-1.14
5
6progname=$0
7
8source ../cascade-make/lib/cascade-lib.bash GEXTIMAGEMAGICK ../.. $*
9
10prefix=$GEXTIMAGEMAGICK_INSTALLED
11
12if [ "x$crossOS" = "xandroid" ] ; then
13 # Stops configure generating a local 'stdint.h' in 'srclib' folder
14 # (when this file was generated, caused no end of issues with chaining
15 # standard header files, errors with time_t, pid_t etc)
16 # Fix came from:
17 # http://stackoverflow.com/questions/9053702/building-libiconv-fails-with-the-android-standalone-toolchain
18
19 extra_config_args="gl_cv_header_working_stdint_h=yes"
20else
21 extra_config_args=
22fi
23
24
25opt_run_untar $force_untar $auto_untar $package $version
26opt_run_configure $force_config $auto_config $package $version $prefix \
27 $extra_config_args \
28 --enable-static \
29 --disable-shared \
30
31#export DYLIB_COMPATIBILITY_VERSION=7.0.0
32
33opt_run_make $compile $package $version
34opt_run_make $install $package $version "install"
35opt_run_make $clean $package $version "clean"
36opt_run_make $distclean $package $version "distclean"
37
38opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the repository browser.