#!/bin/bash set -e # Quelle: https://www.meintechblog.de/2014/06/knx-eib-gateway-in-fhem-einbinden/ # $CONFIGURE_OPTS may be set by cross compile environment if [ "$DEB_HOST_GNU_TYPE" == "arm-linux-gnueabihf" ] then PTH_OPTS="--with-mctx-mth=sjlj --with-mctx-dsp=ssjlj --with-mctx-stk=sas" fi tar xf Downloads/pthsem_2.0.8.tar.gz pushd pthsem-2.0.8 >/dev/null ./configure --prefix=$HOME/build/debian/tmp/usr $PTH_OPTS $CONFIGURE_OPTS make popd >/dev/null tar xf Downloads/bcusdk_0.0.5.tar.gz cp eibd/configure bcusdk-0.0.5/ pushd bcusdk-0.0.5 ./configure --with-pth=subdir:$HOME/build/pthsem-2.0.8 --without-pth-test --enable-onlyeibd --enable-eibnetip --enable-eibnetiptunnel --enable-eibnetipserver --enable-tpuarts --prefix=$HOME/build/debian/tmp/usr $CONFIGURE_OPTS popd >/dev/null