summaryrefslogtreecommitdiffstats
path: root/packaging/macos/150-jhbuild-inkdeps.sh
blob: 77fa92ec8801844f40b385d21b64e8c156915d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This file is part of the build pipeline for Inkscape on macOS.
#
# ### 150-jhbuild-inkdeps.sh ###
# Install additional dependencies into our jhbuild environment required for
# building Inkscape.

### load settings and functions ################################################

SELF_DIR=$(F=$0; while [ ! -z $(readlink $F) ] && F=$(readlink $F); cd $(dirname $F); F=$(basename $F); [ -L $F ]; do :; done; echo $(pwd -P))
for script in $SELF_DIR/0??-*.sh; do source $script; done

run_annotated

### install additional GNOME libraries #########################################

# adwaita-icon-theme - icons used by Inkscape/GTK
# gtkspell3 - GtkSpell spellchecking/highlighting
# libsoup - GNOME http client/server library

jhbuild build \
  adwaita-icon-theme \
  gtkspell3 \
  libsoup

### install GNU Scientific Library #############################################

get_source $URL_GSL
configure_make_makeinstall

### install Garbage Collector for C/C++ ########################################

get_source $URL_GC
configure_make_makeinstall

### install GNOME Docking Library ##############################################

get_source $URL_GDL
jhbuild run ./autogen.sh
configure_make_makeinstall

### install boost ##############################################################

get_source $URL_BOOST
jhbuild run ./bootstrap.sh --prefix=$OPT_DIR
jhbuild run ./b2 -j$CORES install

### install little CMS colore engine v2 ########################################

get_source $URL_LCMS2
configure_make_makeinstall

### install OpenJPEG ###########################################################

get_source $URL_OPENJPEG
cmake_make_makeinstall

### install CppUnit ############################################################

# required by librevenge

get_source $URL_CPPUNIT
configure_make_makeinstall

### install librevenge #########################################################

# required by libcdr

get_source $URL_LIBREVENGE
configure_make_makeinstall

### install libcdr #############################################################

get_source $URL_LIBCDR
jhbuild run ./autogen.sh
configure_make_makeinstall

### install ImageMagick 6 ######################################################

get_source $URL_IMAGEMAGICK

# Recently a new issue manifested out of thin air: linking to pango fails with
# missing symbols like '_g_object_unref'. Pango requires '-lgobject-2.0',
# but this does not appear in the linker flags (check invocation with
# 'make V=1'). Easiest way for a quick & dirty fix is to configure with
# PANGO_LIBS set accordingly, but the configure scripts deletes the setting
# although claiming to respect it. Therefore we patch the configure
# script first.

sed -i "" 's/^  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo.*/  pkg_cv_PANGO_LIBS="$($PKG_CONFIG --libs pangocairo) -lgobject-2.0"/' configure

configure_make_makeinstall

### install Poppler ############################################################

get_source $URL_POPPLER
cmake_make_makeinstall -DENABLE_UNSTABLE_API_ABI_HEADERS=ON

### install double-conversion ##################################################

# Required by lib2geom.

get_source $URL_DOUBLE_CONVERSION
cmake_make_makeinstall

### install Potrace ############################################################

get_source $URL_POTRACE
configure_make_makeinstall --with-libpotrace

### install OpenMP #############################################################

get_source $URL_OPENMP
cmake_make_makeinstall

### install Ghostscript ########################################################

get_source $URL_GHOSTSCRIPT
configure_make_makeinstall