[packages/ffmpeg] append opencv include dir to compiler flags only if opencv is enabled

atler atler at pld-linux.org
Thu Sep 28 21:34:49 CEST 2023


commit 971ab51b4c36bd4cbf0a1f2f23fa949c24005c72
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Sep 28 20:46:54 2023 +0200

    append opencv include dir to compiler flags only if opencv is enabled

 ffmpeg.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/ffmpeg.spec b/ffmpeg.spec
index 97ea6b2..1bfb7ce 100644
--- a/ffmpeg.spec
+++ b/ffmpeg.spec
@@ -634,8 +634,8 @@ EOF
 	--libdir=%{_libdir} \
 	--shlibdir=%{_libdir} \
 	--mandir=%{_mandir} \
-	--extra-cflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcflags}%{?with_decklink: -I/usr/include/decklink} -I/usr/include/opencv4" \
-	--extra-cxxflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcxxflags}%{?with_decklink: -I/usr/include/decklink} -I/usr/include/opencv4" \
+	--extra-cflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcflags}%{?with_decklink: -I/usr/include/decklink}%{?with_opencv: -I/usr/include/opencv4}" \
+	--extra-cxxflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcxxflags}%{?with_decklink: -I/usr/include/decklink}%{?with_opencv: -I/usr/include/opencv4}" \
 	--extra-ldflags="%{rpmcflags} %{rpmldflags}" \
 %ifarch %{armv6}
 	--extra-libs="-latomic" \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ffmpeg.git/commitdiff/971ab51b4c36bd4cbf0a1f2f23fa949c24005c72



More information about the pld-cvs-commit mailing list