media-libs/opencv: cuda restriction for >=gcc-4.8 disabled bug #566244.

Package-Manager: portage-2.2.20.1
This commit is contained in:
Amy Winston
2015-11-26 22:10:58 +01:00
parent 6850980d23
commit 7bbdf13eaf
2 changed files with 4 additions and 10 deletions

View File

@@ -9,6 +9,7 @@
<maintainer>
<email>amynka@gentoo.org</email>
<name>Amy Winston</name>
<description>Assign bugs on me.</description>
</maintainer>
<longdescription>
OpenCV (Open Source Computer Vision) is a library of programming functions mainly aimed at real time computer vision.

View File

@@ -182,16 +182,9 @@ src_configure() {
fi
if use cuda; then
if [[ "$(gcc-version)" > "4.7" ]]; then
ewarn "CUDA and >=sys-devel/gcc-4.8 do not play well together. Disabling CUDA support."
mycmakeargs+=( "-DWITH_CUDA=OFF" )
mycmakeargs+=( "-DWITH_CUBLAS=OFF" )
mycmakeargs+=( "-DWITH_CUFFT=OFF" )
else
mycmakeargs+=( "-DWITH_CUDA=ON" )
mycmakeargs+=( "-DWITH_CUBLAS=ON" )
mycmakeargs+=( "-DWITH_CUFFT=ON" )
fi
mycmakeargs+=( "-DWITH_CUDA=ON" )
mycmakeargs+=( "-DWITH_CUBLAS=ON" )
mycmakeargs+=( "-DWITH_CUFFT=ON" )
else
mycmakeargs+=( "-DWITH_CUDA=OFF" )
mycmakeargs+=( "-DWITH_CUBLAS=OFF" )