summaryrefslogtreecommitdiff
path: root/games-simulation/flightgear
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
commita3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch)
tree0c52bbae1c242fbc296bd650fcd1167685f81492 /games-simulation/flightgear
parentbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff)
downloadbaldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip
Adding metadata
Diffstat (limited to 'games-simulation/flightgear')
-rw-r--r--games-simulation/flightgear/Manifest1
-rw-r--r--games-simulation/flightgear/files/0001-check-to-be-sure-that-n-is-not-being-set-as-format-t.patch33
-rw-r--r--games-simulation/flightgear/files/0003-make-fglauncher-a-static-library.patch25
-rw-r--r--games-simulation/flightgear/files/0005-make-fgqmlui-a-static-library.patch25
-rw-r--r--games-simulation/flightgear/files/0006-fgviewer-fix-crash-on-exit.patch29
-rw-r--r--games-simulation/flightgear/files/ac3d.vim1
-rw-r--r--games-simulation/flightgear/files/flightgear-2024.1.1-cmake.patch43
-rw-r--r--games-simulation/flightgear/files/flightgear-2024.1.1-openal-init-decl.patch65
-rw-r--r--games-simulation/flightgear/files/nasal.vim1
-rw-r--r--games-simulation/flightgear/flightgear-2024.1.1.ebuild170
-rw-r--r--games-simulation/flightgear/flightgear-9999.ebuild171
-rw-r--r--games-simulation/flightgear/metadata.xml18
12 files changed, 0 insertions, 582 deletions
diff --git a/games-simulation/flightgear/Manifest b/games-simulation/flightgear/Manifest
deleted file mode 100644
index cc775842173b..000000000000
--- a/games-simulation/flightgear/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST flightgear-2024.1.1.tar.bz2 9421622 BLAKE2B 1ac040e66d651da16dd25d92a07b70670ccba55269997afb7789374b64f3cde73d0f5d8230f2048656b4f06e78534f013e608e8d908ad902104a98b72b0304ca SHA512 7d5cd04a6da75e0a5099ee545ef55f795c9493c15dbfecb6b534f8aa9374c972ba3cb60c31299a2132835a235ab7fc017a20c7b386522663238e4c1876865bb2
diff --git a/games-simulation/flightgear/files/0001-check-to-be-sure-that-n-is-not-being-set-as-format-t.patch b/games-simulation/flightgear/files/0001-check-to-be-sure-that-n-is-not-being-set-as-format-t.patch
deleted file mode 100644
index 1cf5e6b4fa54..000000000000
--- a/games-simulation/flightgear/files/0001-check-to-be-sure-that-n-is-not-being-set-as-format-t.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 609b73ec6941321b157afb236f86c943f959a845 Mon Sep 17 00:00:00 2001
-From: Fabrice Bellet <fabrice@bellet.info>
-Date: Sun, 22 Sep 2013 12:19:18 +0200
-Subject: [PATCH] check to be sure that %n is not being set as format type
- (CVE-2012-2090)
-
----
- src/Environment/fgclouds.cxx | 9 +++++++++
- 1 file changed, 9 insertions(+)
-
-diff --git a/src/Environment/fgclouds.cxx b/src/Environment/fgclouds.cxx
-index 043cbb007..a57c529d8 100644
---- a/src/Environment/fgclouds.cxx
-+++ b/src/Environment/fgclouds.cxx
-@@ -218,6 +218,15 @@ void FGClouds::buildLayer(int iLayer, const string& name, double coverage) {
- double count = acloud->getDoubleValue("count", 1.0);
- tCloudVariety[CloudVarietyCount].count = count;
- int variety = 0;
-+ // It is never safe for cloud_name.c_str to be %n.
-+ string unsafe ("%n");
-+ size_t found;
-+
-+ found=cloud_name.find(unsafe);
-+ if (found!=string::npos) {
-+ SG_LOG(SG_GENERAL, SG_ALERT, "format type contained %n, but this is unsafe , ignore it");
-+ continue;
-+ }
- char variety_name[50];
- do {
- variety++;
---
-2.48.1
-
diff --git a/games-simulation/flightgear/files/0003-make-fglauncher-a-static-library.patch b/games-simulation/flightgear/files/0003-make-fglauncher-a-static-library.patch
deleted file mode 100644
index a205953c8a4e..000000000000
--- a/games-simulation/flightgear/files/0003-make-fglauncher-a-static-library.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 00de7fd687bdc7ab7c679678f3a523d2038b7d8f Mon Sep 17 00:00:00 2001
-From: Fabrice Bellet <fabrice@bellet.info>
-Date: Tue, 17 Feb 2015 23:00:29 +0100
-Subject: [PATCH] make fglauncher a static library
-
----
- src/GUI/CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/GUI/CMakeLists.txt b/src/GUI/CMakeLists.txt
-index f4fc01a6e..0a0bd3398 100644
---- a/src/GUI/CMakeLists.txt
-+++ b/src/GUI/CMakeLists.txt
-@@ -104,7 +104,7 @@ if (HAVE_QT)
-
-
-
-- add_library(fglauncher QtLauncher.cxx
-+ add_library(fglauncher STATIC QtLauncher.cxx
- QtLauncher.hxx
- SettingsWrapper.hxx
- LauncherMainWindow.hxx
---
-2.48.1
-
diff --git a/games-simulation/flightgear/files/0005-make-fgqmlui-a-static-library.patch b/games-simulation/flightgear/files/0005-make-fgqmlui-a-static-library.patch
deleted file mode 100644
index 450a701a5a26..000000000000
--- a/games-simulation/flightgear/files/0005-make-fgqmlui-a-static-library.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 5cd88182e3b8f3e011be53a307cbf981dbb97836 Mon Sep 17 00:00:00 2001
-From: Fabrice Bellet <fabrice@bellet.info>
-Date: Sun, 8 Apr 2018 18:03:30 +0200
-Subject: [PATCH] make fgqmlui a static library
-
----
- src/GUI/CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/GUI/CMakeLists.txt b/src/GUI/CMakeLists.txt
-index 0a0bd3398..34a1e1f2d 100644
---- a/src/GUI/CMakeLists.txt
-+++ b/src/GUI/CMakeLists.txt
-@@ -185,7 +185,7 @@ if (HAVE_QT)
- Qt${QT_VERSION_MAJOR}::Svg
- SimGearCore)
-
-- add_library(fgqmlui
-+ add_library(fgqmlui STATIC
- PropertyItemModel.cxx
- PropertyItemModel.hxx
- FGQmlInstance.cxx
---
-2.48.1
-
diff --git a/games-simulation/flightgear/files/0006-fgviewer-fix-crash-on-exit.patch b/games-simulation/flightgear/files/0006-fgviewer-fix-crash-on-exit.patch
deleted file mode 100644
index a93c6e009356..000000000000
--- a/games-simulation/flightgear/files/0006-fgviewer-fix-crash-on-exit.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 95101b6fedaa332c70caca15a8fc762355d499b3 Mon Sep 17 00:00:00 2001
-From: Fabrice Bellet <fabrice@bellet.info>
-Date: Wed, 7 Jun 2017 09:19:06 +0200
-Subject: [PATCH] fgviewer: fix crash on exit
-
----
- utils/fgviewer/fgviewer.cxx | 8 +++++++-
- 1 file changed, 7 insertions(+), 1 deletion(-)
-
-diff --git a/utils/fgviewer/fgviewer.cxx b/utils/fgviewer/fgviewer.cxx
-index 1af450e96..c5628cef8 100644
---- a/utils/fgviewer/fgviewer.cxx
-+++ b/utils/fgviewer/fgviewer.cxx
-@@ -271,5 +271,11 @@ main(int argc, char** argv)
- // Note that this does not affect the hla camera manipulator
- viewer.home();
-
-- return viewer.run();
-+ int result = viewer.run();
-+
-+ // clear cache now, since it contains SimGear objects. Otherwise SG_LOG
-+ // calls during shutdown will cause crashes.
-+ osgDB::Registry::instance()->clearObjectCache();
-+
-+ return result;
- }
---
-2.48.1
-
diff --git a/games-simulation/flightgear/files/ac3d.vim b/games-simulation/flightgear/files/ac3d.vim
deleted file mode 100644
index 6477d949b762..000000000000
--- a/games-simulation/flightgear/files/ac3d.vim
+++ /dev/null
@@ -1 +0,0 @@
-au BufRead,BufNewFile *.ac set filetype=ac3d
diff --git a/games-simulation/flightgear/files/flightgear-2024.1.1-cmake.patch b/games-simulation/flightgear/files/flightgear-2024.1.1-cmake.patch
deleted file mode 100644
index 0aa0f665e1dd..000000000000
--- a/games-simulation/flightgear/files/flightgear-2024.1.1-cmake.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-diff '--color=auto' -ruN flightgear-2024.1.1/CMakeLists.txt my/CMakeLists.txt
---- flightgear-2024.1.1/CMakeLists.txt 2025-02-27 15:49:31.000000000 +0100
-+++ my/CMakeLists.txt 2025-05-22 04:59:08.937714480 +0200
-@@ -368,7 +368,7 @@
- set(minQtVersion 5.12.1)
- endif()
-
-- find_package(Qt${QT_VERSION_MAJOR} ${minQtVersion} REQUIRED COMPONENTS Widgets Gui Network Qml Quick Svg)
-+ find_package(Qt${QT_VERSION_MAJOR} ${minQtVersion} REQUIRED COMPONENTS Widgets Gui Network Qml Quick)
- if (NOT Qt${QT_VERSION_MAJOR}Widgets_FOUND)
- message(FATAL_ERROR "Qt support enabled, Qt was found but some required packages are missing, stopping.")
- endif()
-diff '--color=auto' -ruN flightgear-2024.1.1/CMakeModules/Installation.cmake my/CMakeModules/Installation.cmake
---- flightgear-2024.1.1/CMakeModules/Installation.cmake 2025-02-27 15:49:31.000000000 +0100
-+++ my/CMakeModules/Installation.cmake 2025-05-22 05:25:32.200462286 +0200
-@@ -149,7 +149,7 @@
- ########################################################################################
- # AppDir creation for Linux AppImage
-
--if (LINUX)
-+if (LINUX AND APPIMAGE)
-
- install(DIRECTORY ${OSG_PLUGINS_DIR}
- DESTINATION appdir/usr/lib
-diff '--color=auto' -ruN flightgear-2024.1.1/src/GUI/CMakeLists.txt my/src/GUI/CMakeLists.txt
---- flightgear-2024.1.1/src/GUI/CMakeLists.txt 2025-02-27 15:49:31.000000000 +0100
-+++ my/src/GUI/CMakeLists.txt 2025-05-22 05:52:05.224936638 +0200
-@@ -182,7 +182,6 @@
- Qt${QT_VERSION_MAJOR}::Network
- Qt${QT_VERSION_MAJOR}::Qml
- Qt${QT_VERSION_MAJOR}::Quick
-- Qt${QT_VERSION_MAJOR}::Svg
- SimGearCore)
-
- add_library(fgqmlui
-@@ -250,7 +249,6 @@
- Qt${QT_VERSION_MAJOR}::Network
- Qt${QT_VERSION_MAJOR}::Qml
- Qt${QT_VERSION_MAJOR}::Quick
-- Qt${QT_VERSION_MAJOR}::Svg
- SimGearCore)
-
- target_include_directories(fgqmlui PRIVATE ${PROJECT_BINARY_DIR}/src/GUI ${OPENSCENEGRAPH_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR})
diff --git a/games-simulation/flightgear/files/flightgear-2024.1.1-openal-init-decl.patch b/games-simulation/flightgear/files/flightgear-2024.1.1-openal-init-decl.patch
deleted file mode 100644
index 0099b0b62dbb..000000000000
--- a/games-simulation/flightgear/files/flightgear-2024.1.1-openal-init-decl.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-From 4effb8ca7a0faa2cd7fac58f29b37e32227e487d Mon Sep 17 00:00:00 2001
-From: Florent Rougon <f.rougon@frougon.net>
-Date: Wed, 7 May 2025 14:46:31 +0200
-Subject: [PATCH] 3rdparty/iaxclient: fix declaration of openal_initialize()
-
-In audio_openal.h, openal_initialize() was declared without any
-parameter specified, however the definition takes two. This was valid in
-pre-ANSI C (K&R function declarations) but was removed in C23 and is
-apparently already causing problems:
-
- https://sourceforge.net/p/flightgear/mailman/message/59181327/
-
-Also move #include "audio_openal.h" from iaxclient_lib.h to where it is
-actually needed (iaxclient_lib.c).
----
- 3rdparty/iaxclient/lib/audio_openal.h | 2 +-
- 3rdparty/iaxclient/lib/iaxclient_lib.c | 4 ++++
- 3rdparty/iaxclient/lib/iaxclient_lib.h | 4 ----
- 3 files changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/3rdparty/iaxclient/lib/audio_openal.h b/3rdparty/iaxclient/lib/audio_openal.h
-index a698235adb..de7cbc866c 100644
---- a/3rdparty/iaxclient/lib/audio_openal.h
-+++ b/3rdparty/iaxclient/lib/audio_openal.h
-@@ -1,6 +1,6 @@
- #ifndef _AUDIO_OPENAL_H
- #define _AUDIO_OPENAL_H
-
--int openal_initialize();
-+int openal_initialize(struct iaxc_audio_driver *d, int sample_rate);
-
- #endif
-diff --git a/3rdparty/iaxclient/lib/iaxclient_lib.c b/3rdparty/iaxclient/lib/iaxclient_lib.c
-index 761dee42b9..ae2c43f3ca 100644
---- a/3rdparty/iaxclient/lib/iaxclient_lib.c
-+++ b/3rdparty/iaxclient/lib/iaxclient_lib.c
-@@ -47,6 +47,10 @@
- #include "audio_alsa.h"
- #endif
-
-+#ifdef AUDIO_OPENAL
-+ #include "audio_openal.h"
-+#endif
-+
- #define IAXC_ERROR IAXC_TEXT_TYPE_ERROR
- #define IAXC_STATUS IAXC_TEXT_TYPE_STATUS
- #define IAXC_NOTICE IAXC_TEXT_TYPE_NOTICE
-diff --git a/3rdparty/iaxclient/lib/iaxclient_lib.h b/3rdparty/iaxclient/lib/iaxclient_lib.h
-index 91776c3351..d98dc45167 100644
---- a/3rdparty/iaxclient/lib/iaxclient_lib.h
-+++ b/3rdparty/iaxclient/lib/iaxclient_lib.h
-@@ -242,10 +242,6 @@ struct iaxc_call {
-
- #include "audio_file.h"
-
--#ifdef AUDIO_OPENAL
-- #include "audio_openal.h"
--#endif
--
- extern int iaxci_audio_output_mode;
-
- int iaxci_post_event_callback(iaxc_event e);
---
-GitLab
-
diff --git a/games-simulation/flightgear/files/nasal.vim b/games-simulation/flightgear/files/nasal.vim
deleted file mode 100644
index 65a2ed17fc26..000000000000
--- a/games-simulation/flightgear/files/nasal.vim
+++ /dev/null
@@ -1 +0,0 @@
-au BufRead,BufNewFile *.nas set filetype=nasal
diff --git a/games-simulation/flightgear/flightgear-2024.1.1.ebuild b/games-simulation/flightgear/flightgear-2024.1.1.ebuild
deleted file mode 100644
index 83ec9502b118..000000000000
--- a/games-simulation/flightgear/flightgear-2024.1.1.ebuild
+++ /dev/null
@@ -1,170 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake flag-o-matic xdg
-
-DESCRIPTION="Open Source Flight Simulator"
-HOMEPAGE="https://www.flightgear.org/"
-SRC_URI="https://gitlab.com/flightgear/fgmeta/-/jobs/9264813015/artifacts/raw/fgbuild/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="cpu_flags_x86_sse2 dbus debug examples gdal qt6 +udev +utils"
-
-# Needs --fg-root with path to flightgear-data passed to test runner passed,
-# not really worth patching
-RESTRICT="test"
-
-# zlib is some strange auto-dep from simgear
-# TODO add osgXR
-COMMON_DEPEND="
- dev-db/sqlite:3
- >=dev-games/openscenegraph-3.6.0[jpeg,png]
- ~dev-games/simgear-${PV}[gdal=]
- media-libs/openal
- >=media-libs/plib-1.8.5
- >=media-libs/speex-1.2.0:0
- media-libs/speexdsp:0
- media-sound/gsm
- virtual/zlib:=
- virtual/glu
- x11-libs/libX11
- dbus? ( >=sys-apps/dbus-1.6.18-r1 )
- gdal? ( >=sci-libs/gdal-2.0.0:= )
- qt6? (
- dev-qt/qtbase:6[gui,network,widgets]
- dev-qt/qtdeclarative:6
- )
- udev? ( virtual/udev )
- utils? (
- media-libs/freeglut
- media-libs/freetype:2
- media-libs/glew:0
- media-libs/libpng:0
- virtual/opengl
- qt6? ( dev-qt/qtwebsockets:6 )
- )
-"
-# libXi and libXmu are build-only-deps according to FindGLUT.cmake
-DEPEND="${COMMON_DEPEND}
- dev-libs/boost
- x11-base/xorg-proto
- utils? (
- x11-libs/libXi
- x11-libs/libXmu
- )
-"
-RDEPEND="${COMMON_DEPEND}
- ~games-simulation/${PN}-data-${PV}
-"
-BDEPEND="qt6? ( dev-qt/qttools:6[linguist] )"
-
-PATCHES=(
- "${FILESDIR}/${PN}-2024.1.1-cmake.patch"
- "${FILESDIR}/0001-check-to-be-sure-that-n-is-not-being-set-as-format-t.patch"
- "${FILESDIR}/0003-make-fglauncher-a-static-library.patch"
- "${FILESDIR}/0005-make-fgqmlui-a-static-library.patch"
- "${FILESDIR}/0006-fgviewer-fix-crash-on-exit.patch"
- "${FILESDIR}/${P}-openal-init-decl.patch"
-)
-
-DOCS=(AUTHORS ChangeLog NEWS README Thanks)
-
-src_configure() {
- # -Werror=lto-type-mismatch, -Werror=odr
- # https://bugs.gentoo.org/859217
- # https://sourceforge.net/p/flightgear/codetickets/2908/
- filter-lto
-
- local mycmakeargs=(
- -DBUILD_SHARED_LIBS=OFF
- -DCHECK_FOR_QT5=OFF
- -DCHECK_FOR_QT6=ON
- -DENABLE_AUTOTESTING=OFF
- -DENABLE_FGCOM=$(usex utils)
- -DENABLE_FGELEV=$(usex utils)
- -DENABLE_FGJS=$(usex utils)
- -DENABLE_FGVIEWER=$(usex utils)
- -DENABLE_GDAL=$(usex gdal)
- -DENABLE_GPSSMOOTH=$(usex utils)
- -DENABLE_HID_INPUT=$(usex udev)
- -DENABLE_IAX=$(usex utils)
- -DENABLE_JS_DEMO=$(usex utils)
- -DENABLE_JSBSIM=ON
- -DENABLE_LARCSIM=ON
- -DENABLE_METAR=$(usex utils)
- -DENABLE_PLIB_JOYSTICK=ON # NOTE look for defaults changes in CMake
- -DENABLE_QT=$(usex qt6)
- -DENABLE_RTI=OFF
- -DENABLE_SENTRY=OFF # sentry-native masked
- -DENABLE_HUD=ON
- -DENABLE_PUI=ON
- -DENABLE_SIMD=$(usex cpu_flags_x86_sse2)
- -DENABLE_STGMERGE=ON
- -DENABLE_SWIFT=OFF # swift pilot client not packaged yet
- -DENABLE_TRAFFIC=$(usex utils)
- -DENABLE_UIUC_MODEL=ON
- -DENABLE_VR=OFF
- -DENABLE_YASIM=ON
- -DEVENT_INPUT=$(usex udev)
- -DFG_BUILD_TYPE=Release
- -DFG_DATA_DIR=/usr/share/${PN}
- -DJSBSIM_TERRAIN=ON
- -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO also see simgear
- -DSP_FDMS=ON
- -DSYSTEM_CPPUNIT=OFF # NOTE we do not build tests anyway
- -DSYSTEM_FLITE=OFF
- -DSYSTEM_HTS_ENGINE=OFF
- -DSYSTEM_SPEEX=ON
- -DSYSTEM_GSM=ON
- -DSYSTEM_SQLITE=ON
- -DSYSTEM_OSGXR=ON
- -DUSE_AEONWAVE=OFF
- -DUSE_DBUS=$(usex dbus)
- -DWITH_FGPANEL=$(usex utils)
- -DENABLE_FGQCANVAS=OFF # still Qt5-only, bug 968375
- )
- if use gdal && use utils; then
- mycmakeargs+=(-DENABLE_DEMCONVERT=ON)
- else
- mycmakeargs+=(-DENABLE_DEMCONVERT=OFF)
- fi
-
- cmake_src_configure
-}
-
-src_install() {
- cmake_src_install
-
- # Install bash completion (TODO zsh)
- # Uncomment below when scripts stops writing files...
-# sed -e "s|/usr/local/share/FlightGear|${GAMES_DATADIR}/${PN}|" \
-# -i scripts/completion/fg-completion.bash || die 'unable to replace FG_ROOT'
-# newbashcomp scripts/completion/fg-completion.bash ${PN}
-
- # Install examples and other misc files
- if use examples; then
- docompress -x /usr/share/doc/"${PF}"/{examples,tools}
- docinto examples
- dodoc -r scripts/java scripts/perl scripts/python
- docinto examples/c++
- dodoc -r scripts/example/*
- docinto tools
- dodoc -r scripts/atis scripts/tools/*
- fi
-
- # Install nasal script syntax
- insinto /usr/share/vim/vimfiles/syntax
- doins scripts/syntax/{ac3d,nasal}.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- doins "${FILESDIR}"/{ac3d,nasal}.vim
-}
-
-pkg_postinst() {
- if use qt6; then
- einfo "To use launcher, run fgfs with '--launcher' parameter"
- fi
-}
diff --git a/games-simulation/flightgear/flightgear-9999.ebuild b/games-simulation/flightgear/flightgear-9999.ebuild
deleted file mode 100644
index 4dca7305d954..000000000000
--- a/games-simulation/flightgear/flightgear-9999.ebuild
+++ /dev/null
@@ -1,171 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake flag-o-matic git-r3
-
-DESCRIPTION="Open Source Flight Simulator"
-HOMEPAGE="https://www.flightgear.org/"
-EGIT_REPO_URI="https://gitlab.com/flightgear/${PN}.git"
-EGIT_BRANCH="next"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS=""
-IUSE="cpu_flags_x86_sse2 dbus debug examples gdal qt6 +udev +utils"
-
-# Needs --fg-root with path to flightgear-data passed to test runner passed,
-# not really worth patching
-RESTRICT="test"
-
-# zlib is some strange auto-dep from simgear
-# TODO add osgXR
-COMMON_DEPEND="
- dev-db/sqlite:3
- >=dev-games/openscenegraph-3.6.0[jpeg,png]
- ~dev-games/simgear-${PV}[gdal=]
- media-libs/openal
- >=media-libs/plib-1.8.5
- >=media-libs/speex-1.2.0:0
- media-libs/speexdsp:0
- media-sound/gsm
- virtual/zlib:=
- virtual/glu
- x11-libs/libX11
- dbus? ( >=sys-apps/dbus-1.6.18-r1 )
- gdal? ( >=sci-libs/gdal-2.0.0:= )
- qt6? (
- dev-qt/qtbase:6[gui,network,widgets]
- dev-qt/qtdeclarative:6
- )
- udev? ( virtual/udev )
- utils? (
- media-libs/freeglut
- media-libs/freetype:2
- media-libs/glew:0
- media-libs/libpng:0
- virtual/opengl
- qt6? ( dev-qt/qtwebsockets:6 )
- )
-"
-# libXi and libXmu are build-only-deps according to FindGLUT.cmake
-DEPEND="${COMMON_DEPEND}
- dev-libs/boost
- x11-base/xorg-proto
- utils? (
- x11-libs/libXi
- x11-libs/libXmu
- )
-"
-RDEPEND="${COMMON_DEPEND}
- ~games-simulation/${PN}-data-${PV}
-"
-BDEPEND="qt6? ( dev-qt/qttools:6 )"
-
-PATCHES=(
- "${FILESDIR}/${PN}-2024.1.1-cmake.patch"
- "${FILESDIR}/${PN}-2024.1.1-fix-fgpanel.patch"
-)
-
-DOCS=(AUTHORS ChangeLog NEWS README Thanks)
-
-src_configure() {
- # -Werror=lto-type-mismatch, -Werror=odr
- # https://bugs.gentoo.org/859217
- # https://sourceforge.net/p/flightgear/codetickets/2908/
- filter-lto
-
- local mycmakeargs=(
- -DBUILD_SHARED_LIBS=OFF
- -DCHECK_FOR_QT5=OFF
- -DCHECK_FOR_QT6=ON
- -DENABLE_AUTOTESTING=OFF
- -DENABLE_FGCOM=$(usex utils)
- -DENABLE_FGELEV=$(usex utils)
- -DENABLE_FGJS=$(usex utils)
- -DENABLE_FGVIEWER=$(usex utils)
- -DENABLE_GDAL=$(usex gdal)
- -DENABLE_GPSSMOOTH=$(usex utils)
- -DENABLE_HID_INPUT=$(usex udev)
- -DENABLE_IAX=$(usex utils)
- -DENABLE_JS_DEMO=$(usex utils)
- -DENABLE_JSBSIM=ON
- -DENABLE_LARCSIM=ON
- -DENABLE_METAR=$(usex utils)
- -DENABLE_PLIB_JOYSTICK=ON # NOTE look for defaults changes in CMake
- -DENABLE_QT=$(usex qt6)
- -DENABLE_RTI=OFF
- -DENABLE_SENTRY=OFF # sentry-native masked
- -DENABLE_HUD=ON
- -DENABLE_PUI=ON
- -DENABLE_SIMD=$(usex cpu_flags_x86_sse2)
- -DENABLE_STGMERGE=ON
- -DENABLE_SWIFT=OFF # swift pilot client not packaged yet
- -DENABLE_TRAFFIC=$(usex utils)
- -DENABLE_UIUC_MODEL=ON
- -DENABLE_VR=OFF
- -DENABLE_YASIM=ON
- -DEVENT_INPUT=$(usex udev)
- -DFG_BUILD_TYPE=Nightly
- -DFG_DATA_DIR=/usr/share/${PN}
- -DJSBSIM_TERRAIN=ON
- -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO also see simgear
- -DSP_FDMS=ON
- -DSYSTEM_CPPUNIT=OFF # NOTE we do not build tests anyway
- -DSYSTEM_FLITE=OFF
- -DSYSTEM_HTS_ENGINE=OFF
- -DSYSTEM_SPEEX=ON
- -DSYSTEM_GSM=ON
- -DSYSTEM_SQLITE=ON
- -DSYSTEM_OSGXR=ON
- -DUSE_AEONWAVE=OFF
- -DUSE_DBUS=$(usex dbus)
- -DWITH_FGPANEL=$(usex utils)
- )
- if use gdal && use utils; then
- mycmakeargs+=(-DENABLE_DEMCONVERT=ON)
- else
- mycmakeargs+=(-DENABLE_DEMCONVERT=OFF)
- fi
- if use qt6 && use utils; then
- mycmakeargs+=(-DENABLE_FGQCANVAS=ON)
- else
- mycmakeargs+=(-DENABLE_FGQCANVAS=OFF)
- fi
-
- cmake_src_configure
-}
-
-src_install() {
- cmake_src_install
-
- # Install bash completion (TODO zsh)
- # Uncomment below when scripts stops writing files...
-# sed -e "s|/usr/local/share/FlightGear|${GAMES_DATADIR}/${PN}|" \
-# -i scripts/completion/fg-completion.bash || die 'unable to replace FG_ROOT'
-# newbashcomp scripts/completion/fg-completion.bash ${PN}
-
- # Install examples and other misc files
- if use examples; then
- docompress -x /usr/share/doc/"${PF}"/{examples,tools}
- docinto examples
- dodoc -r scripts/java scripts/perl scripts/python
- docinto examples/c++
- dodoc -r scripts/example/*
- docinto tools
- dodoc -r scripts/atis scripts/tools/*
- fi
-
- # Install nasal script syntax
- insinto /usr/share/vim/vimfiles/syntax
- doins scripts/syntax/{ac3d,nasal}.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- doins "${FILESDIR}"/{ac3d,nasal}.vim
-}
-
-pkg_postinst() {
- if use qt6; then
- einfo "To use launcher, run fgfs with '--launcher' parameter"
- fi
-}
diff --git a/games-simulation/flightgear/metadata.xml b/games-simulation/flightgear/metadata.xml
deleted file mode 100644
index 6cad3bbf17aa..000000000000
--- a/games-simulation/flightgear/metadata.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>games@gentoo.org</email>
- <name>Gentoo Games Project</name>
- </maintainer>
- <use>
- <flag name="dbus">Enable screensaver DBus interaction</flag>
- <flag name="gdal">Enable alternative terrain engine based on pagedLOD using <pkg>sci-libs/gdal</pkg></flag>
- <flag name="qt6">Build Qt6 launcher application</flag>
- <flag name="udev">Enable event-based Input devices through <pkg>virtual/udev</pkg></flag>
- <flag name="utils">Build various utilities (fgpanel, fgviewer among others)</flag>
- </use>
- <upstream>
- <remote-id type="gitlab">flightgear/flightgear</remote-id>
- </upstream>
-</pkgmetadata>