summaryrefslogtreecommitdiff
path: root/dev-games/simgear
diff options
context:
space:
mode:
Diffstat (limited to 'dev-games/simgear')
-rw-r--r--dev-games/simgear/Manifest14
-rw-r--r--dev-games/simgear/files/simgear-2017.2.1-boost-1.65-tr1-removal.patch47
-rw-r--r--dev-games/simgear/files/simgear-2017.2.1-gdal-underlinking.patch28
-rw-r--r--dev-games/simgear/metadata.xml24
-rw-r--r--dev-games/simgear/simgear-2016.4.4.ebuild51
-rw-r--r--dev-games/simgear/simgear-2017.1.2.ebuild51
-rw-r--r--dev-games/simgear/simgear-2017.1.3.ebuild51
-rw-r--r--dev-games/simgear/simgear-2017.2.1.ebuild65
-rw-r--r--dev-games/simgear/simgear-9999.ebuild62
9 files changed, 393 insertions, 0 deletions
diff --git a/dev-games/simgear/Manifest b/dev-games/simgear/Manifest
new file mode 100644
index 000000000000..08750d80860f
--- /dev/null
+++ b/dev-games/simgear/Manifest
@@ -0,0 +1,14 @@
+AUX simgear-2017.2.1-boost-1.65-tr1-removal.patch 1476 SHA256 23e9eefe8ea033b7e092b8c72b2df3467cfd596449ea5de5c9973230753d2207 SHA512 8d24d58b204c635e01f3fcfb939d425407834c7e504c6d40212874856a080e41d653e7f7416b5cd0145ee9a49b6f6368464eb99d8aebf077c4fe9e87ab18922c WHIRLPOOL b3fab151ba3afa5c23c93f5cbb7b07318348785d07de14567d2ad058536dfe6dc2c094f955227c7f9ccb73ef39c3a32177685a8e9a99372b2c75a257589e1f77
+AUX simgear-2017.2.1-gdal-underlinking.patch 832 SHA256 8d0d2caa6cc103049b0930ceb4ec3d7f99e46951aebe86ca091660a157946cc9 SHA512 6bd15f48612338f1563d8ec4cd4a129b52e03bb7313e84c81d51d0911578ceb3306d81690b242c9adf0afa0687e6530917340ecca670752b5b500020469f38e6 WHIRLPOOL cb599e163877962ce7fcd87cecd7b07d5c28529be31b6804a21294f2705edcc6a7170277edc7ef4f3a4ae7c185e1cb15c23e7f1f3b8d994402e0334183bbaf22
+DIST simgear-2016.4.4.tar.bz2 1200320 SHA256 5514fd0006bbfcdbdc0e2dab7da41eae491ea03a6246cc6a009590032b2fc1dc SHA512 f7b9124e40dba347cd73304fc1b20a5b6d09eb476bc41949d5be615be968a6a66f64141b87819bfa357bd1fd376b2e1fc18334eb1d4df2d4f1e3f95ef4a1928d WHIRLPOOL 3fb4d580d84633a6a852f6a8ab5e708afde9616b636bb5b49d30b56ed232d9938606f602d473e51855605d2544b364691ae362ec974f56b34e32507a37752221
+DIST simgear-2017.1.2.tar.bz2 1235662 SHA256 69c8223051b039b00038aabbb8660cecce1866e3f854dadd9543db824d232f6b SHA512 5746262873f9ca9183bf5bcfbff1493637faa68c8d070a5683f991b414b69b0e432f181394db0c39c939b3d6e433288a143eb3489a407c38f3d26c9033027404 WHIRLPOOL a6b18db36078e1e26c8915ef72a5bb890bcef7433c6c641f314533c637cbcd3a626e4146ddbf7551fc179b9b07989baba04559a0f1684c4b00e94760ddace2cb
+DIST simgear-2017.1.3.tar.bz2 1235062 SHA256 85304d985b4fc0dc00d9f7603b02d096e3c24ca4c98adc18dc9af1e2d0e3c310 SHA512 600f883ad92d37bf76d5e6beb066da340c7af927b0f2d51ce290cccaf23d1f3289b1aa31d3aa6cc17a4b9bc57c7180f03e234e08601e4169f26624678bf551aa WHIRLPOOL 377caa9327be22f10e0c45a64db7747d66dc7498b425ae5cf330544e727248b84f907b9eebb7c6b8e6a3272d1929a2b2ae1eaf8a4a542469d1e3615e9a2b7966
+DIST simgear-2017.2.1.tar.bz2 1290780 SHA256 9924592c01cb41ad66a0ff1dc43b7678ceec69fb573d3f4e4637e26c247c7a9e SHA512 168f5e3eab7cdd44643a62e1970c6329ac1121ca98e36c4134d963237e70304a20b7c8df3b438e24c204d51569d6863ef8b16098462d850f72a5f11a10ccbfd5 WHIRLPOOL dc57cb2b87ec0111b0c555b6b87bcba7ec80c34c2277978c3aac7e71a3df260b4ac32f79698b2ea6d84a3bd6a942dc163aabd80c5f5004c409a189456f812d4a
+EBUILD simgear-2016.4.4.ebuild 1061 SHA256 bc532b97a66e160f1728c3e984e08df008fefefbf38f1e3563f7a5caf303801a SHA512 132606587c2820bf150fe67b5a60018bc49af52ea2ae320c327301f5becd1f402b081e8985457b72c6bc7c2b13936362aef026c7337beacc8fc6592599a7c5d7 WHIRLPOOL c2e8b73fa3e3fa945aeb0a704db525cc3fe0de95ee4944fae9c511f304b66ebc6305d420e6df30b33bdce5dab78fd6588f11f7035b6df3d72147a884105f44c3
+EBUILD simgear-2017.1.2.ebuild 1062 SHA256 981a5d1aeda0c9c7282b649d9803b4ec050a9bbfcc4071b1d55a1c14a8ae463a SHA512 855947e49e07af915a63ec897ffaa504668812d4697b65a7a3431d591c25682ddbaba029c28748d67d2098e9876dee2cb45d126f9a92e4c006a0e078986cfc36 WHIRLPOOL 7e67c807f6ce9851853218ad45b8ad7d9c4ebb365644e4dcb6d1e0ed648b3b4b8edb3c0eda774ca75ca6c9f2a0792ca590c3137956bbfc053282d43349337761
+EBUILD simgear-2017.1.3.ebuild 1062 SHA256 981a5d1aeda0c9c7282b649d9803b4ec050a9bbfcc4071b1d55a1c14a8ae463a SHA512 855947e49e07af915a63ec897ffaa504668812d4697b65a7a3431d591c25682ddbaba029c28748d67d2098e9876dee2cb45d126f9a92e4c006a0e078986cfc36 WHIRLPOOL 7e67c807f6ce9851853218ad45b8ad7d9c4ebb365644e4dcb6d1e0ed648b3b4b8edb3c0eda774ca75ca6c9f2a0792ca590c3137956bbfc053282d43349337761
+EBUILD simgear-2017.2.1.ebuild 1415 SHA256 fab688c40c79ca132485c88621338d12cc4492cc02d57b300ee2da3131a2a57c SHA512 ac5c3ff2dba76fe9f071355a1347a2805b97c6b0c2f6987123d4c394ae012d4915fa8bfaae1f749cc8c69e1d6a92506faebedc97b16ee617c0a9aedb8f691cd1 WHIRLPOOL d9d33bace0c9c0c84ce9a473f96294836ded39accbbab78f7f32c76610e380e2d463e992d7012cb9af8b6838fe165d13d1132da5b90be3effbb1e9775cde2f5c
+EBUILD simgear-9999.ebuild 1350 SHA256 77ae95bb34402e2caf3b31067dfeea20d2d0e80750bacaa1d49c038da97b2902 SHA512 f2554944961cb5bb7d93088e520d6d2ef10bf3f818e1ead536bad1e2e496263f10a47c2d5324764a4e4d0a5b02bd8df2b917223c35c98aa2836bb8ab9bf2f2be WHIRLPOOL 88eedbf104b5deedb38600140901cc9d7ef35f74e8719014db15b27683f8c96a22dd7409a7f08bf63511937a0b7bd11911447dff0c4d4b633c8583e8d8e18b33
+MISC ChangeLog 3863 SHA256 0e3f4cffaee7dca075735c98d102a8af72b4078df93c5419fb4891f031f019bc SHA512 44d2c31a72201607d228025745618c7e793ff35683e51c086929e18df67b5ad5033c3ed8ffba58a550e611b97d512a548d325e9b7e04fc6a851045617d1e0552 WHIRLPOOL eb84bfece0d5c07f0c2fe97e994bae577bf739a6418d538b7bc1608dcf1ddf474da568218513c9c5744343ea9e7c4e47f60391281270ef6d1cfbe897fee10c92
+MISC ChangeLog-2015 11386 SHA256 e0f137c2d4af1399f5a82596819c8747c2b8a6f169f2e1aec448661c82a19f3b SHA512 3b9f8eced1e5c6d43df1bd2130a8237f706dd9a8bfa895896685f99eb44913022b3f61093951daa8c006bc3dd4ec8c1e2b5ea138c52405c68e93a6ef7aac8e17 WHIRLPOOL 26632a83550817a77ae4c23251741a7f94e47af66aa0b98235d84c5516b9b232504e19641e092a5f72043c0a8ab67c71949ecd1c9071deea3e2baab418e0c5f2
+MISC metadata.xml 911 SHA256 dc9b9526a5e3b3563022fec68811ee4dd55598d9dba1e4184bb9191541a04227 SHA512 59839dd8b60cbf26b548157edf6f30255c2ca81545df77d39d47cebbf2eec561014c698ac15028765921fb9a7a570f5032f699f71fc135c5bbad211ce6b0a5a8 WHIRLPOOL 7b3a61b3c8f9d594eca223c0048fda38698138ae2bd35807c1e4219aa336192764986a02d64a002bbc0f36eb8bde718122eec39086ac31495ac59eb07c0800a5
diff --git a/dev-games/simgear/files/simgear-2017.2.1-boost-1.65-tr1-removal.patch b/dev-games/simgear/files/simgear-2017.2.1-boost-1.65-tr1-removal.patch
new file mode 100644
index 000000000000..a9ebe507cee4
--- /dev/null
+++ b/dev-games/simgear/files/simgear-2017.2.1-boost-1.65-tr1-removal.patch
@@ -0,0 +1,47 @@
+--- a/simgear/scene/material/Effect.cxx
++++ b/simgear/scene/material/Effect.cxx
+@@ -32,7 +32,7 @@
+ #include <map>
+ #include <queue>
+ #include <utility>
+-#include <boost/tr1/unordered_map.hpp>
++#include <boost/unordered_map.hpp>
+
+ #include <boost/bind.hpp>
+ #include <boost/foreach.hpp>
+@@ -832,13 +832,13 @@
+
+ // XXX Should these be protected by a mutex? Probably
+
+-typedef tr1::unordered_map<ProgramKey, ref_ptr<Program>,
++typedef boost::unordered_map<ProgramKey, ref_ptr<Program>,
+ boost::hash<ProgramKey>, ProgramKey::EqualTo>
+ ProgramMap;
+ ProgramMap programMap;
+ ProgramMap resolvedProgramMap; // map with resolved shader file names
+
+-typedef tr1::unordered_map<ShaderKey, ref_ptr<Shader>, boost::hash<ShaderKey> >
++typedef boost::unordered_map<ShaderKey, ref_ptr<Shader>, boost::hash<ShaderKey> >
+ ShaderMap;
+ ShaderMap shaderMap;
+
+--- a/simgear/scene/material/Effect.hxx
++++ b/simgear/scene/material/Effect.hxx
+@@ -19,7 +19,7 @@
+
+ #include <vector>
+ #include <string>
+-#include <boost/tr1/unordered_map.hpp>
++#include <boost/unordered_map.hpp>
+
+ #include <boost/functional/hash.hpp>
+
+@@ -127,7 +127,7 @@
+ bool operator()(const Key& lhs, const Key& rhs) const;
+ };
+ };
+- typedef std::tr1::unordered_map<Key, osg::observer_ptr<Effect>,
++ typedef boost::unordered_map<Key, osg::observer_ptr<Effect>,
+ boost::hash<Key>, Key::EqualTo> Cache;
+ Cache* getCache()
+ {
diff --git a/dev-games/simgear/files/simgear-2017.2.1-gdal-underlinking.patch b/dev-games/simgear/files/simgear-2017.2.1-gdal-underlinking.patch
new file mode 100644
index 000000000000..63eb79ed35ce
--- /dev/null
+++ b/dev-games/simgear/files/simgear-2017.2.1-gdal-underlinking.patch
@@ -0,0 +1,28 @@
+From 9971d517fdf351e40467c88915d3e30e56f999d4 Mon Sep 17 00:00:00 2001
+From: Maciej Mrozowski <reavertm@gmail.com>
+Date: Thu, 15 Jun 2017 04:58:03 +0200
+Subject: [PATCH] Link shared SimGearScene with libgdal when enabled
+
+---
+ simgear/CMakeLists.txt | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/simgear/CMakeLists.txt b/simgear/CMakeLists.txt
+index 18c2e04c..6c7cb495 100644
+--- a/simgear/CMakeLists.txt
++++ b/simgear/CMakeLists.txt
+@@ -173,6 +173,11 @@ if(NOT SIMGEAR_HEADLESS)
+ ${OPENGL_LIBRARY}
+ ${JPEG_LIBRARY})
+
++ if(ENABLE_GDAL)
++ target_link_libraries(SimGearScene
++ ${GDAL_LIBRARIES})
++ endif()
++
+ # only actually needed by canvas/KeyboardEvent.cxx
+ target_include_directories(SimGearScene PRIVATE ${PROJECT_SOURCE_DIR}/3rdparty/utf8/source)
+ endif()
+--
+2.13.0
+
diff --git a/dev-games/simgear/metadata.xml b/dev-games/simgear/metadata.xml
new file mode 100644
index 000000000000..aa189d18155e
--- /dev/null
+++ b/dev-games/simgear/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>reavertm@gentoo.org</email>
+ <name>Maciej Mrozowski</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <longdescription>
+SimGear is a set of open-source libraries designed to be used as building blocks for
+quickly assembling 3d simulations, games, and visualization applications.
+ </longdescription>
+ <use>
+ <flag name="dns">Enable DNS resolver via <pkg>net-libs/udns</pkg></flag>
+ <flag name="gdal">Enable alternative terrain engine based on pagedLOD via <pkg>sci-libs/gdal</pkg></flag>
+ <flag name="subversion">Enable terrasync scenery downloader</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">flightgear</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-games/simgear/simgear-2016.4.4.ebuild b/dev-games/simgear/simgear-2016.4.4.ebuild
new file mode 100644
index 000000000000..f2c7c954e253
--- /dev/null
+++ b/dev-games/simgear/simgear-2016.4.4.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils cmake-utils
+
+DESCRIPTION="Development library for simulation games"
+HOMEPAGE="http://www.simgear.org/"
+SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+KEYWORDS="amd64 x86"
+SLOT="0"
+IUSE="+dns debug subversion test"
+
+COMMON_DEPEND="
+ dev-libs/expat
+ >=dev-games/openscenegraph-3.2.0
+ media-libs/openal
+ net-misc/curl
+ sys-libs/zlib
+ virtual/opengl
+ dns? ( net-libs/udns )
+"
+DEPEND="${COMMON_DEPEND}
+ >=dev-libs/boost-1.44
+"
+RDEPEND="${COMMON_DEPEND}
+ subversion? ( dev-vcs/subversion )
+"
+
+DOCS=(AUTHORS ChangeLog NEWS README Thanks)
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_DNS=$(usex dns)
+ -DENABLE_PKGUTIL=ON
+ -DENABLE_RTI=OFF
+ -DENABLE_SIMD=OFF
+ -DENABLE_SOUND=ON
+ -DENABLE_TESTS=$(usex test)
+ -DSIMGEAR_HEADLESS=OFF
+ -DSIMGEAR_SHARED=ON
+ -DSYSTEM_EXPAT=ON
+ -DSYSTEM_UDNS=ON
+ -DUSE_AEONWAVE=OFF
+ -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO perhaps track it
+ )
+ cmake-utils_src_configure
+}
diff --git a/dev-games/simgear/simgear-2017.1.2.ebuild b/dev-games/simgear/simgear-2017.1.2.ebuild
new file mode 100644
index 000000000000..d3914e9c36c0
--- /dev/null
+++ b/dev-games/simgear/simgear-2017.1.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils cmake-utils
+
+DESCRIPTION="Development library for simulation games"
+HOMEPAGE="http://www.simgear.org/"
+SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="+dns debug subversion test"
+
+COMMON_DEPEND="
+ dev-libs/expat
+ >=dev-games/openscenegraph-3.2.0
+ media-libs/openal
+ net-misc/curl
+ sys-libs/zlib
+ virtual/opengl
+ dns? ( net-libs/udns )
+"
+DEPEND="${COMMON_DEPEND}
+ >=dev-libs/boost-1.44
+"
+RDEPEND="${COMMON_DEPEND}
+ subversion? ( dev-vcs/subversion )
+"
+
+DOCS=(AUTHORS ChangeLog NEWS README Thanks)
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_DNS=$(usex dns)
+ -DENABLE_PKGUTIL=ON
+ -DENABLE_RTI=OFF
+ -DENABLE_SIMD=ON
+ -DENABLE_SOUND=ON
+ -DENABLE_TESTS=$(usex test)
+ -DSIMGEAR_HEADLESS=OFF
+ -DSIMGEAR_SHARED=ON
+ -DSYSTEM_EXPAT=ON
+ -DSYSTEM_UDNS=ON
+ -DUSE_AEONWAVE=OFF
+ -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO perhaps track it
+ )
+ cmake-utils_src_configure
+}
diff --git a/dev-games/simgear/simgear-2017.1.3.ebuild b/dev-games/simgear/simgear-2017.1.3.ebuild
new file mode 100644
index 000000000000..d3914e9c36c0
--- /dev/null
+++ b/dev-games/simgear/simgear-2017.1.3.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils cmake-utils
+
+DESCRIPTION="Development library for simulation games"
+HOMEPAGE="http://www.simgear.org/"
+SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="+dns debug subversion test"
+
+COMMON_DEPEND="
+ dev-libs/expat
+ >=dev-games/openscenegraph-3.2.0
+ media-libs/openal
+ net-misc/curl
+ sys-libs/zlib
+ virtual/opengl
+ dns? ( net-libs/udns )
+"
+DEPEND="${COMMON_DEPEND}
+ >=dev-libs/boost-1.44
+"
+RDEPEND="${COMMON_DEPEND}
+ subversion? ( dev-vcs/subversion )
+"
+
+DOCS=(AUTHORS ChangeLog NEWS README Thanks)
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_DNS=$(usex dns)
+ -DENABLE_PKGUTIL=ON
+ -DENABLE_RTI=OFF
+ -DENABLE_SIMD=ON
+ -DENABLE_SOUND=ON
+ -DENABLE_TESTS=$(usex test)
+ -DSIMGEAR_HEADLESS=OFF
+ -DSIMGEAR_SHARED=ON
+ -DSYSTEM_EXPAT=ON
+ -DSYSTEM_UDNS=ON
+ -DUSE_AEONWAVE=OFF
+ -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO perhaps track it
+ )
+ cmake-utils_src_configure
+}
diff --git a/dev-games/simgear/simgear-2017.2.1.ebuild b/dev-games/simgear/simgear-2017.2.1.ebuild
new file mode 100644
index 000000000000..10aad3a8c38b
--- /dev/null
+++ b/dev-games/simgear/simgear-2017.2.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils toolchain-funcs
+
+DESCRIPTION="Development library for simulation games"
+HOMEPAGE="http://www.simgear.org/"
+SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+dns debug gdal openmp subversion test"
+
+COMMON_DEPEND="
+ dev-libs/expat
+ >=dev-games/openscenegraph-3.2.0
+ media-libs/openal
+ net-misc/curl
+ sys-libs/zlib
+ virtual/opengl
+ dns? ( net-libs/udns )
+ gdal? ( sci-libs/gdal )
+"
+DEPEND="${COMMON_DEPEND}
+ >=dev-libs/boost-1.44
+"
+RDEPEND="${COMMON_DEPEND}
+ subversion? ( dev-vcs/subversion )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2017.2.1-gdal-underlinking.patch
+ "${FILESDIR}"/${PN}-2017.2.1-boost-1.65-tr1-removal.patch
+)
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_DNS=$(usex dns)
+ -DENABLE_GDAL=$(usex gdal)
+ -DENABLE_OPENMP=$(usex openmp)
+ -DENABLE_PKGUTIL=ON
+ -DENABLE_RTI=OFF
+ -DENABLE_SIMD=ON
+ -DENABLE_SOUND=ON
+ -DENABLE_TESTS=$(usex test)
+ -DSIMGEAR_HEADLESS=OFF
+ -DSIMGEAR_SHARED=ON
+ -DSYSTEM_EXPAT=ON
+ -DSYSTEM_UDNS=ON
+ -DUSE_AEONWAVE=OFF
+ -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO perhaps track it
+ )
+ cmake-utils_src_configure
+}
diff --git a/dev-games/simgear/simgear-9999.ebuild b/dev-games/simgear/simgear-9999.ebuild
new file mode 100644
index 000000000000..00072326c7c9
--- /dev/null
+++ b/dev-games/simgear/simgear-9999.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils cmake-utils toolchain-funcs git-r3
+
+DESCRIPTION="Development library for simulation games"
+HOMEPAGE="http://www.simgear.org/"
+EGIT_REPO_URI="git://git.code.sf.net/p/flightgear/${PN}
+ git://mapserver.flightgear.org/${PN}"
+EGIT_BRANCH="next"
+
+LICENSE="GPL-2"
+KEYWORDS=""
+SLOT="0"
+IUSE="+dns debug gdal openmp subversion test"
+
+COMMON_DEPEND="
+ dev-libs/expat
+ >=dev-games/openscenegraph-3.2.0
+ media-libs/openal
+ net-misc/curl
+ sys-libs/zlib
+ virtual/opengl
+ dns? ( net-libs/udns )
+ gdal? ( sci-libs/gdal )
+"
+DEPEND="${COMMON_DEPEND}
+ >=dev-libs/boost-1.44
+"
+RDEPEND="${COMMON_DEPEND}
+ subversion? ( dev-vcs/subversion )
+"
+
+PATCHES=( "${FILESDIR}/simgear-2017.2.1-gdal-underlinking.patch" )
+
+DOCS=(AUTHORS ChangeLog NEWS README Thanks)
+
+pkg_pretend() {
+ use openmp && tc-check-openmp
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_DNS=$(usex dns)
+ -DENABLE_GDAL=$(usex gdal)
+ -DENABLE_OPENMP=$(usex openmp)
+ -DENABLE_PKGUTIL=ON
+ -DENABLE_RTI=OFF
+ -DENABLE_SIMD=ON
+ -DENABLE_SOUND=ON
+ -DENABLE_TESTS=$(usex test)
+ -DSIMGEAR_HEADLESS=OFF
+ -DSIMGEAR_SHARED=ON
+ -DSYSTEM_EXPAT=ON
+ -DSYSTEM_UDNS=ON
+ -DUSE_AEONWAVE=OFF
+ -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO perhaps track it
+ )
+ cmake-utils_src_configure
+}