1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-01 01:32:04 +03:00
vimr/bin/build_deps.sh
2017-12-03 09:59:15 +01:00

56 lines
1.5 KiB
Bash
Executable File

#!/bin/bash
set -e
GETTEXT_VERSION="0.19.8.1"
echo "### Building deps"
pushd NvimView
rm -rf .deps
mkdir .deps
pushd .deps
curl -o gettext.tar.xz https://ftp.gnu.org/gnu/gettext/gettext-${GETTEXT_VERSION}.tar.xz
tar xf gettext.tar.xz
mv gettext-${GETTEXT_VERSION} gettext
pushd gettext
# Configure from https://github.com/Homebrew/homebrew-core/blob/8d1ae1b8967a6b77cc1f6f1af6bb348b3268553e/Formula/gettext.rb
# Set the deployment target to 10.10
./configure CFLAGS='-mmacosx-version-min=10.10' MACOSX_DEPLOYMENT_TARGET=10.10 \
--disable-dependency-tracking \
--disable-silent-rules \
--disable-debug \
--prefix=$(pwd)/../../third-party/libintl \
--with-included-gettext \
--with-included-glib \
--with-included-libcroco \
--with-included-libunistring \
--with-emacs \
--disable-java \
--disable-csharp \
--without-git \
--without-cvs \
--without-xz
make
echo "### libintl: \$PROJECT_ROOT/.deps/gettext/gettext-runtime/intl/.libs"
popd # .deps
popd # $PROJECT_ROOT
echo "### Copy header/libs to third-party"
mkdir -p third-party/libintl
cp .deps/gettext/gettext-runtime/intl/libintl.h third-party/libintl/include/
cp .deps/gettext/gettext-runtime/intl/.libs/libintl.a third-party/libintl/lib/
cp .deps/gettext/gettext-runtime/intl/.libs/libintl.8.dylib third-party/libintl/lib/
pushd third-party/libintl/lib
ln -f -s libintl.8.dylib libintl.dylib
popd
popd # $WORKSPACE_ROOT
echo "### Built deps"