Package: libav
Version: 6:0.8.1-6
Severity: important
Tags: patch

Hi,

currently libav cannot be compiled on hurd-i386 because it build-depends
(and uses) libva also hurd, where it is uninstallable (and it won't
available for long, since it would use libdrm).
Attached there is a patch that disables the libva-dev b-d on hurd-any,
making its usage conditional; also, it enables again the usage of
libpulse, since now it is in the archive proper.

Thanks,
-- 
Pino
--- a/debian/control
+++ b/debian/control
@@ -35,7 +35,7 @@ Build-Depends:
  libopencore-amrnb-dev,
  libopencore-amrwb-dev,
  libopenjpeg-dev,
- libpulse-dev [!hurd-any],
+ libpulse-dev,
  libraw1394-dev [linux-any],
  librtmp-dev (>= 2.2e-4),
  libschroedinger-dev,
@@ -43,7 +43,7 @@ Build-Depends:
  libspeex-dev,
  libtheora-dev (>> 0.0.0.alpha4),
  libtiff4-dev | libtiff-dev,
- libva-dev,
+ libva-dev [!hurd-any],
  libvdpau-dev,
  libvo-aacenc-dev,
  libvo-amrwbenc-dev,
--- a/debian/confflags
+++ b/debian/confflags
@@ -97,7 +97,6 @@ confflags += --extra-version='$(DEB_VERS
 confflags += --arch='$(DEB_HOST_ARCH_CPU)'
 confflags += --prefix=/usr
 confflags += --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
-confflags += --enable-vaapi
 confflags += --enable-vdpau
 confflags += --enable-bzlib
 confflags += --enable-frei0r
@@ -113,6 +112,7 @@ confflags += --enable-zlib
 confflags += --enable-libvpx
 confflags += --enable-runtime-cpudetect
 confflags += --enable-libfreetype
+confflags += --enable-libpulse
 ifeq      ($(DEB_HOST_ARCH),armel)
 # this is required on Ubuntu lucid as it defaults to thumb2 and Libav has
 # plenty of incompatible assembly; not sure how to detect that properly
@@ -125,8 +125,8 @@ endif
 
 confflags += $(extra_common_confflags)
 
-# pulse is not available on the hurd
-confflags += $(call cond_enable,/usr/include/pulse/simple.h,libpulse)
+# libva is not available on the hurd
+confflags += $(call cond_enable,/usr/include/va/va.h,vaapi)
 
 # this part below is intended for the 'Libav' package in ubuntu/multiverse
 gpl_confflags += $(call cond_enable,/usr/include/dirac/libdirac_decoder/dirac_parser.h,libdirac)

Reply via email to