1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-29 16:56:40 +03:00
vimr/bin/build_deps.sh

57 lines
1.6 KiB
Bash
Raw Normal View History

#!/bin/bash
set -e
GETTEXT_VERSION="0.19.8.1"
2019-03-05 00:37:45 +03:00
DEPLOYMENT_TARGET="10.12"
echo "### Building deps"
2017-12-03 11:59:15 +03:00
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 $DEPLOYMENT_TARGET
./configure CFLAGS="-mmacosx-version-min=${DEPLOYMENT_TARGET}" MACOSX_DEPLOYMENT_TARGET=${DEPLOYMENT_TARGET} \
--disable-dependency-tracking \
--disable-silent-rules \
--disable-debug \
2017-05-07 16:07:07 +03:00
--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
2017-05-07 16:22:24 +03:00
echo "### Copy header/libs to third-party"
mkdir -p third-party/libintl
2017-05-07 16:22:24 +03:00
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
2017-12-03 11:59:15 +03:00
popd # $WORKSPACE_ROOT
echo "### Built deps"