source: gs2-extensions/imagemagick/trunk/src/packages/CASCADE-MAKE/PKG-CONFIG.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: 982 bytes
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
19if [ "x$GSDLOS" = "xdarwin" ] ; then
20 LIBS=-lintl opt_run_configure $force_config $auto_config $package $version $prefix \
21 --with-internal-glib --disable-shared
22else
23 opt_run_configure $force_config $auto_config $package $version $prefix \
24 --with-internal-glib --disable-shared
25fi
26
27opt_run_make $compile $package $version
28opt_run_make $install $package $version "install"
29opt_run_make $clean $package $version "clean"
30opt_run_make $distclean $package $version "distclean"
31
32opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the repository browser.