Fail on missing dependencies

This commit is contained in:
Peter Iakovlev 2019-02-16 15:09:39 +04:00
parent 79a494c8cb
commit 3a254d05a3

View File

@ -59,8 +59,6 @@ else
exit 1 exit 1
fi fi
#CONFIGURE_FLAGS="$CONFIGURE_FLAGS --pkg-config=$PKG_CONFIG"
COMPILE="y" COMPILE="y"
DEPLOYMENT_TARGET="8.0" DEPLOYMENT_TARGET="8.0"
@ -84,22 +82,18 @@ then
if [ ! `which yasm` ] if [ ! `which yasm` ]
then then
echo 'Yasm not found' echo 'Yasm not found'
if [ ! `which brew` ] exit 1
then
echo 'Homebrew not found. Trying to install...'
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" \
|| exit 1
fi fi
echo 'Trying to install Yasm...' if [ ! `which pkg-config` ]
brew install yasm || exit 1 then
echo 'pkg-config not found'
exit 1
fi fi
if [ ! `which gas-preprocessor.pl` ] if [ ! `which gas-preprocessor.pl` ]
then then
echo 'gas-preprocessor.pl not found. Trying to install...' echo 'gas-preprocessor.pl not found.'
(curl -L https://github.com/libav/gas-preprocessor/raw/master/gas-preprocessor.pl \ exit 1
-o /usr/local/bin/gas-preprocessor.pl \ #curl -L https://github.com/libav/gas-preprocessor/raw/master/gas-preprocessor.pl -o /usr/local/bin/gas-preprocessor.pl && chmod +x /usr/local/bin/gas-preprocessor.pl
&& chmod +x /usr/local/bin/gas-preprocessor.pl) \
|| exit 1
fi fi
if [ ! -r $SOURCE ] if [ ! -r $SOURCE ]