1 |
commit: 775b95ff4880315ae8215aa271eecf1363509d57 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 30 08:24:29 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 30 08:25:32 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=775b95ff |
7 |
|
8 |
sys-libs/libomp: Backport hwloc & ompt support to 3.9.0 |
9 |
|
10 |
sys-libs/libomp/libomp-3.9.0.ebuild | 8 ++++++-- |
11 |
1 file changed, 6 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/sys-libs/libomp/libomp-3.9.0.ebuild b/sys-libs/libomp/libomp-3.9.0.ebuild |
14 |
index 856ea69..ed972e8 100644 |
15 |
--- a/sys-libs/libomp/libomp-3.9.0.ebuild |
16 |
+++ b/sys-libs/libomp/libomp-3.9.0.ebuild |
17 |
@@ -16,9 +16,11 @@ SRC_URI="http://llvm.org/releases/${PV}/${MY_P}.src.tar.xz" |
18 |
LICENSE="UoI-NCSA" |
19 |
SLOT="0/3.9" |
20 |
KEYWORDS="~amd64 ~x86" |
21 |
-IUSE="" |
22 |
+IUSE="hwloc ompt" |
23 |
|
24 |
-DEPEND="dev-lang/perl" |
25 |
+RDEPEND="hwloc? ( sys-apps/hwloc:0=[${MULTILIB_USEDEP}] )" |
26 |
+DEPEND="${RDEPEND} |
27 |
+ dev-lang/perl" |
28 |
|
29 |
S="${WORKDIR}/${MY_P}.src" |
30 |
|
31 |
@@ -31,6 +33,8 @@ multilib_src_configure() { |
32 |
local libdir="$(get_libdir)" |
33 |
local mycmakeargs=( |
34 |
-DLIBOMP_LIBDIR_SUFFIX="${libdir#lib}" |
35 |
+ -DLIBOMP_USE_HWLOC=$(usex hwloc) |
36 |
+ -DLIBOMP_OMPT_SUPPORT=$(usex ompt) |
37 |
# do not install libgomp.so & libiomp5.so aliases |
38 |
-DLIBOMP_INSTALL_ALIASES=OFF |
39 |
# disable unnecessary hack copying stuff back to srcdir |