add proper dependencies for CUDA

Requires nVidia repo to be enabled:
https://developer.nvidia.com/cuda-downloads
el8
Dominik 'Rathann' Mierzejewski 8 years ago
parent c549af65d9
commit 6860f3604f

@ -40,8 +40,7 @@
%global nvenc_cflags -I%{_includedir}/nvenc %global nvenc_cflags -I%{_includedir}/nvenc
%endif %endif
%if 0%{?_with_cuda} %if 0%{?_with_cuda}
%{!?_cuda_includedir:%global _cuda_includedir $(pkg-config --cflags cuda-8.0)} %global cuda_cflags $(pkg-config --cflags cuda-8.0)
%global cuda_cflags -I%{_cuda_includedir}
%global cuda_ldflags -L%{_libdir}/nvidia %global cuda_ldflags -L%{_libdir}/nvidia
%endif %endif
@ -67,6 +66,7 @@ Source0: ffmpeg-%{?branch}%{date}.tar.bz2
Source0: http://ffmpeg.org/releases/ffmpeg-%{version}.tar.xz Source0: http://ffmpeg.org/releases/ffmpeg-%{version}.tar.xz
%endif %endif
Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%{?_with_cuda:BuildRequires: cuda-driver-dev-8-0 cuda-misc-headers-8-0 cuda-drivers-devel%{_isa}}
BuildRequires: bzip2-devel BuildRequires: bzip2-devel
%{?_with_faac:BuildRequires: faac-devel} %{?_with_faac:BuildRequires: faac-devel}
%{?_with_fdk_aac:BuildRequires: fdk-aac-devel} %{?_with_fdk_aac:BuildRequires: fdk-aac-devel}

Loading…
Cancel
Save