pcre: fork, fix sources
[kiss-trunc88.git] / gimp / build
blobaa36dba0df85e1a1b39e144d43018da9b163d97c
1 #!/bin/sh -e
3 # Check for gettext. Looking to remove completely.
4 command -v xgettext
6 # 'Vendor' libtool.
7 for t in merge update extract perl; do
8 ln -sf intltool "intltool-$t"
9 done
10 export PATH="$PWD:$PATH"
12 # Apply any bundled patches.
13 for patch in *.patch; do
14 patch -Np1 -i "$patch"
15 done
17 # Fix the configure script because it likes to double check for intltool.
18 # Force xgettext to be found.
19 # Fix the versioning on mypaint-brushes.
20 sed -e "s/as_fn_error \$? \"XML::Parser.*/echo fixed/" \
21 -e "s/as_fn_error \$? \"itstool.*/echo fixed/" \
22 -e "s/have_required_xgettext=\"no\"/have_required_xgettext=\"yes\"/" \
23 -e 's/mypaint-brushes-1.0/mypaint-brushes-2.0/' \
24 configure >_
25 mv -f _ configure
27 chmod +x configure
29 ./configure \
30 --prefix=/usr \
31 --libexecdir=/usr/bin \
32 --sysconfdir=/etc \
33 --mandir=/usr/share/man \
34 --enable-default-binary \
35 --enable-mp \
36 --enable-sse \
37 --disable-gi-docgen \
38 --disable-vector-icons \
39 --disable-check-update \
40 --disable-altivec \
41 --disable-mmx \
42 --with-xmc \
43 --with-x \
44 --with-jpeg2000 \
45 --with-appdata-test \
46 --without-webkit \
47 --without-xvfb-run \
48 --without-libbacktrace \
49 --without-aa \
50 --without-libheif \
51 --without-javascript \
52 --without-lua \
53 --without-libmng \
54 --without-openexr \
55 --without-gs \
56 --without-python \
57 --without-gudev \
58 --without-libunwind \
59 --without-vala \
60 --without-wmf \
61 --disable-nls \
62 --without-libxpm
64 make
65 make install
67 rm -rf "$1/usr/share/gtk-doc"
68 find "$1" -name '*.la' -type f -exec rm -rf {} +