- Initial package (version 0.7.2) OBS-URL: https://build.opensuse.org/request/show/621953 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/dvbcut?expand=0&rev=1
44 lines
1.4 KiB
Diff
44 lines
1.4 KiB
Diff
Index: dvbcut-deb-0.7.2/configure.ac
|
|
===================================================================
|
|
--- dvbcut-deb-0.7.2.orig/configure.ac
|
|
+++ dvbcut-deb-0.7.2/configure.ac
|
|
@@ -43,12 +43,35 @@ done
|
|
|
|
dnl Checks for libraries.
|
|
|
|
-FFMPEG_LIBS='-lavformat -lavcodec -lavutil'
|
|
AC_SUBST(FFMPEG_LIBS)
|
|
|
|
+AC_CHECK_LIB(avformat, main,
|
|
+ [HAVE_FFMPEG="yes"],
|
|
+ [AC_MSG_ERROR([libavformat library not found])])
|
|
+
|
|
+AC_CHECK_LIB(avcodec, main,
|
|
+ [HAVE_FFMPEG="yes"],
|
|
+ [AC_MSG_ERROR([libavcodec library not found])])
|
|
+
|
|
+AC_CHECK_LIB(avutil, main,
|
|
+ [HAVE_FFMPEG="yes"],
|
|
+ [AC_MSG_ERROR([libavutil library not found])])
|
|
+
|
|
AC_CHECK_LIB(swscale, main,
|
|
- [AC_DEFINE(HAVE_LIB_SWSCALE, 1, [Define this if you have libswscale.])
|
|
- FFMPEG_LIBS="$FFMPEG_LIBS -lswscale"])
|
|
+ [HAVE_SWSCALE="yes"],
|
|
+ [AC_MSG_ERROR([libswscale library not found])])
|
|
+
|
|
+if test "x$HAVE_FFMPEG" = "xyes"; then
|
|
+ FFMPEG_LIBS="`$PKG_CONFIG --libs libavformat libavcodec libavutil`"
|
|
+ CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags libavformat libavcodec libavutil`"
|
|
+ if test "x$HAVE_SWSCALE" = "xyes"; then
|
|
+ AC_DEFINE(HAVE_LIB_SWSCALE, 1, [Define this if you have libswscale.])
|
|
+ FFMPEG_LIBS="$FFMPEG_LIBS `$PKG_CONFIG --libs libswscale`"
|
|
+ CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags libswscale`"
|
|
+ fi
|
|
+else
|
|
+ AC_MSG_ERROR([cannot find ffmpeg libraries])
|
|
+fi
|
|
|
|
AC_CHECK_LIB(mad, mad_decoder_init,
|
|
[AC_DEFINE(HAVE_LIB_MAD, 1, [Define this if you have libmad.])
|