|
| 1 | +#!/usr/bin/env bash |
| 2 | +# This Source Code Form is subject to the terms of the Mozilla Public |
| 3 | +# License, v. 2.0. If a copy of the MPL was not distributed with this |
| 4 | +# file, You can obtain one at https://mozilla.org/MPL/2.0/. |
| 5 | + |
| 6 | +set -ex |
| 7 | + |
| 8 | +ROOT=`pwd` |
| 9 | + |
| 10 | +export PATH=${TOOLS_PATH}/${TOOLCHAIN}/bin:${TOOLS_PATH}/host/bin:$PATH |
| 11 | + |
| 12 | +tar -xf gettext-${GETTEXT_VERSION}.tar.gz |
| 13 | + |
| 14 | +pushd gettext-${GETTEXT_VERSION} |
| 15 | + |
| 16 | +# If libunistring exists on the system, it can get picked up and introduce |
| 17 | +# an added dependency. So we force use of the bundled version. |
| 18 | +CLFAGS="${EXTRA_TARGET_CFLAGS} -fPIC" CPPFLAGS="${EXTRA_TARGET_CFLAGS} -fPIC" ./configure \ |
| 19 | + --build=${BUILD_TRIPLE} \ |
| 20 | + --target=${TARGET_TRIPLE} \ |
| 21 | + --prefix=/tools/deps \ |
| 22 | + --disable-shared \ |
| 23 | + --disable-java \ |
| 24 | + --disable-dependency-tracking \ |
| 25 | + --with-included-libcroco \ |
| 26 | + --with-included-gettext \ |
| 27 | + --with-included-glib \ |
| 28 | + --with-included-libunistring \ |
| 29 | + --with-included-libxml \ |
| 30 | + --without-libiconv-prefix \ |
| 31 | + --without-libintl-prefix \ |
| 32 | + --without-libncurses-prefix \ |
| 33 | + --without-libtermcap-prefix \ |
| 34 | + --without-libxcurses-prefix \ |
| 35 | + --without-libcurses-prefix \ |
| 36 | + --without-libtextstyle-prefix \ |
| 37 | + --without-libunistring-prefix \ |
| 38 | + --without-libxml2-prefix \ |
| 39 | + --without-git |
| 40 | + |
| 41 | +make -j ${NUM_CPUS} |
| 42 | +make -j ${NUM_CPUS} install DESTDIR=${ROOT}/out |
0 commit comments