1
0

30 lines
675 B
Bash
Raw Normal View History

2022-01-03 01:00:14 +01:00
#!/bin/bash -e
. sdk.sh
2022-11-13 17:35:33 +01:00
GETTEXT_VERSION=0.21.1
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
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"