# Template file for 'simgear'
pkgname=simgear
version=3.4.0
revision=2
# XXX: always keep in sync with flightgear version!
build_style=cmake
configure_args="-DENABLE_TESTS=OFF $(vopt_if svn '-DENABLE_LIBSVN=ON' '-DENABLE_LIBSVN=OFF')"
hostmakedepends="cmake pkg-config"
makedepends="boost-devel expat-devel freetype-devel libjpeg-turbo-devel giflib-devel
 libopenal-devel osg-devel plib-devel $(vopt_if svn libsvn)"
short_desc="Simulation engine for FlightGear - static libraries"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2"
homepage="http://www.flightgear.org/"
distfiles="http://mirrors.ibiblio.org/pub/mirrors/simgear/ftp/Source/simgear-${version}.tar.bz2"
checksum=927d66fe72aacb9dacced4506430bd5fc7726bc8d3d07d6f1866bc4cb11a5894

build_options="svn"
desc_option_svn="Enable support for subversion scenery fetching"
if [ -z "$CROSS_BUILD" ]; then
	build_options_default="svn"
fi
