2022-01-03 01:00:14 +01:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2022-11-13 17:35:33 +01:00
|
|
|
GETTEXT_VERSION=0.21.1
|
2022-01-03 01:00:14 +01:00
|
|
|
|
2022-12-02 11:40:55 +01:00
|
|
|
. scripts/sdk.sh
|
|
|
|
mkdir -p deps; cd deps
|
|
|
|
|
2022-01-03 01:00:14 +01:00
|
|
|
if [ ! -d gettext-src ]; then
|
|
|
|
wget https://ftp.gnu.org/pub/gnu/gettext/gettext-$GETTEXT_VERSION.tar.gz
|
|
|
|
tar -xzvf gettext-$GETTEXT_VERSION.tar.gz
|
|
|
|
mv gettext-$GETTEXT_VERSION gettext-src
|
|
|
|
rm gettext-$GETTEXT_VERSION.tar.gz
|
|
|
|
fi
|
|
|
|
|
2022-09-25 12:10:27 +02:00
|
|
|
rm -rf gettext
|
|
|
|
|
2022-01-03 01:00:14 +01:00
|
|
|
cd gettext-src/gettext-runtime
|
|
|
|
|
2022-01-30 00:10:40 +02:00
|
|
|
CFLAGS="$OSX_FLAGS $OSX_ARCH -Dlocale_charset=intl_locale_charset" \
|
2022-01-03 01:00:14 +01:00
|
|
|
PKG_CONFIG=/bin/false \
|
|
|
|
./configure --prefix=/ \
|
|
|
|
--disable-shared --enable-static
|
2022-11-13 17:35:33 +01:00
|
|
|
|
2022-01-03 01:00:14 +01:00
|
|
|
make -j
|
2022-11-13 17:35:33 +01:00
|
|
|
make DESTDIR=$PWD/build install
|
2022-01-03 01:00:14 +01:00
|
|
|
|
2022-11-13 17:35:33 +01:00
|
|
|
mkdir -p ../../gettext/include
|
|
|
|
cp -v build/include/libintl.h ../../gettext/include
|
|
|
|
cp -v build/lib/libintl.a ../../gettext
|
2022-01-03 01:00:14 +01:00
|
|
|
|
|
|
|
echo "gettext build successful"
|