getting rid of ffmpeg-config
Fabian Greffrath
greffrath at leat.rub.de
Mon Jun 23 10:54:59 UTC 2008
Hi all,
I have created a list of all packages, that build-depend on one of
ffmpeg's library -dev packages. I have sorted and uniq'ed the list:
$ for i in `grep 'Package.*\-dev' debian/control | cut -d ' ' -f 2`; \
do grep-available -F Build-Depends -s Package $i \
/var/lib/apt/lists/ftp2.de.debian.org_debian_dists_unstable_main_source_Sources;\
done
alsa-plugins
aqualung
blender
cmus
ffmpeg2theora
ffmpeg-php
freej
gnash
gnusound
gstreamer0.10-ffmpeg
idjc
k3b
kino
ktoon
libavg
libquicktime
linphone
lynkeos.app
mediatomb
mlt
moc
motion
mt-daapd
opencv
openmovieeditor
picard
potamus
smilutils
sox
swfdec0.6
synfig
vlc
wengophone
xine-lib
xmms2
I downloaded all these source packages and grepped through the sources
to find all references to ffmpeg-config:
$ grep -ir 'ffmpeg-config' *
blender-2.45/source/nan_definitions.mk: export NAN_FFMPEG ?=
$(shell ffmpeg-config --prefix)
blender-2.45/source/nan_definitions.mk: export NAN_FFMPEGLIBS ?=
$(shell ffmpeg-config --libs avformat avcodec)
blender-2.45/source/nan_definitions.mk: export NAN_FFMPEGCFLAGS ?=
$(shell ffmpeg-config --cflags)
gnusound-0.7.4/debian/changelog: * Using pkg-config instead of the
old ffmpeg-config, fixing FTBFS
grep: ktoon-0.8.1/src/ktoonlib/config.h: Datei oder Verzeichnis nicht
gefunden
libavg-0.7.0/m4/am_lib_ffmpeg.m4: #See if ffmpeg-config is available...
libavg-0.7.0/m4/am_lib_ffmpeg.m4: AC_MSG_CHECKING([[if
ffmpeg-config is present]])
libavg-0.7.0/m4/am_lib_ffmpeg.m4: if ffmpeg-config --version
1>/dev/null 2>/dev/null; then
libavg-0.7.0/m4/am_lib_ffmpeg.m4: LIBFFMPEG="`ffmpeg-config
--plugin-libs avcodec avformat`"
libavg-0.7.0/m4/am_lib_ffmpeg.m4: # If ffmpeg-config didn't work,
see if ffmpeg is registered with pkg-config
libavg-0.7.0/configure: #See if ffmpeg-config is available...
libavg-0.7.0/configure: { echo "$as_me:$LINENO: checking if
ffmpeg-config is present" >&5
libavg-0.7.0/configure:echo $ECHO_N "checking if ffmpeg-config is
present... $ECHO_C" >&6; }
libavg-0.7.0/configure: if ffmpeg-config --version 1>/dev/null
2>/dev/null; then
libavg-0.7.0/configure: LIBFFMPEG="`ffmpeg-config --plugin-libs
avcodec avformat`"
libavg-0.7.0/configure: # If ffmpeg-config didn't work, see if
ffmpeg is registered with pkg-config
moc-2.5.0~alpha3/configure.in: AC_CHECK_PROG([FFMPEG_CONFIG],
[ffmpeg-config], [yes])
moc-2.5.0~alpha3/configure.in: libavformat_CFLAGAS=`ffmpeg-config
--cflags`
moc-2.5.0~alpha3/configure.in: libavformat_LIBS=`ffmpeg-config
--plugin-libs avformat`
moc-2.5.0~alpha3/configure: # Extract the first word of
"ffmpeg-config", so it can be a program name with args.
moc-2.5.0~alpha3/configure:set dummy ffmpeg-config; ac_word=$2
moc-2.5.0~alpha3/configure: libavformat_CFLAGAS=`ffmpeg-config --cflags`
moc-2.5.0~alpha3/configure: libavformat_LIBS=`ffmpeg-config
--plugin-libs avformat`
moc-2.5.0~alpha3/debian/changelog: - Fixed compilation with
ffmpeg-config (--plugin-libs instead of --libs).
motion-3.2.9/configure.in: if test -f /usr/bin/ffmpeg-config; then
motion-3.2.9/configure.in: FFMPEG_LIBS_DEB="`ffmpeg-config --libs
avformat`"
motion-3.2.9/configure.in: FFMPEG_CFLAGS_DEB="`ffmpeg-config --cflags`"
motion-3.2.9/configure: if test -f /usr/bin/ffmpeg-config; then
motion-3.2.9/configure: FFMPEG_LIBS_DEB="`ffmpeg-config --libs avformat`"
motion-3.2.9/configure: FFMPEG_CFLAGS_DEB="`ffmpeg-config --cflags`"
vlc-0.8.6.e/configure.ac:dnl kludge because only the debian package
provides a ffmpeg-config
vlc-0.8.6.e/configure.ac:dnl we try to find ffmpeg using : 1- given
tree 2- ffmpeg-config, 3- pkg-config
vlc-0.8.6.e/configure.ac:dnl Look for a ffmpeg-config (we are on debian )
vlc-0.8.6.e/configure.ac: AC_ARG_WITH(ffmpeg-config-path,
vlc-0.8.6.e/configure.ac: [ --with-ffmpeg-config-path=PATH
ffmpeg-config path (default search in \$PATH)],
vlc-0.8.6.e/configure.ac: AC_PATH_PROG(FFMPEG_CONFIG, ffmpeg-config,
no, ${FFMPEG_PATH})
vlc-0.8.6.e/doc/ChangeLog-2005:Add a test for pkg-config for ffmpeg.
It now do in order: ffmpeg-config, pkg-config, default location, given
tree. fixes #306.
vlc-0.8.6.e/doc/ChangeLog-2005:To cross-compile on a debian, use
PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig and
--with-ffmpeg-config-path=somewhere with no ffmpeg-config
(/usr/win32/bin by ex)
vlc-0.8.6.e/configure: --with-ffmpeg-config-path=PATH ffmpeg-config
path (default search in \$PATH)
vlc-0.8.6.e/configure:# Check whether --with-ffmpeg-config-path was given.
vlc-0.8.6.e/configure: # Extract the first word of "ffmpeg-config",
so it can be a program name with args.
vlc-0.8.6.e/configure:set dummy ffmpeg-config; ac_word=$2
xmms2-0.4DrKosmos/src/plugins/avcodec/wscript: cfg.binary =
'ffmpeg-config'
xmms2-0.4DrKosmos/src/plugins/avformat/wscript: cfg.binary =
'ffmpeg-config'
This means that blender, libavg, moc, motion, vlc and xmms2 the
candidates to file bugs against.
Next question is: What should we do to finally get rid of ffmpeg-config?
- File bugs against these 6 packages?
- File bugs and provide patches for these 6 packages?
- Send a message to debian-devel?
- Silently remove ffmpeg-config?
Patches should be trivial and since ffmpeg-config is Debian-specific
anyway, most upstream sources should have allready switched to use
pkg-config, anyway. What do you think?
Cheers,
Fabian
--
Dipl.-Phys. Fabian Greffrath
Ruhr-Universität Bochum
Lehrstuhl für Energieanlagen und Energieprozesstechnik (LEAT)
Universitätsstr. 150, IB 3/134
D-44780 Bochum
Telefon: +49 (0)234 / 32-26334
Fax: +49 (0)234 / 32-14227
E-Mail: greffrath at leat.ruhr-uni-bochum.de
More information about the pkg-multimedia-maintainers
mailing list