1
0
Maksym H c0f745994c macOS: minor update
(cherry picked from commit 01610cb8453077a6877f7b4ac9bacf7327fe282d)
2023-08-10 22:54:16 -04: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"