diff options
author | Sam James <sam@gentoo.org> | 2022-12-16 01:52:09 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-12-16 01:52:17 +0000 |
commit | 6e7c0956d150475f57018568de6d41540997b7d7 (patch) | |
tree | d8b76591e16d0dd5038ced88c4246bc03aac3e2d /dev-games/simgear/simgear-2020.3.17-r1.ebuild | |
parent | sci-libs/gdal: add 3.6.1 (diff) | |
download | gentoo-6e7c0956d150475f57018568de6d41540997b7d7.tar.gz gentoo-6e7c0956d150475f57018568de6d41540997b7d7.tar.bz2 gentoo-6e7c0956d150475f57018568de6d41540997b7d7.zip |
dev-games/simgear: add gdal subslot dep
new SONAME
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-games/simgear/simgear-2020.3.17-r1.ebuild')
-rw-r--r-- | dev-games/simgear/simgear-2020.3.17-r1.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/dev-games/simgear/simgear-2020.3.17-r1.ebuild b/dev-games/simgear/simgear-2020.3.17-r1.ebuild new file mode 100644 index 000000000000..e4f9e4c4b3c9 --- /dev/null +++ b/dev-games/simgear/simgear-2020.3.17-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake toolchain-funcs + +DESCRIPTION="Development library for simulation games" +HOMEPAGE="https://www.flightgear.org/" +SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="cpu_flags_x86_sse2 +dns debug gdal openmp subversion test" +RESTRICT="!test? ( test )" + +# TODO aeonwave +COMMON_DEPEND=" + app-arch/xz-utils + dev-libs/expat + dev-games/openscenegraph + 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 +" +RDEPEND="${COMMON_DEPEND} + subversion? ( dev-vcs/subversion ) +" + +PATCHES=( + "${FILESDIR}/${PN}-2019.1.1-gdal3.patch" + "${FILESDIR}/${PN}-2020.1.2-do-not-assume-libc++-clang.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=$(usex cpu_flags_x86_sse2) + -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_src_configure +} |