summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2017-07-27 18:07:54 +0000
committerSébastien Fabbro <bicatali@gentoo.org>2017-07-27 18:50:41 +0000
commitf957a4700c88e595c6ccf055417fff747ada0bdb (patch)
tree4dc77b0aab94bb7f7adb8f19fb0544da8891e731 /sci-libs
parentsci-libs/dlib: version bump (diff)
downloadgentoo-f957a4700c88e595c6ccf055417fff747ada0bdb.tar.gz
gentoo-f957a4700c88e595c6ccf055417fff747ada0bdb.tar.bz2
gentoo-f957a4700c88e595c6ccf055417fff747ada0bdb.zip
sci-libs/dlib: fixed more cuda stuff
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/dlib/dlib-19.4.ebuild10
-rw-r--r--sci-libs/dlib/metadata.xml2
2 files changed, 7 insertions, 5 deletions
diff --git a/sci-libs/dlib/dlib-19.4.ebuild b/sci-libs/dlib/dlib-19.4.ebuild
index 9d44e7177a75..c6116343a93b 100644
--- a/sci-libs/dlib/dlib-19.4.ebuild
+++ b/sci-libs/dlib/dlib-19.4.ebuild
@@ -3,7 +3,7 @@
EAPI=6
-inherit cmake-utils
+inherit cmake-utils cuda
DESCRIPTION="Numerical and networking C++ library"
HOMEPAGE="http://dlib.net/"
@@ -19,20 +19,22 @@ IUSE="cblas debug cuda examples gif jpeg lapack mkl png
RDEPEND="
cblas? ( virtual/cblas:= )
- cuda? ( >=dev-util/nvidia-cuda-toolkit-7 )
+ cuda? ( dev-libs/cudnn:= )
jpeg? ( virtual/jpeg:0= )
lapack? ( virtual/lapack:= )
- mkl? ( sci-libs/mkl )
+ mkl? ( sci-libs/mkl:= )
png? ( media-libs/libpng:0= )
sqlite? ( dev-db/sqlite:3= )
- X? ( x11-libs/libX11 )
+ X? ( x11-libs/libX11:= )
"
DEPEND="test? ( ${RDEPEND} )"
src_prepare() {
+ use cuda && cuda_src_prepare
cmake-utils_src_prepare
sed -i -e '/LICENSE.txt/d' dlib/CMakeLists.txt || die
}
+
src_configure() {
local mycmakeargs=(
-DLIB_INSTALL_DIR="$(get_libdir)"
diff --git a/sci-libs/dlib/metadata.xml b/sci-libs/dlib/metadata.xml
index 3d2eccafb59b..422f29c52e5a 100644
--- a/sci-libs/dlib/metadata.xml
+++ b/sci-libs/dlib/metadata.xml
@@ -13,7 +13,7 @@
</longdescription>
<use>
<flag name="cblas">Build with CBLAS <pkg>virtual/cblas</pkg></flag>
- <flag name="cuda">Enable support for CUDA for GPU (cuDNN)</flag>
+ <flag name="cuda">Enable support for CUDA for Deep Neural Networks (cuDNN) on GPU (experimental)</flag>
<flag name="mkl">Enable support for Intel FFT <pkg>sci-libs/mkl</pkg></flag>
</use>
<upstream>