File ffmpeg-libcdio_cdda-pkgconfig.patch of Package A_tw-ffmpeg-2
---
configure | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Index: ffmpeg-2.8.3/configure
===================================================================
--- ffmpeg-2.8.3.orig/configure
+++ ffmpeg-2.8.3/configure
@@ -5453,8 +5453,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