Package: ffmpeg2theora Severity: important Tags: patch Hi,
your package FTBFS on GNU/kFreeBSD with the following error: > Building dependency tree... > E: Couldn't find package libdc1394-dev > apt-get failed. Build logs are available at <http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=ffmpeg2theora>. AFAICT, libdc1394 is Linux-only (or can't be ported easily to non-Linux arch's) so making it optional could be interesting (that's what I suggested and implemented for Blender already). Please find attached a patch to make it optional in Build-Depends (so that it is not required for GNU/kFreeBSD and GNU/Hurd) and a small tweak in debian/rules (both tested on i386 and kfreebsd-i386, the former seems to build correctly, as before: with -ldc1394_control). If an ffmpeg2theora package w/o libdc1394 is still useful (which I guess), please apply that patch. ;-) Cheers, -- Cyril Brulebois
--- ffmpeg2theora-0.16/debian/control 2007-03-06 15:01:19.508775000 +0100 +++ ffmpeg2theora-0.16/debian/control 2007-03-06 15:01:33.000000000 +0100 @@ -2,7 +2,7 @@ Section: graphics Priority: optional Maintainer: RISKO Gergely <[EMAIL PROTECTED]> -Build-Depends: cdbs, debhelper, libavcodec-dev, libavformat-dev, libogg-dev, libvorbis-dev, libtheora-dev, pkg-config, zlib1g-dev, libdts-dev, libgsm1-dev, libdc1394-dev +Build-Depends: cdbs, debhelper, libavcodec-dev, libavformat-dev, libogg-dev, libvorbis-dev, libtheora-dev, pkg-config, zlib1g-dev, libdts-dev, libgsm1-dev, libdc1394-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386] Standards-Version: 3.7.2.0 Package: ffmpeg2theora --- ffmpeg2theora-0.16/debian/rules 2007-03-06 15:01:19.464003000 +0100 +++ ffmpeg2theora-0.16/debian/rules 2007-03-06 15:03:52.000000000 +0100 @@ -2,4 +2,12 @@ include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/debhelper.mk -DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS=" -ldc1394_control -lgsm" + +# DC1394 is Linux-only +ifneq (,findstring($(DEB_HOST_ARCH_OS), hurd kfreebsd)) + DC1394="" +else + DC1394="-ldc1394_control" +endif + +DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS=" $(DC1394) -lgsm"

