From 518afaade23766e5878033625442a054c9ff6a0e Mon Sep 17 00:00:00 2001 From: Cecil Hugh Watson Date: Tue, 27 Jan 2009 22:38:15 -0800 Subject: Fix to compile w/ 2.6.28. --- .../stable/mythtv/2.6.28_dvb_api_version.diff | 22 ++++++++++++++++++++++ abs/core-testing/mythtv/stable/mythtv/PKGBUILD | 5 +++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 abs/core-testing/mythtv/stable/mythtv/2.6.28_dvb_api_version.diff diff --git a/abs/core-testing/mythtv/stable/mythtv/2.6.28_dvb_api_version.diff b/abs/core-testing/mythtv/stable/mythtv/2.6.28_dvb_api_version.diff new file mode 100644 index 0000000..0116023 --- /dev/null +++ b/abs/core-testing/mythtv/stable/mythtv/2.6.28_dvb_api_version.diff @@ -0,0 +1,22 @@ +Index: libs/libmythtv/dvbtypes.h +=================================================================== +--- libs/libmythtv/dvbtypes.h (revision 19792) ++++ libs/libmythtv/dvbtypes.h (working copy) +@@ -19,7 +19,7 @@ + #include + #include + +-#if (DVB_API_VERSION != 3) ++#if (DVB_API_VERSION != 3 && DVB_API_VERSION != 5) + # error "DVB driver includes with API version 3 not found!" + #endif + +@@ -27,7 +27,7 @@ + # define DVB_API_VERSION_MINOR 0 + #endif + +-#if (DVB_API_VERSION >= 3 && DVB_API_VERSION_MINOR >= 1) ++#if ((DVB_API_VERSION == 3 && DVB_API_VERSION_MINOR >= 1) || DVB_API_VERSION == 5) + # define USE_ATSC + #else + #warning DVB API version < 3.1 diff --git a/abs/core-testing/mythtv/stable/mythtv/PKGBUILD b/abs/core-testing/mythtv/stable/mythtv/PKGBUILD index 6e405cd..00208ef 100644 --- a/abs/core-testing/mythtv/stable/mythtv/PKGBUILD +++ b/abs/core-testing/mythtv/stable/mythtv/PKGBUILD @@ -1,13 +1,13 @@ pkgname=mythtv pkgver=0.21 -pkgrel=26 +pkgrel=27 pkgdesc="A Homebrew PVR project" arch=('i686' 'x86_64') depends=('bash' 'mysql-clients>=5.0' 'qt3' 'lame' 'lirc-utils' 'ffmpeg' \ 'libxvmc') backup=('etc/mythtv/mythbackend.conf' 'etc/mythtv/mysql.txt' 'usr/share/mythtv/is.xml') source=(ftp://ftp.knoppmyth.net/R6/sources/${pkgname}-${pkgver}-fixes.tar.bz2 \ - mythbackend myththemedmenu.cpp.patch myththemedmenu.h.patch smolt_jump.patch ) + mythbackend myththemedmenu.cpp.patch myththemedmenu.h.patch smolt_jump.patch 2.6.28_dvb_api_version.diff) #md5sums=('e316ed18d7ac837cf8c4af54b1478793' '7ef6de58240e7aad389a0b13d91b1cf6'\ # 'a0ecb7f476cb71c0c1ac90d349fc7695') @@ -28,6 +28,7 @@ build() { # patch -p0 < ../pop_be_restart.h.patch # patch -p0 < ../pop_be_restart.cpp.patch patch -p0 < ../smolt_jump.patch + patch -p0 < ../2.6.28_dvb_api_version.diff . /etc/profile.d/qt3.sh -- cgit v0.12