build CHANGE improve TravisCI build on OSX
fix several issues with openssl and other dependencies
diff --git a/.travis-deps-osx.sh b/.travis-deps-osx.sh
index 66a8a8f..2c42b87 100644
--- a/.travis-deps-osx.sh
+++ b/.travis-deps-osx.sh
@@ -4,24 +4,22 @@
#install dependencies using homebrew
brew update
brew upgrade openssl
-brew link --force openssl
brew upgrade pcre
# libssh
wget https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.5.tar.gz
tar -xzf libssh-0.7.5.tar.gz
mkdir libssh-0.7.5/build && cd libssh-0.7.5/build
-cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
+cmake -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib -DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include .. && make -j2 && sudo make install
cd ../..
# CMocka
-wget https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz
-tar -xJf cmocka-1.0.1.tar.xz
-mkdir cmocka-1.0.1/build && cd cmocka-1.0.1/build
-cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
+git clone git://git.cryptomilk.org/projects/cmocka.git
+mkdir cmocka/build && cd cmocka/build
+cmake .. && make -j2 && sudo make install
cd ../..
git clone -b $TRAVIS_BRANCH https://github.com/CESNET/libyang.git
mkdir libyang/build && cd libyang/build
-cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
+cmake .. && make -j2 && sudo make install
cd ../..