LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ffmpeg-libcdio_cdda-pkgconfig.patch of Package ffmpeg-3.0 (Project home:linux4humans:qt5.6)

---
 configure |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Index: ffmpeg-3.0.1/configure
===================================================================
--- ffmpeg-3.0.1.orig/configure
+++ ffmpeg-3.0.1/configure
@@ -5714,8 +5714,9 @@ enabled jack_indev && check_lib2 jack/ja
 enabled_any sndio_indev sndio_outdev && check_lib2 sndio.h sio_open -lsndio
 
 if enabled libcdio; then
-    check_lib2 "cdio/cdda.h cdio/paranoia.h" cdio_cddap_open -lcdio_paranoia -lcdio_cdda -lcdio ||
-    check_lib2 "cdio/paranoia/cdda.h cdio/paranoia/paranoia.h" cdio_cddap_open -lcdio_paranoia -lcdio_cdda -lcdio ||
+# cdio_cdda needs -lrt, get it from pkg-config from the external pkg
+    check_lib2 "cdio/cdda.h cdio/paranoia.h" cdio_cddap_open `pkg-config --libs libcdio_paranoia` `pkg-config --libs libcdio_cdda` `pkg-config --libs libcdio` ||
+    check_lib2 "cdio/paranoia/cdda.h cdio/paranoia/paranoia.h" cdio_cddap_open `pkg-config --libs libcdio_paranoia` `pkg-config --libs libcdio_cdda` `pkg-config --libs libcdio` ||
     die "ERROR: No usable libcdio/cdparanoia found"
 fi