23 |
23 |
# base, vmd plugins, fftpack from numpy, blas/lapck from netlib, memtestG80 library, mpi_thread lib
|
24 |
24 |
LICENSE="LGPL-2.1 UoI-NCSA !mkl? ( !fftw? ( BSD ) !blas? ( BSD ) !lapack? ( BSD ) ) cuda? ( LGPL-3 ) threads? ( BSD )"
|
25 |
25 |
SLOT="0/${PV}"
|
26 |
|
IUSE="X blas cuda +doc double-precision +fftw +hwloc lapack mkl mpi +offensive opencl openmp +single-precision test +threads +tng ${ACCE_IUSE}"
|
|
26 |
IUSE="X blas cuda +doc double-precision +fftw +gmxapi +hwloc lapack +lmfit mkl mpi +offensive opencl openmp +single-precision test +threads +tng ${ACCE_IUSE}"
|
27 |
27 |
|
28 |
28 |
CDEPEND="
|
29 |
29 |
X? (
|
... | ... | |
32 |
32 |
x11-libs/libICE
|
33 |
33 |
)
|
34 |
34 |
blas? ( virtual/blas )
|
35 |
|
cuda? ( >=dev-util/nvidia-cuda-toolkit-4.2.9-r1:= )
|
|
35 |
cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.14:= )
|
36 |
36 |
opencl? ( virtual/opencl )
|
37 |
37 |
fftw? ( sci-libs/fftw:3.0= )
|
38 |
|
hwloc? ( <sys-apps/hwloc-2:= )
|
|
38 |
hwloc? ( sys-apps/hwloc:= )
|
39 |
39 |
lapack? ( virtual/lapack )
|
|
40 |
lmfit? ( sci-libs/lmfit:= )
|
40 |
41 |
mkl? ( sci-libs/mkl )
|
41 |
42 |
mpi? ( virtual/mpi )
|
|
43 |
${PYTHON_DEPS}
|
42 |
44 |
"
|
43 |
45 |
BDEPEND="${CDEPEND}
|
44 |
46 |
virtual/pkgconfig
|
... | ... | |
50 |
52 |
cuda? ( single-precision )
|
51 |
53 |
opencl? ( single-precision )
|
52 |
54 |
cuda? ( !opencl )
|
53 |
|
mkl? ( !blas !fftw !lapack )"
|
|
55 |
mkl? ( !blas !fftw !lapack )
|
|
56 |
${PYTHON_REQUIRED_USE}"
|
54 |
57 |
|
55 |
58 |
DOCS=( AUTHORS README )
|
56 |
59 |
|
... | ... | |
58 |
61 |
|
59 |
62 |
S="${WORKDIR}/${PN}-${PV/_/-}"
|
60 |
63 |
|
|
64 |
PATCHES=( "${FILESDIR}/${P}-missing-include.patch" )
|
|
65 |
|
61 |
66 |
pkg_pretend() {
|
62 |
67 |
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
63 |
68 |
}
|
... | ... | |
117 |
122 |
fft_opts=( -DGMX_FFT_LIBRARY=fftpack )
|
118 |
123 |
fi
|
119 |
124 |
|
|
125 |
if use lmfit; then
|
|
126 |
local lmfit_opts=( -DGMX_USE_LMFIT=EXTERNAL )
|
|
127 |
else
|
|
128 |
local lmfit_opts=( -DGMX_USE_LMFIT=INTERNAL )
|
|
129 |
fi
|
|
130 |
|
120 |
131 |
mycmakeargs_pre+=(
|
121 |
132 |
"${fft_opts[@]}"
|
|
133 |
"${lmfit_opts[@]}"
|
122 |
134 |
-DGMX_X11=$(usex X)
|
123 |
135 |
-DGMX_EXTERNAL_BLAS=$(usex blas)
|
124 |
136 |
-DGMX_EXTERNAL_LAPACK=$(usex lapack)
|
... | ... | |
131 |
143 |
-DGMX_VMD_PLUGIN_PATH="${EPREFIX}/usr/$(get_libdir)/vmd/plugins/*/molfile/"
|
132 |
144 |
-DBUILD_TESTING=$(usex test)
|
133 |
145 |
-DGMX_BUILD_UNITTESTS=$(usex test)
|
|
146 |
-DPYTHON_EXECUTABLE="${EPREFIX}/usr/bin/${EPYTHON}"
|
134 |
147 |
${extra}
|
135 |
148 |
)
|
136 |
149 |
|
... | ... | |
151 |
164 |
${mycmakeargs_pre[@]} ${p}
|
152 |
165 |
-DGMX_MPI=OFF
|
153 |
166 |
-DGMX_THREAD_MPI=$(usex threads)
|
|
167 |
-DGMXAPI=$(usex gmxapi)
|
154 |
168 |
"${opencl[@]}"
|
155 |
169 |
"${cuda[@]}"
|
156 |
170 |
"$(use test && echo -DREGRESSIONTEST_PATH="${WORKDIR}/${P}_${x}/tests")"
|
... | ... | |
167 |
181 |
-DGMX_THREAD_MPI=OFF
|
168 |
182 |
-DGMX_MPI=ON
|
169 |
183 |
-DGMX_OPENMM=OFF
|
|
184 |
-DGMXAPI=OFF
|
|
185 |
"${opencl[@]}"
|
|
186 |
"${cuda[@]}"
|
170 |
187 |
-DGMX_BUILD_MDRUN_ONLY=ON
|
171 |
188 |
-DBUILD_SHARED_LIBS=OFF
|
172 |
189 |
-DGMX_BUILD_MANUAL=OFF
|
173 |
|
"${opencl[@]}"
|
174 |
|
"${cuda[@]}"
|
175 |
190 |
-DGMX_BINARY_SUFFIX="_mpi${suffix}"
|
176 |
191 |
-DGMX_LIBS_SUFFIX="_mpi${suffix}"
|
177 |
192 |
)
|