File ffmpeg-libcdio_cdda-pkgconfig.patch of Package A_tw-ffmpeg-3
22
1
---
2
configure | 6 ++++--
3
1 file changed, 4 insertions(+), 2 deletions(-)
4
5
Index: ffmpeg-3.4/configure
6
===================================================================
7
--- ffmpeg-3.4.orig/configure
8
+++ ffmpeg-3.4/configure
9
10
enabled sndio && check_lib sndio sndio.h sio_open -lsndio
11
12
if enabled libcdio; then
13
- check_lib libcdio "cdio/cdda.h cdio/paranoia.h" cdio_cddap_open -lcdio_paranoia -lcdio_cdda -lcdio ||
14
- check_lib libcdio "cdio/paranoia/cdda.h cdio/paranoia/paranoia.h" cdio_cddap_open -lcdio_paranoia -lcdio_cdda -lcdio ||
15
+# cdio_cdda needs -lrt, get it from pkg-config from the external pkg
16
+ l=$(pkg-config --libs libcdio_paranoia libcdio_cdda libcdio)
17
+ check_lib libcdio "cdio/cdda.h cdio/paranoia.h" cdio_cddap_open $l ||
18
+ check_lib libcdio "cdio/paranoia/cdda.h cdio/paranoia/paranoia.h" cdio_cddap_open $l ||
19
die "ERROR: No usable libcdio/cdparanoia found"
20
fi
21
22