all components should be good to go for ubuntu 16.04
This commit is contained in:
parent
6355e387bb
commit
8fe66ac059
48
build.sh
48
build.sh
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Copyright 2014 Range Networks, Inc.
|
# Copyright 2014-2016 Range Networks, Inc.
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as published by
|
# it under the terms of the GNU Affero General Public License as published by
|
||||||
|
@ -31,6 +31,10 @@ installIfMissing () {
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "# - missing $@, installing dependency"
|
echo "# - missing $@, installing dependency"
|
||||||
sudo apt-get install $@ -y
|
sudo apt-get install $@ -y
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "# - ERROR : $@ package was unable to be installed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,32 +99,6 @@ installIfMissing python-software-properties
|
||||||
echo "# - done"
|
echo "# - done"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if ! stat -t /etc/apt/sources.list.d/*zeromq* >/dev/null 2>&1
|
|
||||||
then
|
|
||||||
echo "# adding modern zeromq repository"
|
|
||||||
sudo add-apt-repository -y ppa:chris-lea/zeromq
|
|
||||||
echo "# - done"
|
|
||||||
echo
|
|
||||||
echo "# updating repositories"
|
|
||||||
sudo apt-get update
|
|
||||||
echo "# - done"
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$MANUFACTURER" == "Ettus" ]; then
|
|
||||||
if ! stat -t /etc/apt/sources.list.d/*ettus* >/dev/null 2>&1
|
|
||||||
then
|
|
||||||
echo "# adding ettus repository"
|
|
||||||
sudo bash -c 'echo "deb http://files.ettus.com/binaries/uhd_stable/repo/uhd/ubuntu/`lsb_release -cs` `lsb_release -cs` main" > /etc/apt/sources.list.d/ettus.list'
|
|
||||||
echo "# - done"
|
|
||||||
echo
|
|
||||||
echo "# updating repositories"
|
|
||||||
sudo apt-get update
|
|
||||||
echo "# - done"
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "# checking build dependencies"
|
echo "# checking build dependencies"
|
||||||
installIfMissing autoconf
|
installIfMissing autoconf
|
||||||
installIfMissing automake
|
installIfMissing automake
|
||||||
|
@ -131,7 +109,7 @@ installIfMissing libsqlite3-dev
|
||||||
installIfMissing libusb-1.0-0
|
installIfMissing libusb-1.0-0
|
||||||
installIfMissing libusb-1.0-0-dev
|
installIfMissing libusb-1.0-0-dev
|
||||||
installIfMissing libortp-dev
|
installIfMissing libortp-dev
|
||||||
installIfMissing libortp8
|
installIfMissing libortp9
|
||||||
installIfMissing libosip2-dev
|
installIfMissing libosip2-dev
|
||||||
installIfMissing libreadline-dev
|
installIfMissing libreadline-dev
|
||||||
installIfMissing libncurses5
|
installIfMissing libncurses5
|
||||||
|
@ -147,13 +125,17 @@ installIfMissing libssl-dev
|
||||||
installIfMissing libsrtp0
|
installIfMissing libsrtp0
|
||||||
installIfMissing libsrtp0-dev
|
installIfMissing libsrtp0-dev
|
||||||
installIfMissing libsqliteodbc
|
installIfMissing libsqliteodbc
|
||||||
# modern zmq
|
installIfMissing uuid-dev
|
||||||
|
installIfMissing libjansson-dev
|
||||||
|
installIfMissing libxml2-dev
|
||||||
|
# zmq
|
||||||
installIfMissing libzmq3-dev
|
installIfMissing libzmq3-dev
|
||||||
installIfMissing libzmq3
|
installIfMissing libzmq5
|
||||||
installIfMissing python-zmq
|
installIfMissing python-zmq
|
||||||
if [ "$MANUFACTURER" == "Ettus" ]; then
|
if [ "$MANUFACTURER" == "Ettus" ]; then
|
||||||
#sudo apt-get install -t `lsb_release -cs` uhd
|
installIfMissing libuhd-dev
|
||||||
installIfMissing uhd
|
installIfMissing libuhd003
|
||||||
|
installIfMissing uhd-host
|
||||||
fi
|
fi
|
||||||
echo "# - done"
|
echo "# - done"
|
||||||
echo
|
echo
|
||||||
|
@ -174,7 +156,7 @@ if [ "$COMPONENT" == "all" ] || [ "$COMPONENT" == "libcoredumper" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$COMPONENT" == "all" ] || [ "$COMPONENT" == "liba53" ]; then
|
if [ "$COMPONENT" == "all" ] || [ "$COMPONENT" == "liba53" ]; then
|
||||||
echo "# liba53 - building Debian and installing as dependency"
|
echo "# liba53 - building Debian package and installing as dependency"
|
||||||
sayAndDo cd liba53
|
sayAndDo cd liba53
|
||||||
sayAndDo dpkg-buildpackage -us -uc
|
sayAndDo dpkg-buildpackage -us -uc
|
||||||
sayAndDo cd ..
|
sayAndDo cd ..
|
||||||
|
|
Loading…
Reference in New Issue