From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: sci-physics/mbdyn/files/, sci-physics/mbdyn/
Date: Fri, 8 Oct 2021 19:05:14 +0000 (UTC) [thread overview]
Message-ID: <1633647208.d73e4916a6587e1d6c12c1c763eca12c6b6d1b54.arthurzam@gentoo> (raw)
commit: d73e4916a6587e1d6c12c1c763eca12c6b6d1b54
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Thu Oct 7 22:52:56 2021 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 7 22:53:28 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d73e4916
sci-physics/mbdyn: fix bullet detection
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
sci-physics/mbdyn/files/mbdyn-find-bullet.patch | 22 ++++++++++++++++++++++
sci-physics/mbdyn/mbdyn-1.7.3_p20210925.ebuild | 5 +++--
2 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/sci-physics/mbdyn/files/mbdyn-find-bullet.patch b/sci-physics/mbdyn/files/mbdyn-find-bullet.patch
new file mode 100644
index 000000000..129976181
--- /dev/null
+++ b/sci-physics/mbdyn/files/mbdyn-find-bullet.patch
@@ -0,0 +1,22 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -1889,15 +1889,15 @@
+ if test "$ol_with_bullet" != "no" ; then
+ AC_LANG_CPLUSPLUS
+ have_libbullet=no
+- AC_CHECK_HEADER(BulletCollision/CollisionShapes/btCollisionShape.h,[have_bullet_h=yes],[have_bullet_h=no])
++ AC_CHECK_HEADER(bullet/BulletCollision/CollisionShapes/btCollisionShape.h,[have_bullet_h=yes],[have_bullet_h=no])
+ if test "$have_bullet_h" = "yes" ; then
+ SAVE_LIBS="$LIBS"
+- try_BULLET_LIBS="-lbulletcollision -lbulletmath"
++ try_BULLET_LIBS="-lBulletCollision"
+ LIBS="$try_BULLET_LIBS $LIBS"
+- AC_CHECK_LIB(bulletcollision,btBulletCollisionProbe,[
++ AC_CHECK_LIB(BulletCollision,btBulletCollisionProbe,[
+ have_libbullet=yes
+ BULLET_LIBS="$try_BULLET_LIBS"
+- ],[have_libbullet=no],[-lbulletmath])
++ ],[have_libbullet=no],[])
+ LIBS="$save_LIBS"
+ fi
+
diff --git a/sci-physics/mbdyn/mbdyn-1.7.3_p20210925.ebuild b/sci-physics/mbdyn/mbdyn-1.7.3_p20210925.ebuild
index 6fecb6acb..5a7971737 100644
--- a/sci-physics/mbdyn/mbdyn-1.7.3_p20210925.ebuild
+++ b/sci-physics/mbdyn/mbdyn-1.7.3_p20210925.ebuild
@@ -7,7 +7,7 @@ COMMIT="ae57618c4e7b030b59707b8c156a6e2a94a6efd0"
MYP="${PN}-${COMMIT}"
PYTHON_COMPAT=( python3_{8..10} )
-inherit autotools fortran-2 pam python-single-r1
+inherit autotools flag-o-matic fortran-2 pam python-single-r1
DESCRIPTION="A general purpose Multibody Dynamics analysis software"
HOMEPAGE="https://www.mbdyn.org"
@@ -138,6 +138,7 @@ DEPEND="
BDEPEND="python? ( dev-lang/swig )"
PATCHES=(
+ "${FILESDIR}/${PN}-find-bullet.patch"
"${FILESDIR}/${PN}-octave-no-global-install.patch"
)
# "${FILESDIR}/${PN}-respect-libtool.patch"
@@ -176,7 +177,7 @@ src_prepare() {
src_configure() {
python_setup
-# append-cxxflags "-I/usr/include/openmpi/ompi/mpi/cxx/"
+ append-cxxflags "-I/usr/include/bullet"
local myconf=(
--disable-static
--disable-Werror
reply other threads:[~2021-10-08 19:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1633647208.d73e4916a6587e1d6c12c1c763eca12c6b6d1b54.arthurzam@gentoo \
--to=arthurzam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox