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

Last change on this file since 33826 was 33826, checked in by davidb, 4 years ago

Fix to help compiling on CentOS

  • Property svn:executable set to *
File size: 1.7 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
23
24# On a CentOS build encountered an error related to dtrace
25# (potentially related to static/dynamic libraries and whether the '-dev' header
26# files are included)
27# Solution is to disable dtrace with
28# --disable-dtrace
29# In 'glib' in gnomelib-ext a similar error occurred relating to 'systemtap'. If this was
30# to occur here, then presumably the related fix of '--disable-systemtap'
31# would suffice.
32# Potentially related link to all this (from the glib:CASCADE-MAKE comment)
33# https://gitlab.gnome.org/GNOME/glib/issues/653
34
35if [ "x$GSDLOS" = "xdarwin" ] ; then
36 LIBS=-lintl opt_run_configure $force_config $auto_config $package $version $prefix \
37 --with-internal-glib --disable-shared
38else
39 opt_run_configure $force_config $auto_config $package $version $prefix \
40 --with-libiconv --with-internal-glib --disable-shared --disable-dtrace
41fi
42
43opt_run_make $compile $package $version
44opt_run_make $install $package $version "install"
45opt_run_make $clean $package $version "clean"
46opt_run_make $distclean $package $version "distclean"
47
48opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the repository browser.