1 | #!/bin/bash
|
---|
2 |
|
---|
3 | package=pkg-config
|
---|
4 | #version=-0.25
|
---|
5 | version=-0.27
|
---|
6 |
|
---|
7 | progname=$0
|
---|
8 |
|
---|
9 | source ../cascade-make/lib/cascade-lib.bash GEXTIMAGEMAGICK ../.. $*
|
---|
10 |
|
---|
11 | prefix=$GEXTIMAGEMAGICK_INSTALLED
|
---|
12 |
|
---|
13 | export CFLAGS="$CFLAGS -I$GEXTIMAGEMAGICK_INSTALLED/include"
|
---|
14 | export CXXFLAGS="$CXXFLAGS -I$GEXTIMAGEMAGICK_INSTALLED/include"
|
---|
15 | export LDFLAGS="$LDFLAGS -L$GEXTIMAGEMAGICK_INSTALLED/lib"
|
---|
16 | export DYLD_LIBRARY_PATH=
|
---|
17 |
|
---|
18 | opt_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 |
|
---|
35 | if [ "x$GSDLOS" = "xdarwin" ] ; then
|
---|
36 | LIBS=-lintl opt_run_configure $force_config $auto_config $package $version $prefix \
|
---|
37 | --with-internal-glib --disable-shared
|
---|
38 | else
|
---|
39 | opt_run_configure $force_config $auto_config $package $version $prefix \
|
---|
40 | --with-libiconv --with-internal-glib --disable-shared --disable-dtrace
|
---|
41 | fi
|
---|
42 |
|
---|
43 | opt_run_make $compile $package $version
|
---|
44 | opt_run_make $install $package $version "install"
|
---|
45 | opt_run_make $clean $package $version "clean"
|
---|
46 | opt_run_make $distclean $package $version "distclean"
|
---|
47 |
|
---|
48 | opt_run_tarclean $tarclean $package $version
|
---|