Your message dated Sat, 23 Aug 2014 12:29:40 +0200
with message-id <53f86d14.60...@googlemail.com>
and subject line pkg-config patch no longer necessary, better solution found
has caused the Debian Bug report #758373,
regarding vtk: Use pkg-config to determine FFmpeg linker flags
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
758373: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758373
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: vtk
Version: 5.8.0-17.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/patches/pkg-config.patch b/debian/patches/pkg-config.patch
new file mode 100644
index 0000000..663dc9e
--- /dev/null
+++ b/debian/patches/pkg-config.patch
@@ -0,0 +1,26 @@
+Description: Use pkg-config to determine FFmpeg linker flags
+
+Author: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>
+Last-Update: <2014-05-19>
+
+--- vtk-5.10.1.orig/IO/CMakeLists.txt
++++ vtk-5.10.1/IO/CMakeLists.txt
+@@ -290,6 +290,18 @@ IF (VTK_USE_FFMPEG_ENCODER)
+ SET_SOURCE_FILES_PROPERTIES( vtkFFMPEGWriter.cxx
+ PROPERTIES COMPILE_DEFINITIONS __STDC_CONSTANT_MACROS )
+
++ pkg_check_modules(FFMPEG_avf libavformat)
++ set(FFMPEG_avformat_LIBRARY ${FFMPEG_avf_LIBRARIES})
++
++ pkg_check_modules(FFMPEG_avc libavcodec)
++ set(FFMPEG_avcodec_LIBRARY ${FFMPEG_avc_LIBRARIES})
++
++ pkg_check_modules(FFMPEG_avu libavutil)
++ set(FFMPEG_avutil_LIBRARY ${FFMPEG_avu_LIBRARIES})
++
++ pkg_check_modules(FFMPEG_sws libswscale)
++ set(FFMPEG_swscale_LIBRARY ${FFMPEG_sws_LIBRARIES})
++
+ SET(KIT_LIBS ${KIT_LIBS}
+ ${FFMPEG_avformat_LIBRARY}
+ ${FFMPEG_avcodec_LIBRARY}
diff --git a/debian/patches/series b/debian/patches/series
index 624177f..c25e744 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@
libav10.patch
java15.patch
multiarch-libpq.patch
+pkg-config.patch
--- End Message ---
--- Begin Message ---
Dear maintainer,
I have found a simpler way to make it possible to link your package
against FFmpeg in Debian:
The lib*-ffmpeg-dev packages now install symbolic links from the
standard lib*.so library names to the suffixed ones.
This makes it possible to use the normal linker flags, e.g. '-lavcodec',
to link against the FFmpeg libraries with '-ffmpeg' suffix.
Thus the pkg-config patch is no longer necessary.
I wish I had found this solution sooner and am sorry for the noise I
created in your inbox.
Best regards,
Andreas
--- End Message ---
--
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers