diff options
author | Marius Brehler <marbre@linux.sungazer.de> | 2015-09-17 11:48:16 +0200 |
---|---|---|
committer | Marius Brehler <marbre@linux.sungazer.de> | 2015-09-17 11:48:46 +0200 |
commit | 13b76afbda30141acbdc0eabb3f9026f49d12eb1 (patch) | |
tree | f9613e77e54bf2bdbf0e1b72f37de935303eb63e /sci-libs/arrayfire | |
parent | sci-visualization/forge: New package, ebuild written by me (diff) | |
download | sci-13b76afbda30141acbdc0eabb3f9026f49d12eb1.tar.gz sci-13b76afbda30141acbdc0eabb3f9026f49d12eb1.tar.bz2 sci-13b76afbda30141acbdc0eabb3f9026f49d12eb1.zip |
sci-libs/arrayfire: Add graphics use flag; Minor fixes
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'sci-libs/arrayfire')
-rw-r--r-- | sci-libs/arrayfire/ChangeLog | 7 | ||||
-rw-r--r-- | sci-libs/arrayfire/arrayfire-3.1.1-r1.ebuild (renamed from sci-libs/arrayfire/arrayfire-3.1.1.ebuild) | 18 | ||||
-rw-r--r-- | sci-libs/arrayfire/arrayfire-9999.ebuild | 20 | ||||
-rw-r--r-- | sci-libs/arrayfire/metadata.xml | 9 |
4 files changed, 42 insertions, 12 deletions
diff --git a/sci-libs/arrayfire/ChangeLog b/sci-libs/arrayfire/ChangeLog index 3c8c0e27a..acf4051cc 100644 --- a/sci-libs/arrayfire/ChangeLog +++ b/sci-libs/arrayfire/ChangeLog @@ -1,6 +1,13 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ +*arrayfire-3.1.1-r1 (17 Sep 2015) + + 17 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> + +arrayfire-3.1.1-r1.ebuild, -arrayfire-3.1.1.ebuild, arrayfire-9999.ebuild, + metadata.xml: + sci-libs/arrayfire: Add graphics use flag; Minor fixes + 14 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> -files/arrayfire-9999-FindCBLAS.patch, -files/arrayfire-9999-Try-PkgConf-first-to-find-LAPACKE.patch, diff --git a/sci-libs/arrayfire/arrayfire-3.1.1.ebuild b/sci-libs/arrayfire/arrayfire-3.1.1-r1.ebuild index 360650caa..2aa72aa1f 100644 --- a/sci-libs/arrayfire/arrayfire-3.1.1.ebuild +++ b/sci-libs/arrayfire/arrayfire-3.1.1-r1.ebuild @@ -4,7 +4,7 @@ EAPI=5 -inherit cmake-utils +inherit cmake-utils multilib GTEST_PV="1.7.0" @@ -16,13 +16,13 @@ KEYWORDS="~amd64" LICENSE="BSD" SLOT="0" -IUSE="+examples +cpu cuda opencl test" +IUSE="+examples +cpu cuda opencl test graphics" RDEPEND=" >=sys-devel/gcc-4.7:* media-libs/freeimage cuda? ( - >=dev-util/nvidia-cuda-toolkit-7.5 + >=dev-util/nvidia-cuda-toolkit-7.5.18-r1 dev-libs/boost ) cpu? ( @@ -39,6 +39,11 @@ RDEPEND=" dev-libs/boost-compute >=sci-libs/clblas-2.4 >=sci-libs/clfft-2.6.1 + ) + graphics? ( + media-libs/glew + >=media-libs/glfw-3.1.1 + >=sci-visualization/forge-3.1 )" DEPEND="${RDEPEND}" @@ -61,6 +66,8 @@ pkg_pretend() { src_unpack() { default + find "${WORKDIR}" -name "*_nonfree*" -delete || die + if use test; then mkdir -p "${BUILD_DIR}"/third_party/src/ || die mv "${WORKDIR}"/gtest-"${GTEST_PV}" "${BUILD_DIR}"/third_party/src/googletest || die @@ -80,10 +87,13 @@ src_configure() { $(cmake-utils_use_build opencl OPENCL) $(cmake-utils_use_build examples EXAMPLES) $(cmake-utils_use_build test TEST) + $(cmake-utils_use_build graphics GRAPHICS) + -DBUILD_NONFREE=OFF -DUSE_SYSTEM_BOOST_COMPUTE=ON -DUSE_SYSTEM_CLBLAS=ON -DUSE_SYSTEM_CLFFT=ON - -DBUILD_GRAPHICS=OFF + -DUSE_SYSTEM_FORGE=ON + -DAF_INSTALL_CMAKE_DIR=/usr/${get_libdir}/cmake/ArrayFire ) cmake-utils_src_configure } diff --git a/sci-libs/arrayfire/arrayfire-9999.ebuild b/sci-libs/arrayfire/arrayfire-9999.ebuild index c84ddd667..593dc5160 100644 --- a/sci-libs/arrayfire/arrayfire-9999.ebuild +++ b/sci-libs/arrayfire/arrayfire-9999.ebuild @@ -16,13 +16,13 @@ KEYWORDS="" LICENSE="BSD" SLOT="0" -IUSE="+examples +cpu cuda opencl test" +IUSE="+examples +cpu cuda opencl test graphics" RDEPEND=" >=sys-devel/gcc-4.7:* media-libs/freeimage cuda? ( - >=dev-util/nvidia-cuda-toolkit-6.0 + >=dev-util/nvidia-cuda-toolkit-7.5.18-r1 dev-libs/boost ) cpu? ( @@ -37,8 +37,13 @@ RDEPEND=" virtual/lapacke dev-libs/boost dev-libs/boost-compute - sci-libs/clblas - sci-libs/clfft + >=sci-libs/clblas-2.4 + >=sci-libs/clfft-2.6.1 + ) + graphics? ( + media-libs/glew + >=media-libs/glfw-3.1.1 + >=sci-visualization/forge-3.1 )" DEPEND="${RDEPEND}" @@ -60,6 +65,8 @@ pkg_pretend() { src_unpack() { git-r3_src_unpack + find "${WORKDIR}" -name "*_nonfree*" -delete || die + if use test; then mkdir -p "${BUILD_DIR}"/third_party/src/ || die cd "${BUILD_DIR}"/third_party/src/ || die @@ -81,10 +88,13 @@ src_configure() { $(cmake-utils_use_build opencl OPENCL) $(cmake-utils_use_build examples EXAMPLES) $(cmake-utils_use_build test TEST) + $(cmake-utils_use_build graphics GRAPHICS) + -DBUILD_NONFREE=OFF -DUSE_SYSTEM_BOOST_COMPUTE=ON -DUSE_SYSTEM_CLBLAS=ON -DUSE_SYSTEM_CLFFT=ON - -DBUILD_GRAPHICS=OFF + -DUSE_SYSTEM_FORGE=ON + -DAF_INSTALL_CMAKE_DIR=/usr/${get_libdir}/cmake/ArrayFire ) cmake-utils_src_configure } diff --git a/sci-libs/arrayfire/metadata.xml b/sci-libs/arrayfire/metadata.xml index d7715cbba..884f1faaf 100644 --- a/sci-libs/arrayfire/metadata.xml +++ b/sci-libs/arrayfire/metadata.xml @@ -15,13 +15,16 @@ </longdescription> <use> <flag name="cpu"> - Enable CPU Build. + Build CPU backend. </flag> <flag name="cuda"> - Enable CUDA Build. + Build CUDA backend. </flag> <flag name="opencl"> - Enable OpenCL Build. + Build OpenCL backend. + </flag> + <flag name="graphics"> + Build with Forge graphics. </flag> </use> </pkgmetadata> |