diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-libs/starpu/starpu-1.1.5.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-libs/starpu/starpu-1.1.5.ebuild')
-rw-r--r-- | dev-libs/starpu/starpu-1.1.5.ebuild | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/dev-libs/starpu/starpu-1.1.5.ebuild b/dev-libs/starpu/starpu-1.1.5.ebuild new file mode 100644 index 000000000000..ce3ab4e90515 --- /dev/null +++ b/dev-libs/starpu/starpu-1.1.5.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +FORTRAN_STANDARD=90 + +inherit autotools-utils toolchain-funcs cuda fortran-2 + +DESCRIPTION="Unified runtime system for heterogeneous multicore architectures" +HOMEPAGE="http://runtime.bordeaux.inria.fr/StarPU/" +SRC_URI="${HOMEPAGE}/files/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha amd64 ~x86 ~amd64-linux ~x86-linux" + +IUSE="blas cuda debug doc examples fftw gcc-plugin mpi opencl opengl + static-libs test" + +RDEPEND=" + sys-apps/hwloc:0= + sci-mathematics/glpk:0= + blas? ( virtual/blas ) + cuda? ( dev-util/nvidia-cuda-toolkit + x11-drivers/nvidia-drivers + blas? ( sci-libs/magma ) ) + fftw? ( sci-libs/fftw:3.0= ) + mpi? ( virtual/mpi ) + opencl? ( virtual/opencl ) + opengl? ( media-libs/freeglut:0= )" + +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen virtual/latex-base ) + test? ( gcc-plugin? ( dev-scheme/guile ) )" + +src_prepare() { + # upstream did not want the patches so apply sed's + sed -i -e 's/-O3 $CFLAGS/$CFLAGS/' configure.ac || die + sed -i -e '/Libs.private/s/@LDFLAGS@//g' *.pc.in */*.pc.in || die + autotools-utils_src_prepare + use cuda && cuda_src_prepare +} + +src_configure() { + use blas && export BLAS_LIBS="$($(tc-getPKG_CONFIG) --libs blas)" + + local myeconfargs=( + --disable-build-examples + --disable-starpu-top + $(use_enable cuda) + $(use_enable debug) + $(use_enable doc build-doc) + $(use_enable fftw starpufft) + $(use_enable gcc-plugin gcc-extensions) + $(use_enable opencl) + $(use_enable opengl opengl-render) + $(use_with mpi mpicc "$(type -P mpicc)") + $(use cuda && use_enable blas magma) + $(use mpi && use_enable test mpi-check) + ) + autotools-utils_src_configure +} + +src_test() { + autotools-utils_src_test -j1 showcheck +} + +src_install() { + autotools-utils_src_install + if use doc; then + dodoc "${BUILD_DIR}"/doc/doxygen/*.pdf + dohtml -r "${BUILD_DIR}"/doc/doxygen/html/* + fi + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins -r examples/* + fi +} |