2020-10-25 21:29:07 +01:00

25 lines
578 B
Bash
Executable File

#!/bin/bash -e
. sdk.sh
GETTEXT_VERSION=0.21
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
cd gettext-src/gettext-runtime
CFLAGS="$IOS_FLAGS -Dlocale_charset=intl_locale_charset" \
PKG_CONFIG=/bin/false \
./configure --host=arm-apple-darwin --prefix=/ \
--disable-shared --enable-static
make -j
mkdir -p ../../gettext
make DESTDIR=$PWD/../../gettext install
echo "gettext build successful"