| JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| pushd "${CACHE_DIR:-/tmp}" >/dev/null |
| if has OSX $NODE_LABELS; then |
| BOOST=$(brew ls --versions boost) |
| OLD_BOOST=$(cat boost.txt || :) |
| if [[ $OLD_BOOST != $BOOST ]]; then |
| echo "$BOOST" > boost.txt |
| if [[ -z $INSTALLED_VERSION ]]; then |
| INSTALLED_VERSION=$(git -C ndn-cxx rev-parse HEAD 2>/dev/null || echo NONE) |
| sudo rm -Rf ndn-cxx-latest |
| git clone --depth 1 git://github.com/named-data/ndn-cxx ndn-cxx-latest |
| LATEST_VERSION=$(git -C ndn-cxx-latest rev-parse HEAD 2>/dev/null || echo UNKNOWN) |
| if [[ $INSTALLED_VERSION != $LATEST_VERSION ]]; then |
| mv ndn-cxx-latest ndn-cxx |
| sudo rm -Rf ndn-cxx-latest |
| sudo rm -Rf /usr/local/include/ndn-cxx |
| sudo rm -f /usr/local/lib/libndn-cxx* |
| sudo rm -f /usr/local/lib/pkgconfig/libndn-cxx* |
| ./waf configure -j1 --color=yes --enable-shared --disable-static --without-osx-keychain |
| sudo ./waf install -j1 --color=yes |
| if has Linux $NODE_LABELS; then |
| elif has FreeBSD10 $NODE_LABELS; then |