Source: yorick-av Version: 0.0.3-3 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 0738bcc..ea7aa8d 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: science Priority: extra Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org> Uploaders: Thibaut Paumard <thib...@debian.org> -Build-Depends: debhelper (>= 9), yorick-dev (>= 2), +Build-Depends: debhelper (>= 9), yorick-dev (>= 2), pkg-config, libavformat-dev (>=6:9), libavutil-dev (>=6:9), libavcodec-dev (>=6:9), libswscale-dev (>=6:9) Standards-Version: 3.9.5 diff --git a/debian/patches/pkg-config.patch b/debian/patches/pkg-config.patch new file mode 100644 index 0000000..7369efd --- /dev/null +++ b/debian/patches/pkg-config.patch @@ -0,0 +1,16 @@ +Description: Use pkg-config to determine FFmpeg linker flags + +Author: Andreas Cadhalpun <andreas.cadhal...@googlemail.com> +Last-Update: <2014-05-20> + +--- yorick-av-0.0.3.orig/Makefile ++++ yorick-av-0.0.3/Makefile +@@ -23,7 +23,7 @@ OBJS=yav.o + PKG_EXENAME=yorick + + # PKG_DEPLIBS=-Lsomedir -lsomelib for dependencies of this package +-PKG_DEPLIBS=-lavformat -lswscale -lavutil -lavcodec ++PKG_DEPLIBS=$(shell pkg-config --libs libavformat libswscale libavutil libavcodec) + # set compiler (or rarely loader) flags specific to this package + PKG_CFLAGS= + PKG_LDFLAGS= diff --git a/debian/patches/series b/debian/patches/series index e69de29..9937964 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -0,0 +1 @@ +pkg-config.patch
-- debian-science-maintainers mailing list debian-science-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers