2016-08-03 19:13:15 +00:00
#!/usr/bin/env bash
set -ex
rm -rf deps/install
mkdir deps || true
cd deps
git clone git://git.osmocom.org/libosmocore
cd libosmocore
git reset --hard 460f9ef7da1db11b104fdfe635ebcbd8a071f205
autoreconf --install --force
./configure --prefix= $PWD /../install
make -j 4 install
2016-09-08 13:09:16 +00:00
export LD_LIBRARY_PATH = $PWD /../install/lib
cd ../
git clone git://git.osmocom.org/python/osmo-python-tests
cd osmo-python-tests
sudo ./setup.py install
2016-08-03 19:13:15 +00:00
cd ../../
autoreconf --install --force
2016-09-08 13:09:16 +00:00
PCAP_LIBS = "-lpcap" PCAP_CFLAGS = "" PKG_CONFIG_PATH = $PWD /deps/install/lib/pkgconfig ./configure --with-pcap-config= /bin/true --enable-external-tests
2016-08-03 19:13:15 +00:00
PKG_CONFIG_PATH = $PWD /deps/install/lib/pkgconfig make -j 4
2016-09-08 13:09:16 +00:00
PKG_CONFIG_PATH = $PWD /deps/install/lib/pkgconfig make check
2016-08-03 19:13:15 +00:00
DISTCHECK_CONFIGURE_FLAGS = "--with-pcap-config=/bin/true" PCAP_LIBS = "-lpcap" PCAP_CFLAGS = "" PKG_CONFIG_PATH = $PWD /deps/install/lib/pkgconfig LD_LIBRARY_PATH = $PWD /deps/install/lib make distcheck