1 # Copyright 1999-2018 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake-utils toolchain-funcs
8 DESCRIPTION="Development library for simulation games"
9 HOMEPAGE="http://www.simgear.org/"
10 SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="+dns debug gdal openmp subversion test"
19 <dev-games/openscenegraph-3.5.6:=
24 dns? ( net-libs/udns )
25 gdal? ( sci-libs/gdal )
27 DEPEND="${COMMON_DEPEND}
30 RDEPEND="${COMMON_DEPEND}
31 subversion? ( dev-vcs/subversion )
35 [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
39 [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
44 -DENABLE_DNS=$(usex dns)
45 -DENABLE_GDAL=$(usex gdal)
46 -DENABLE_OPENMP=$(usex openmp)
51 -DENABLE_TESTS=$(usex test)
52 -DSIMGEAR_HEADLESS=OFF
57 -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO perhaps track it
59 cmake-utils_src_configure