source: gs2-extensions/imagemagick/trunk/src/packages/CASCADE-MAKE/IMAGEMAGICK.sh@ 32909

Last change on this file since 32909 was 32909, checked in by ak19, 5 years ago

Rebuilding linux imagemagick tarball after testing GS3 binary on Ubuntu 18.04 showed that its imagemagick installation was broken because identify linked to a png library on the system, which then needed a different version of libz as it found the one included incompatible and nothing compatible on the syste. And so the identify command in the bundled imagemagick failed. During the course of producing a new ImageMagick tarball, I went through the checks in the README written since the El Capitan tarball was created which required the binary ImageMagicks that we bundle to support GIF, JPEG, PNG and TIFF. However the old and locally rebuilt ImageMagick tarball didn't have TIFF support. In order to get TIFF support in the Linux ImageMagick tarball (which we didn't have before), needed to switch to a newer ImageMagick version at least. However, I first tried switching to a newer tiff library and left that in as the date for the newer ImageMagick match better with the date for the newer tiff. Upgrading Tiff from 3.9.4 to versions 3.9.7 and 4.0.7 made no difference. Neither did 4.0.10, until Imagemagick got upgraded alongside to 6.9.10-33. Then ImageMagick finally had tiff support and so listed tiff among its delegates. The older ImageMagick 6.9.5.4 worked with tiff-3.9.4 on El Capitan to produce Imagemagick binaries with tiff support. In case El Capitan breaks with the update, we can switch back to those versions for El Capitan.

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#!/bin/bash
2
3package=ImageMagick
4#version=-6.9.5-4
5version=-6.9.10-33
6
7progname=$0
8
9source ../cascade-make/lib/cascade-lib.bash GEXTIMAGEMAGICK ../.. $*
10
11prefix=$GEXTIMAGEMAGICK_INSTALLED
12
13export CFLAGS="$CFLAGS -I$GEXTIMAGEMAGICK_INSTALLED/include"
14export CPPFLAGS="$CPPFLAGS -I$GEXTIMAGEMAGICK_INSTALLED/include"
15export CXXFLAGS="$CXXFLAGS -I$GEXTIMAGEMAGICK_INSTALLED/include"
16# We need to add libz to LDFLAGS to get the configure test for libtiff to succeed
17# (only found to be necessary on an uncooperative mac)
18export LDFLAGS="$LDFLAGS -L$GEXTIMAGEMAGICK_INSTALLED/lib -lz"
19export LD_LIBRARY_PATH="$GEXTIMAGEMAGICK_INSTALLED/lib"
20
21# If on darwin, check if clang exists. If so, use that as CC, in place of gcc
22# use command -v instead of which to check if a program exists.
23# http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script
24if [ "x$GSDLOS" = "xdarwin" ] ; then
25 if command -v clang > /dev/null 2>&1; then
26 echo "Found clang compiler. Switching CC to clang"
27 CROSSCONFIGURE_VARS="CC=clang"
28 fi
29fi
30
31# it's going to generate the ghostscript binary not ghostscript library
32# so --without-gslib
33opt_run_untar $force_untar $auto_untar $package $version
34opt_run_configure $force_config $auto_config $package $version $prefix --without-gslib --disable-shared
35
36opt_run_make $compile $package $version
37opt_run_make $install $package $version "install"
38opt_run_make $clean $package $version "clean"
39opt_run_make $distclean $package $version "distclean"
40
41opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the repository browser.