Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4
dvbcut
dvbcut-use_pkgconfig.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dvbcut-use_pkgconfig.patch of Package dvbcut
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.])
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor