source: gs2-extensions/imagemagick/trunk/src/packages/CASCADE-MAKE/PKG-CONFIG.sh@ 31808

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

Related to commits 31803 and 31804. Committing the changes necessary for getting imagemagick to compile on Ubuntu 16.04. There was a new compilation error despite the aforementioned earlier commits: there needed to be --with-libiconv passed to the PKG-CONFIG package when configuring to work with glib. And the --with-libiconv flag moreover needed to not be at the end, so I've placed it as the first of the additional flags in the PKG-CONFIG.sh script. NOTE that I'm not sure if this flag is necessary on the Mac and have left it out for now. 2. This meant I could return to renaming the gs-modified libiconv package to gs-libiconv. (I'd reversed an earlier commit thinking the new compilation error was because the only libiconv related change had been to rename the package to have a gs- prefix, even though this seemed unlikely to be the cause. Since it wasn't the cause, have put the gs- renaming back.)

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/bash
2
3package=pkg-config
4#version=-0.25
5version=-0.27
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 CXXFLAGS="$CXXFLAGS -I$GEXTIMAGEMAGICK_INSTALLED/include"
15export LDFLAGS="$LDFLAGS -L$GEXTIMAGEMAGICK_INSTALLED/lib"
16export DYLD_LIBRARY_PATH=
17
18opt_run_untar $force_untar $auto_untar $package $version
19
20# On Mac: if there's an error about
21# "#error GNU libiconv not in use but included iconv.h is from libiconv"
22# then prepend --with-libiconv before --with-internal-glib for darwin too
23if [ "x$GSDLOS" = "xdarwin" ] ; then
24 LIBS=-lintl opt_run_configure $force_config $auto_config $package $version $prefix \
25 --with-internal-glib --disable-shared
26else
27 opt_run_configure $force_config $auto_config $package $version $prefix \
28 --with-libiconv --with-internal-glib --disable-shared
29fi
30
31opt_run_make $compile $package $version
32opt_run_make $install $package $version "install"
33opt_run_make $clean $package $version "clean"
34opt_run_make $distclean $package $version "distclean"
35
36opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the repository browser.