1
0

25 lines
564 B
Bash
Raw Normal View History

2022-01-03 01:00:14 +01:00
#!/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
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
make -j
mkdir -p ../../gettext
make DESTDIR=$PWD/../../gettext install
echo "gettext build successful"