1 |
commit: 9eb7b1d6383e100614799a895342ede31a3734f3 |
2 |
Author: Grégory Salvan <apieum <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Feb 21 14:05:42 2016 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 22 08:36:31 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=9eb7b1d6 |
7 |
|
8 |
added openmp use flag |
9 |
|
10 |
sci-mathematics/netgen/netgen-5.3.1.ebuild | 6 +++++- |
11 |
1 file changed, 5 insertions(+), 1 deletion(-) |
12 |
|
13 |
diff --git a/sci-mathematics/netgen/netgen-5.3.1.ebuild b/sci-mathematics/netgen/netgen-5.3.1.ebuild |
14 |
index 3d5b624..6f385f7 100644 |
15 |
--- a/sci-mathematics/netgen/netgen-5.3.1.ebuild |
16 |
+++ b/sci-mathematics/netgen/netgen-5.3.1.ebuild |
17 |
@@ -15,7 +15,7 @@ SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}/${MY_PV}/${P}.tar.gz" |
18 |
SLOT="0" |
19 |
LICENSE="LGPL-2.1" |
20 |
KEYWORDS="~amd64 ~x86" |
21 |
-IUSE="-ffmpeg jpeg -mpi opencascade" |
22 |
+IUSE="-ffmpeg jpeg -mpi opencascade -openmp" |
23 |
|
24 |
DEPEND=" |
25 |
dev-lang/tk |
26 |
@@ -57,6 +57,10 @@ src_configure() { |
27 |
# but --disable-xxx does not seem to work correcly, so... |
28 |
local myconf="--with-togl=/usr/$(get_libdir)/Togl1.7" |
29 |
|
30 |
+ if use !openmp; then |
31 |
+ myconf="${myconf} --disable-openmp" |
32 |
+ fi |
33 |
+ |
34 |
if use opencascade; then |
35 |
myconf="${myconf} --enable-occ --with-occ=$CASROOT" |
36 |
append-ldflags -L$CASROOT/$(get_libdir) |