(macOS) Added libiconv as a dependency library

This commit is contained in:
Leon Styhre 2024-06-30 17:33:54 +02:00
parent 6256f44455
commit c70684e654
2 changed files with 29 additions and 1 deletions

View file

@ -33,6 +33,21 @@ echo "Building all dependencies in the ./external directory...\n"
export PKG_CONFIG_PATH=$(pwd)/../local_install/lib/pkgconfig
echo "Building libiconv"
if [ ! -d libiconv ]; then
echo "libiconv directory is missing, aborting."
exit
fi
cd libiconv
./configure --enable-static=yes --enable-shared=no --prefix=$(pwd)/../local_install
make clean
make -j${JOBS}
make install
cd ..
echo "Building gettext"
if [ ! -d gettext ]; then
@ -42,7 +57,7 @@ fi
cd gettext
./configure --prefix=$(pwd)/../local_install
./configure --with-libiconv-prefix=$(pwd)/../local_install --prefix=$(pwd)/../local_install
make clean
make -j${JOBS}

View file

@ -21,6 +21,19 @@ cd external
rm -rf local_install
mkdir local_install
echo "Setting up libiconv"
rm -rf libiconv*
curl -LO https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.17.tar.gz
tar xvzf libiconv-1.17.tar.gz
if [ ! -d libiconv-1.17 ]; then
echo "libiconv directory is missing, aborting."
exit
fi
mv libiconv-1.17 libiconv
rm libiconv-1.17.tar.gz
echo "Setting up gettext"
rm -rf gettext*
curl -LO https://ftp.gnu.org/pub/gnu/gettext/gettext-0.22.5.tar.gz