Source: lynkeos.app Version: 1.2-6.2 Severity: wishlist Tags: patch Usertags: reintroducing-ffmpeg
Dear maintainer, I am working on reintroducing FFmpeg to Debian [1-2]. In order to make FFmpeg co-installable with Libav, the libraries were renamed to lib*-ffmpeg. Thus using linker flags like '-lavcodec' doesn't work with the FFmpeg packages. To get the correct linking flags for both FFmpeg and Libav, one can (and should) use pkg-config. Attached patch achieves that for this package. Please apply it to facilitate building your package with FFmpeg in Debian. If you want to facilitate this even further, you can also add lib*-ffmpeg-dev alternatives to the Libav build-dependencies. While the FFmpeg package is still waiting in the NEW queue [3], it can already be built from the git repository [4]. Best regards, Andreas 1: https://lists.debian.org/debian-devel/2014/07/msg01010.html 2: https://bugs.debian.org/729203 3: https://ftp-master.debian.org/new/ffmpeg_7:2.3.1-1.html 4: https://anonscm.debian.org/cgit/collab-maint/ffmpeg.git
diff --git a/debian/control b/debian/control index 3e1b793..d1cd352 100644 --- a/debian/control +++ b/debian/control @@ -12,7 +12,8 @@ Build-Depends: debhelper (>= 7), libtiff-dev, libgnustep-gui-dev, openssl, - imagemagick + imagemagick, + pkg-config Vcs-Git: git://git.debian.org/pkg-gnustep/lynkeos.app.git Vcs-Browser: http://git.debian.org/?p=pkg-gnustep/lynkeos.app.git Standards-Version: 3.9.2 diff --git a/debian/patches/05_ffmpeg_build_fix.dpatch b/debian/patches/05_ffmpeg_build_fix.dpatch index 09cb7d0..f7496c5 100755 --- a/debian/patches/05_ffmpeg_build_fix.dpatch +++ b/debian/patches/05_ffmpeg_build_fix.dpatch @@ -32,8 +32,8 @@ diff -urNad lynkeos.app-1.2~/Sources/GNUmakefile lynkeos.app-1.2/Sources/GNUmake -ADDITIONAL_OBJC_LIBS += -lavformat -lavcodec -lfftw3f_threads -lfftw3_threads -lfftw3f -lfftw3 -lm -ADDITIONAL_LIB_DIRS += -L/home/thecat/Devel/ffmpeg-0.4.8/libavformat/ -L/home/thecat/Devel/ffmpeg-0.4.8/libavcodec +Lynkeos_APPLICATION_ICON=Lynkeos.png -+ -+ADDITIONAL_OBJC_LIBS += -lavformat -lavcodec -lswscale -lavutil -ltiff \ ++FFMPEG_LIBS=$(shell pkg-config --libs libavformat libavcodec libswscale libavutil) ++ADDITIONAL_OBJC_LIBS += $(FFMPEG_LIBS) -ltiff \ + -lfftw3f_threads -lfftw3_threads -lfftw3f -lfftw3 \ + -lm

