duview build added
[projects.git] / debian / eibd.prebuild
1 #!/bin/bash
2 set -e
3
4 # Quelle: https://www.meintechblog.de/2014/06/knx-eib-gateway-in-fhem-einbinden/
5
6 # $CONFIGURE_OPTS may be set by cross compile environment
7
8 if [ "$DEB_HOST_GNU_TYPE" == "arm-linux-gnueabihf" ]
9 then 
10         PTH_OPTS="--with-mctx-mth=sjlj --with-mctx-dsp=ssjlj --with-mctx-stk=sas"
11 fi
12
13 tar xf Downloads/pthsem_2.0.8.tar.gz
14 pushd pthsem-2.0.8 >/dev/null
15         ./configure --prefix=$HOME/build/debian/tmp/usr $PTH_OPTS $CONFIGURE_OPTS
16         make
17 popd >/dev/null
18
19 tar xf Downloads/bcusdk_0.0.5.tar.gz
20 cp eibd/configure bcusdk-0.0.5/
21 pushd bcusdk-0.0.5
22         ./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
23 popd >/dev/null
24
25