#!/bin/bash

echo "install dependencies"

pwd

source ./gitlab-ci/shared.sh

# libeasy
cd /opt/dev
rm -fr libeasy
git clone -b devel https://dev.iopsys.eu/iopsys/libeasy.git
cd libeasy
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
make install

# libethernet
cd /opt/dev
rm -fr libethernet
git clone -b devel https://dev.iopsys.eu/iopsys/libethernet.git
cd libethernet
make PLATFORM=TEST
cp ethernet.h /usr/include
cp -a libethernet*.so* /usr/lib
sudo ldconfig

# install bbfdm
install_bbfdm
