--- /tmp/configure 2008-07-22 10:27:56.000000000 +0200
-+++ mythtv/configure 2008-07-22 12:50:43.000000000 +0200
++++ mythtv/configure 2008-07-22 17:53:20.000000000 +0200
@@ -476,12 +476,13 @@
}
processor_flags=""
tune="generic"
+@@ -1185,7 +1186,7 @@
+ lamemp3="yes"
+ lirc="yes"
+ mac_bundle="no"
+-opengl="yes"
++opengl="no"
+ v4l="yes"
+ x11="yes"
+ x11_include_path="/usr/X11R6/include"
@@ -1214,7 +1215,7 @@
# build settings
SHFLAGS='-shared -Wl,-soname,$@'
fi
# test for distcc
+@@ -2718,6 +2723,7 @@
+
+ check_header GL/gl.h
+ has_library libGL || has_library libopengl32 || disable opengl
++enabled cross_compile && disable opengl
+
+ VENDOR_XVMC_LIBS=""
+ check_header X11/extensions/XvMClib.h
--- /dev/null
+--- /tmp/mythmainwindow.cpp 2008-07-22 18:19:06.000000000 +0200
++++ mythtv/libs/libmythui/mythmainwindow.cpp 2008-07-22 18:19:26.000000000 +0200
+@@ -4,7 +4,10 @@
+
+ #include <algorithm>
+
++#ifdef USE_OPENGL_PAINTER
+ #include <QGLWidget>
++endif
++
+ #include <QApplication>
+ #include <QTimer>
+ #include <QDesktopWidget>
PV = "0.21+svnr${SRCREV}"
PR = "r0"
-SRCREV = "17880"
+SRCREV = "17891"
SRC_URI = "svn://svn.mythtv.org/svn/trunk;module=mythtv;proto=http"
SRC_URI += "file://configure.patch;patch=1 \
+ file://ifdef-qt.diff;patch=1 \
"
S = "${WORKDIR}/mythtv"
do_configure_prepend() {
# it's not autotools anyway, so we call ./configure directly
find . -name "Makefile"|xargs rm -f
+
./configure --prefix=/usr \
--mandir=/usr/man \
--cpu=${MYTHTV_ARCH} \
--arch=${MYTHTV_ARCH} \
--disable-altivec \
+ --disable-opengl-video \
--disable-strip \
--enable-v4l \
--enable-audio-oss \
sed 's!PREFIX =.*!PREFIX = ${prefix}!;/INCLUDEPATH += $${PREFIX}\/include/d' < settings.pro > settings.pro.new
mv settings.pro.new settings.pro
+ for pro in ${S}/libs/*pro ${S}/libs/*/*pro; do
+ sed -i -e s:opengl::g $pro
+ done
+
}
python populate_packages_prepend () {