root/gs2-extensions/imagemagick/trunk/src/packages/CASCADE-MAKE/IMAGEMAGICK.sh @ 31145

Revision 31145, 1.5 KB (checked in by ak19, 4 years ago)

Redoing El Capitan imgmagick binary for release after testing on an uncooperative El Cap Mac machine. The key change involved recompiling with mmacosx-version-min=10.8 (Mountain Lion) to make the binary more backwards compatible. Works on uncooperative mac. Still to test on Dr Bainbridge's El Cap laptop.

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