1
0
2023-06-27 01:48:52 +03:00

32 lines
705 B
Bash
Executable File

#!/bin/bash -e
GETTEXT_VERSION=0.22
. scripts/sdk.sh
mkdir -p deps; cd deps
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
rm -rf gettext
cd gettext-src/gettext-runtime
CFLAGS="$OSX_FLAGS $OSX_ARCH -Dlocale_charset=intl_locale_charset" \
PKG_CONFIG=/bin/false \
./configure --prefix=/ \
--disable-shared --enable-static
make -j
make DESTDIR=$PWD/build install
mkdir -p ../../gettext/include
cp -v build/include/libintl.h ../../gettext/include
cp -v build/lib/libintl.a ../../gettext
echo "gettext build successful"