2015-12-30 12:03:53 -05:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# This script is used by Travis CI to install the dependencies before building
|
|
|
|
# wxWidgets but can also be run by hand if necessary but currently it only
|
2015-12-30 09:56:44 -05:00
|
|
|
# works for Ubuntu 12.04 and 14.04 and OS X used by Travis builds.
|
2015-12-30 12:03:53 -05:00
|
|
|
|
|
|
|
SUDO=sudo
|
|
|
|
|
|
|
|
case $(uname -s) in
|
|
|
|
Linux)
|
|
|
|
if [ -f /etc/apt/sources.list ]; then
|
|
|
|
$SUDO apt-get update
|
2017-11-21 20:33:53 -05:00
|
|
|
case "$wxGTK_VERSION" in
|
|
|
|
3) libgtk_dev=libgtk-3-dev ;;
|
|
|
|
*) libgtk_dev=libgtk2.0-dev;;
|
|
|
|
esac
|
2018-09-18 04:28:33 -04:00
|
|
|
|
|
|
|
case "$wxCONFIGURE_FLAGS" in
|
|
|
|
*--with-directfb*) libtoolkit_dev='libdirectfb-dev' ;;
|
|
|
|
*--with-motif*) libtoolkit_dev='libmotif-dev libxmu-dev' ;;
|
|
|
|
*--with-qt*) libtoolkit_dev='qtdeclarative5-dev' ;;
|
|
|
|
esac
|
|
|
|
|
2018-11-04 16:00:32 -05:00
|
|
|
pgk_check="libgstreamermm-1.0-dev libgstreamermm-0.10-dev \
|
|
|
|
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
|
|
|
|
libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev \
|
|
|
|
libwebkitgtk-dev libglu1-mesa-dev libsecret-1-dev libnotify-dev"
|
|
|
|
|
|
|
|
for pkg in $pgk_check; do
|
|
|
|
if $(apt-cache pkgnames | grep -q $pkg) ; then
|
|
|
|
pkg_install="$pkg_install $pkg"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
$SUDO apt-get install -y $libgtk_dev $libtoolkit_dev $pkg_install
|
2015-12-30 12:03:53 -05:00
|
|
|
fi
|
|
|
|
;;
|
2015-12-30 09:56:44 -05:00
|
|
|
|
|
|
|
Darwin)
|
|
|
|
;;
|
2015-12-30 12:03:53 -05:00
|
|
|
esac
|