diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-09-23 10:22:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-09-23 10:22:15 +0100 |
commit | 8b4ace9c50842c5b83401ea7b179dcab940387e1 (patch) | |
tree | 230f3135ceaace633cf93e9838b185c4a6664c2e /sci-physics/bullet | |
parent | 9ee6d97c2883d42f204a533a8bc1f4562df778fb (diff) |
gentoo resync : 23.09.2020
Diffstat (limited to 'sci-physics/bullet')
-rw-r--r-- | sci-physics/bullet/Manifest | 5 | ||||
-rw-r--r-- | sci-physics/bullet/bullet-2.89.ebuild | 90 | ||||
-rw-r--r-- | sci-physics/bullet/files/bullet-2.89-no-dangling-pointer.patch | 26 | ||||
-rw-r--r-- | sci-physics/bullet/metadata.xml | 1 |
4 files changed, 121 insertions, 1 deletions
diff --git a/sci-physics/bullet/Manifest b/sci-physics/bullet/Manifest index e7f27f575947..ed3e09f17775 100644 --- a/sci-physics/bullet/Manifest +++ b/sci-physics/bullet/Manifest @@ -1,4 +1,7 @@ AUX bullet-2.85-soversion.patch 1094 BLAKE2B 8dc035b80d812b3c2382067796f1626a932ce887246b34a8b5e08fddf45d330078a970eb6c2147259285a45974b8aaa26a2494ad4aa4824d89bf58aa7af3ac37 SHA512 f437d553c51c6cc6646a4a3bf0ffe02e2691a3b2109ea560c986f69c602055c409028a5a3711597aca757d3e3b33cab14d60e03fc120f0975f35c6e16be6362d +AUX bullet-2.89-no-dangling-pointer.patch 842 BLAKE2B 5d66875b52f696b839daccfbfea4a238ea32c6fc31fc6cd441cf5d053569bced474b6c8b7620a1b3eb67d69b73ced3d0d1a2beb8ec5479e64f581d66f630d5fc SHA512 a463da3288d21b3d6b0dad1bc81fcc3b95ce1bd2e53c107b597d3a6beed0b0fbafffab9d38c2394ed125802e0fb073c74f125bed9fac7898f3a3dd23930a6dfd DIST bullet-2.86.tar.gz 25806558 BLAKE2B a8576d8dacd67b9789d32d7b1acc6c4025df3c15427c60d66f98b1906eee8b2b94e5b0108b9a8c00ca6261510ccaf57ba5c02c72fee8f528d4f723b304166731 SHA512 af8a6b282ab606437d7975a59cd8a9c2bf273c83b0e79f0c4c1de6fa51695ba6d5f3c853dce2fdba9cb55e7572214e15089e54db51afc465ca26f502cbd5a4f9 +DIST bullet-2.89.tar.gz 135742506 BLAKE2B 3725533bb50f3cf4783e21c57a5e3596f280d9aa3caa5b7a44925d4785206cc86514ff89c2cc1e33f8a14af7c8a5165190bb0515a6931fc4c7ec2e2b9aef3dd8 SHA512 3c4ba6a3b3623ef44dd4a23e0bc2e90dec1f2b7af463edcb886e110feac1dfb4a91945f0ed640052cac228318539e275976d37238102fb10a0f78aef065a730b EBUILD bullet-2.86.ebuild 1565 BLAKE2B 2bcb10a03caa592484f69870e951796f56b8a771e39fe023ec3fa1b517cb6e381e1a35cc4c951ded82aa9d5b5c8fea2cab3c034c26fddff62a962f5b2db512ad SHA512 41f68eaf06d5d300f8f6fb6b2a89cb0d3273c27dc9c7b397aaafd7cef9fd6a6f39a4bbef67ef42f0cf89754c1aa8006ce9e542f2c624e2ae7c9d0b570023817e -MISC metadata.xml 1048 BLAKE2B 1f807672df77ab19e1b31e4d01424d9741f4b53705f33f1647e73e72c0a056bb7a7dee700b4e11b490a1d78f9b6a5b790759ab1950ac10ce10cdd2c7df23d9da SHA512 e214b323a3242b169e2332660f07bf9b7a7b5298c0831037b3d541c6b16c0ae104291a588619e0757f5136b5977c1f053ca07bb09d1f75d2d022d934e43175fe +EBUILD bullet-2.89.ebuild 2043 BLAKE2B d9bd64202f20ade30a37d8d4329793575980dffaede59c47abd0e5b0f2e8dbf72a413fbaeb36a3fab32ca8a185e1b036493ff8f3532c09c1102567b148a6380a SHA512 86eda68cc5a65f91da014a8dd93cc4a77061a76989fb6acbd7067ccf16d3fff1fe88ffd915bfab26ec0b87dd55989d7b7ced55beca14a57388c34d5d846aab69 +MISC metadata.xml 1188 BLAKE2B 9234b2083390248796bc38581d85dedecc7befe06b1b3d15a11c46fe0b468a0e831d20ad411d3386bc0f1ae9fc8cb119d4fe6a0a229276627f6349f373d29993 SHA512 84301ff0c87edee5c6704adb6e3a2a7b7ec1594a178a95a680c27acd2e0244742741ad02c4505da788a0c160253433c72c3daafaca95021ecc4709bd0e8571e3 diff --git a/sci-physics/bullet/bullet-2.89.ebuild b/sci-physics/bullet/bullet-2.89.ebuild new file mode 100644 index 000000000000..24626f66775a --- /dev/null +++ b/sci-physics/bullet/bullet-2.89.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake toolchain-funcs + +DESCRIPTION="Continuous Collision Detection and Physics Library" +HOMEPAGE="http://www.bulletphysics.com/" +SRC_URI="https://github.com/bulletphysics/bullet3/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+bullet3 doc double-precision examples extras openmp tbb test threads" + +REQUIRED_USE=" + openmp? ( threads ) + tbb? ( threads ) +" + +RDEPEND=" + virtual/opengl + media-libs/freeglut + tbb? ( dev-cpp/tbb ) +" +DEPEND="${RDEPEND}" +BDEPEND="doc? ( app-doc/doxygen[dot] )" + +PATCHES=( + "${FILESDIR}"/${PN}-2.85-soversion.patch + "${FILESDIR}"/${PN}-2.89-no-dangling-pointer.patch +) + +DOCS=( AUTHORS.txt LICENSE.txt README.md ) + +# Building / linking of third Party library BussIK does not work out of the box +RESTRICT="test" + +S="${WORKDIR}/${PN}3-${PV}" + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + cmake_src_prepare + + # allow to generate docs + sed -i -e 's/GENERATE_HTMLHELP.*//g' Doxyfile || die +} + +src_configure() { + local mycmakeargs=( + -DBUILD_CPU_DEMOS=OFF + -DBUILD_OPENGL3_DEMOS=OFF + -DBUILD_BULLET2_DEMOS=OFF + -DUSE_GRAPHICAL_BENCHMARK=OFF + -DINSTALL_LIBS=ON + -DINSTALL_EXTRA_LIBS=ON + -DBUILD_BULLET3=$(usex bullet3) + -DBUILD_EXTRAS=$(usex extras) + -DUSE_DOUBLE_PRECISION=$(usex double-precision) + -DBUILD_UNIT_TESTS=$(usex test) + -DBULLET2_MULTITHREADING=$(usex threads) + -DBULLET2_USE_OPEN_MP_MULTITHREADING=$(usex openmp) + -DBULLET2_USE_TBB_MULTITHREADING=$(usex tbb) + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc; then + doxygen || die + HTML_DOCS+=( html/. ) + DOCS+=( docs/*.pdf ) + fi + + if use examples; then + # throws QA warnings + rm examples/ThirdPartyLibs/openvr/*/linux64/libopenvr_api.so || die + DOCS+=( examples ) + fi +} diff --git a/sci-physics/bullet/files/bullet-2.89-no-dangling-pointer.patch b/sci-physics/bullet/files/bullet-2.89-no-dangling-pointer.patch new file mode 100644 index 000000000000..8eee0016ae28 --- /dev/null +++ b/sci-physics/bullet/files/bullet-2.89-no-dangling-pointer.patch @@ -0,0 +1,26 @@ +From 1c64add35ed4918222ceb4fe93b7bef0e2b4e41c Mon Sep 17 00:00:00 2001 +From: stolk <b.stolk@gmail.com> +Date: Wed, 1 Apr 2020 10:59:16 -0700 +Subject: [PATCH] Do not return a dangling pointer! + +Signed-off-by: Ross Charles Campbell <rossbridger.cc@gmail.com> +--- + Extras/ConvexDecomposition/cd_wavefront.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Extras/ConvexDecomposition/cd_wavefront.cpp b/Extras/ConvexDecomposition/cd_wavefront.cpp +index b33080964..53b5784df 100644 +--- a/Extras/ConvexDecomposition/cd_wavefront.cpp ++++ b/Extras/ConvexDecomposition/cd_wavefront.cpp +@@ -437,7 +437,7 @@ const char **InPlaceParser::GetArglist(char *line, int &count) // convert sourc + { + const char **ret = 0; + +- const char *argv[MAXARGS]; ++ static const char *argv[MAXARGS]; + int argc = 0; + + char *foo = line; +-- +2.28.0 + diff --git a/sci-physics/bullet/metadata.xml b/sci-physics/bullet/metadata.xml index 3304e14d402a..8dc1b6e634b1 100644 --- a/sci-physics/bullet/metadata.xml +++ b/sci-physics/bullet/metadata.xml @@ -22,6 +22,7 @@ <flag name="bullet3">Build Bullet 3</flag> <flag name="double-precision">Build libraries in double precision</flag> <flag name="extras">Build additional libraries</flag> + <flag restrict=">=sci-physics/bullet-2.89" name="tbb">Enable multithreading with the Intel Threads Building Block dev-cpp/tbb</flag> </use> <upstream> <remote-id type="google-code">bullet</remote-id> |