diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-games/simgear | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-games/simgear')
| -rw-r--r-- | dev-games/simgear/Manifest | 1 | ||||
| -rw-r--r-- | dev-games/simgear/files/0001-check-to-be-sure-that-n-is-not-being-set-as-format-t.patch | 34 | ||||
| -rw-r--r-- | dev-games/simgear/files/0002-fix-support-for-aarch64.patch | 25 | ||||
| -rw-r--r-- | dev-games/simgear/files/simgear-2024.1.1-boost.patch | 13 | ||||
| -rw-r--r-- | dev-games/simgear/metadata.xml | 20 | ||||
| -rw-r--r-- | dev-games/simgear/simgear-2024.1.1.ebuild | 65 | ||||
| -rw-r--r-- | dev-games/simgear/simgear-9999.ebuild | 59 |
7 files changed, 217 insertions, 0 deletions
diff --git a/dev-games/simgear/Manifest b/dev-games/simgear/Manifest new file mode 100644 index 000000000000..ca1871b82758 --- /dev/null +++ b/dev-games/simgear/Manifest @@ -0,0 +1 @@ +DIST simgear-2024.1.1.tar.bz2 1814060 BLAKE2B 296122debafe91fec4bad682071bd77d7ac84aac009fdca5db4143351da1a8fb6221c5137abb6bee66d49d0ff6417d7c8455ba738c66f4608dcead2f162fe274 SHA512 dfdf5515c3b8083bb9a314ce4cea619b049e33ca332cecaa14928be95de7ddadef1724c1aec126c49bfade030774b7952f79bb55facd1d3e2f26041f706eb231 diff --git a/dev-games/simgear/files/0001-check-to-be-sure-that-n-is-not-being-set-as-format-t.patch b/dev-games/simgear/files/0001-check-to-be-sure-that-n-is-not-being-set-as-format-t.patch new file mode 100644 index 000000000000..fb31de6d7f5d --- /dev/null +++ b/dev-games/simgear/files/0001-check-to-be-sure-that-n-is-not-being-set-as-format-t.patch @@ -0,0 +1,34 @@ +From 9465f10110e02686b3f8a860520a7e8f3c6a7936 Mon Sep 17 00:00:00 2001 +From: Fabrice Bellet <fabrice@bellet.info> +Date: Sun, 22 Sep 2013 11:56:12 +0200 +Subject: [PATCH 0/1] check to be sure that %n is not being set as format type + (CVE-2012-2090) + +--- + simgear/scene/model/SGText.cxx | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/simgear/scene/model/SGText.cxx b/simgear/scene/model/SGText.cxx +index 08e84439..bc673511 100644 +--- a/simgear/scene/model/SGText.cxx ++++ b/simgear/scene/model/SGText.cxx +@@ -73,6 +73,16 @@ void SGText::UpdateCallback::operator()(osg::Node * node, osg::NodeVisitor *nv ) + // FIXME: + // hopefully the users never specifies bad formats here + // this should better be something more robust ++ // It is never safe for format.c_str to be %n. ++ string unsafe ("%n"); ++ size_t found; ++ ++ found=format.find(unsafe); ++ if (found!=string::npos) { ++ SG_LOG(SG_GENERAL, SG_ALERT, "format type contained %n, but this is unsafe, reverting to %s"); ++ format = "%s"; ++ } ++ + char buf[256]; + if( numeric ) { + double d = property->getDoubleValue() * scale + offset; +-- +2.48.1 + diff --git a/dev-games/simgear/files/0002-fix-support-for-aarch64.patch b/dev-games/simgear/files/0002-fix-support-for-aarch64.patch new file mode 100644 index 000000000000..e83856a46560 --- /dev/null +++ b/dev-games/simgear/files/0002-fix-support-for-aarch64.patch @@ -0,0 +1,25 @@ +From 560be7700e03b20e5f252fed371ac14a0e7a7c17 Mon Sep 17 00:00:00 2001 +From: Fabrice Bellet <fabrice@bellet.info> +Date: Fri, 19 Feb 2016 15:57:19 +0100 +Subject: [PATCH 1/1] fix support for aarch64 + +--- + simgear/nasal/naref.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/simgear/nasal/naref.h b/simgear/nasal/naref.h +index 21f766f5..7e269a1f 100644 +--- a/simgear/nasal/naref.h ++++ b/simgear/nasal/naref.h +@@ -18,7 +18,7 @@ + # endif + #elif defined(_M_IX86) || defined(__i386) || defined(__x86_64) || \ + defined(__ia64__) || defined(_M_IA64) || defined(__ARMEL__) || \ +- defined(_M_X64) || defined(_M_ARM) || \ ++ defined(_M_X64) || defined(_M_ARM) || defined(__aarch64__) || \ + defined(__e2k__) + # define NASAL_LE + #elif defined(__sparc) || defined(__ARMEB__) || \ +-- +2.48.1 + diff --git a/dev-games/simgear/files/simgear-2024.1.1-boost.patch b/dev-games/simgear/files/simgear-2024.1.1-boost.patch new file mode 100644 index 000000000000..97485a256724 --- /dev/null +++ b/dev-games/simgear/files/simgear-2024.1.1-boost.patch @@ -0,0 +1,13 @@ +diff --git a/simgear/nasal/cppbind/NasalHash.hxx b/simgear/nasal/cppbind/NasalHash.hxx +index 54efc2c5194f9c6fa8c52a528aff56228c576d90..1734adf682e0614671675c5dad2f9dfd5d91838d 100644 +--- a/simgear/nasal/cppbind/NasalHash.hxx ++++ b/simgear/nasal/cppbind/NasalHash.hxx +@@ -5,6 +5,8 @@ + #ifndef SG_NASAL_HASH_HXX_ + #define SG_NASAL_HASH_HXX_ + ++#include <boost/mpl/if.hpp> ++ + #include "from_nasal.hxx" + #include "to_nasal.hxx" + diff --git a/dev-games/simgear/metadata.xml b/dev-games/simgear/metadata.xml new file mode 100644 index 000000000000..63984e20107a --- /dev/null +++ b/dev-games/simgear/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <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="ffmpeg">Enable video recording via <pkg>media-video/ffmpeg</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> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-games/simgear/simgear-2024.1.1.ebuild b/dev-games/simgear/simgear-2024.1.1.ebuild new file mode 100644 index 000000000000..41fa26cb5ce0 --- /dev/null +++ b/dev-games/simgear/simgear-2024.1.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Development library for simulation games" +HOMEPAGE="https://www.flightgear.org/" +SRC_URI="https://gitlab.com/flightgear/fgmeta/-/jobs/9264813015/artifacts/raw/sgbuild/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cpu_flags_x86_sse2 debug ffmpeg gdal subversion test" +RESTRICT="!test? ( test )" + +# TODO AeonWave, CycloneDDS +COMMON_DEPEND=" + app-arch/xz-utils + dev-libs/expat + dev-games/openscenegraph + media-libs/openal + net-libs/udns + net-misc/curl + virtual/zlib:= + virtual/opengl + ffmpeg? ( media-video/ffmpeg:0 ) + gdal? ( sci-libs/gdal:= ) +" +DEPEND="${COMMON_DEPEND} + dev-libs/boost +" +RDEPEND="${COMMON_DEPEND} + subversion? ( dev-vcs/subversion ) +" + +PATCHES=( + "${FILESDIR}/0001-check-to-be-sure-that-n-is-not-being-set-as-format-t.patch" + "${FILESDIR}/0002-fix-support-for-aarch64.patch" + "${FILESDIR}/${P}-boost.patch" +) + +src_configure() { + local mycmakeargs=( + -DENABLE_ASAN=OFF + -DENABLE_CYCLONE=OFF + -DENABLE_GDAL=$(usex gdal) + -DENABLE_PKGUTIL=ON + -DENABLE_RTI=OFF + -DENABLE_SIMD=$(usex cpu_flags_x86_sse2) + -DENABLE_SOUND=ON + -DENABLE_TESTS=$(usex test) + -DENABLE_TSAN=OFF + -DENABLE_VIDEO_RECORD=$(usex ffmpeg) + -DSIMGEAR_HEADLESS=OFF + -DSIMGEAR_SHARED=ON + -DSYSTEM_EXPAT=ON + -DSYSTEM_UDNS=ON + -DUSE_AEONWAVE=OFF + -DUSE_OPENALSOFT=ON + -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO perhaps track it + ) + cmake_src_configure +} diff --git a/dev-games/simgear/simgear-9999.ebuild b/dev-games/simgear/simgear-9999.ebuild new file mode 100644 index 000000000000..60913535b32b --- /dev/null +++ b/dev-games/simgear/simgear-9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake git-r3 + +DESCRIPTION="Development library for simulation games" +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 debug ffmpeg gdal subversion test" +RESTRICT="!test? ( test )" + +# TODO AeonWave, CycloneDDS +COMMON_DEPEND=" + dev-libs/expat + dev-games/openscenegraph + media-libs/openal + net-libs/udns + net-misc/curl + virtual/zlib:= + virtual/opengl + ffmpeg? ( media-video/ffmpeg:0 ) + gdal? ( sci-libs/gdal:= ) +" +DEPEND="${COMMON_DEPEND} + dev-libs/boost +" +RDEPEND="${COMMON_DEPEND} + subversion? ( dev-vcs/subversion ) +" + +src_configure() { + local mycmakeargs=( + -DENABLE_ASAN=OFF + -DENABLE_CYCLONE=OFF + -DENABLE_GDAL=$(usex gdal) + -DENABLE_PKGUTIL=ON + -DENABLE_RTI=OFF + -DENABLE_SIMD=$(usex cpu_flags_x86_sse2) + -DENABLE_SOUND=ON + -DENABLE_TESTS=$(usex test) + -DENABLE_TSAN=OFF + -DENABLE_VIDEO_RECORD=$(usex ffmpeg) + -DSIMGEAR_HEADLESS=OFF + -DSIMGEAR_SHARED=ON + -DSYSTEM_EXPAT=ON + -DSYSTEM_UDNS=ON + -DUSE_AEONWAVE=OFF + -DUSE_OPENALSOFT=ON + -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO perhaps track it + ) + cmake_src_configure +} |
