diff options
author | Daniel Ahlberg <aliz@gentoo.org> | 2004-06-02 21:45:18 +0000 |
---|---|---|
committer | Daniel Ahlberg <aliz@gentoo.org> | 2004-06-02 21:45:18 +0000 |
commit | 456713480d467de2309fbc720ac5524454a752be (patch) | |
tree | 431bfc24d484d4a7d1605ab374ffcf3d76092690 /media-tv | |
parent | ~amd64 (diff) | |
download | historical-456713480d467de2309fbc720ac5524454a752be.tar.gz historical-456713480d467de2309fbc720ac5524454a752be.tar.bz2 historical-456713480d467de2309fbc720ac5524454a752be.zip |
Apply fixes from #52722 and #52154.
Diffstat (limited to 'media-tv')
-rw-r--r-- | media-tv/mythfrontend/ChangeLog | 6 | ||||
-rw-r--r-- | media-tv/mythfrontend/Manifest | 5 | ||||
-rw-r--r-- | media-tv/mythfrontend/files/mythtv-0.15-directfb.patch | 19 | ||||
-rw-r--r-- | media-tv/mythfrontend/mythfrontend-0.15.1.ebuild | 20 | ||||
-rw-r--r-- | media-tv/mythtv/ChangeLog | 7 | ||||
-rw-r--r-- | media-tv/mythtv/files/mythtv-0.15-directfb.patch | 19 | ||||
-rw-r--r-- | media-tv/mythtv/mythtv-0.15.1.ebuild | 25 |
7 files changed, 89 insertions, 12 deletions
diff --git a/media-tv/mythfrontend/ChangeLog b/media-tv/mythfrontend/ChangeLog index 625067ee77a1..a0ff869a437e 100644 --- a/media-tv/mythfrontend/ChangeLog +++ b/media-tv/mythfrontend/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-tv/mythfrontend # Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythfrontend/ChangeLog,v 1.15 2004/06/01 17:25:48 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythfrontend/ChangeLog,v 1.16 2004/06/02 21:45:18 aliz Exp $ + + 02 Jun 2004; Daniel Ahlberg <aliz@gentoo.org> mythfrontend-0.15.1.ebuild: + + Added check for OpenGL implementation, closing #52722. + + Added directfb patch by Scott Alfer <gentoo@salfter.dyndns.org> from #52154. *mythfrontend-0.15.1 (01 Jun 2004) diff --git a/media-tv/mythfrontend/Manifest b/media-tv/mythfrontend/Manifest index 06107e787eb1..cb898b796bb7 100644 --- a/media-tv/mythfrontend/Manifest +++ b/media-tv/mythfrontend/Manifest @@ -1,8 +1,9 @@ -MD5 e538bcc410d1e9c56b45a57fe758f75a mythfrontend-0.15.1.ebuild 4533 +MD5 efe9c5af8ffc10b47374d215a9c9cb2f mythfrontend-0.15.1.ebuild 5182 MD5 0d74cffbfcc4c692b779d617d25b2324 mythfrontend-0.14-r1.ebuild 4301 MD5 70611b9598602260cb0feb9616d3472d mythfrontend-0.13.ebuild 2835 -MD5 48efda1b68a1aff285a093705bfda4b2 ChangeLog 2441 +MD5 adcca85eb74d244ce8a3922f61035ea0 ChangeLog 2658 MD5 20e2255501865de5b568424821abf69d metadata.xml 161 MD5 788cdcff1808794391bf5ef2e157b5fb files/digest-mythfrontend-0.15.1 67 +MD5 f34c79d00b235a08f18cf9f2107d6390 files/mythtv-0.15-directfb.patch 1185 MD5 a01439b4ddf480862e31867fc4689698 files/digest-mythfrontend-0.13 65 MD5 24ab1e90e64fb0be4704e74b633e96b1 files/digest-mythfrontend-0.14-r1 65 diff --git a/media-tv/mythfrontend/files/mythtv-0.15-directfb.patch b/media-tv/mythfrontend/files/mythtv-0.15-directfb.patch new file mode 100644 index 000000000000..7f72c06b111a --- /dev/null +++ b/media-tv/mythfrontend/files/mythtv-0.15-directfb.patch @@ -0,0 +1,19 @@ +*** mythtv-0.15/libs/libmythtv/videoout_directfb.cpp~ Wed May 26 22:50:27 2004 +--- mythtv-0.15/libs/libmythtv/videoout_directfb.cpp Wed May 26 22:50:27 2004 +*************** +*** 337,343 **** + desc.flags = DSDESC_CAPS; + desc.caps = DSCAPS_PRIMARY; + if(data->cardCapabilities.acceleration_mask & DFXL_BLIT) +! desc.caps = (DFBSurfaceCapabilities)(desc.caps | DSCAPS_DOUBLE); + DFBCHECKFAIL(data->dfb->CreateSurface(data->dfb, &desc, &(data->primarySurface)), false); + DFBCHECKFAIL(data->primarySurface->Clear(data->primarySurface, 0, 0, 0, 0xff), false); + DFBCHECKFAIL(data->primarySurface->Flip(data->primarySurface, 0, DSFLIP_ONSYNC), false); +--- 337,343 ---- + desc.flags = DSDESC_CAPS; + desc.caps = DSCAPS_PRIMARY; + if(data->cardCapabilities.acceleration_mask & DFXL_BLIT) +! desc.caps = (DFBSurfaceCapabilities)(desc.caps | DSCAPS_FLIPPING); + DFBCHECKFAIL(data->dfb->CreateSurface(data->dfb, &desc, &(data->primarySurface)), false); + DFBCHECKFAIL(data->primarySurface->Clear(data->primarySurface, 0, 0, 0, 0xff), false); + DFBCHECKFAIL(data->primarySurface->Flip(data->primarySurface, 0, DSFLIP_ONSYNC), false); diff --git a/media-tv/mythfrontend/mythfrontend-0.15.1.ebuild b/media-tv/mythfrontend/mythfrontend-0.15.1.ebuild index f30fbad1908a..9776d81e44b5 100644 --- a/media-tv/mythfrontend/mythfrontend-0.15.1.ebuild +++ b/media-tv/mythfrontend/mythfrontend-0.15.1.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythfrontend/mythfrontend-0.15.1.ebuild,v 1.1 2004/06/01 17:25:48 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythfrontend/mythfrontend-0.15.1.ebuild,v 1.2 2004/06/02 21:45:18 aliz Exp $ -inherit flag-o-matic +inherit flag-o-matic eutils DESCRIPTION="Homebrew PVR project frontend." HOMEPAGE="http://www.mythtv.org/" @@ -25,7 +25,8 @@ DEPEND="virtual/x11 lcd? ( app-misc/lcdproc ) lirc? ( app-misc/lirc ) nvidia? ( media-video/nvidia-glx ) - cle266? ( media-libs/libddmpeg )" + cle266? ( media-libs/libddmpeg ) + opengl? ( >=x11-base/opengl-update-1.7 )" RDEPEND="${DEPEND} !media-tv/mythtv" @@ -40,6 +41,17 @@ pkg_setup() { die "Qt needs MySQL support" fi + if [ `use opengl` ] ; then + local gl_implementation="$( opengl-update --get-implementation )" + if [ "$gl_implementation" == "xfree" ] || [ "$gl_implementation" == "xorg-x11" ] ; then + return 0 + else + eerror "OpenGL implementation must be set to either xfree or xorg-x11 to allow compilation." + eerror "to change opengl implemantation use opengl-update <your xserver>." + eerror "After mythfrontend has been compiled you can switch back to the preferred implementation.." + die "Incompatible OpenGL implementation." + fi + fi return 0 } @@ -49,6 +61,8 @@ src_unpack() { for i in `grep -lr "usr/local" "${S}"` ; do sed -e "s:usr/local:usr:g" -i "${i}" || die "sed failed" done + + use directfb && epatch ${FILESDIR}/mythtv-0.15-directfb.patch } src_compile() { diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog index 09b5766f1063..b2d22f88c163 100644 --- a/media-tv/mythtv/ChangeLog +++ b/media-tv/mythtv/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-tv/mythtv # Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.21 2004/06/01 17:08:24 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.22 2004/06/02 21:45:17 aliz Exp $ + + 02 Jun 2004; Daniel Ahlberg <aliz@gentoo.org> mythtv-0.15.1.ebuild: + + Added check for OpenGL implementation, closing #52722. + + Added directfb patch by Scott Alfer <gentoo@salfter.dyndns.org> from #52154. + + Depend on either wget (for DataDirect) or xmltv. *mythtv-0.15.1 (01 Jun 2004) diff --git a/media-tv/mythtv/files/mythtv-0.15-directfb.patch b/media-tv/mythtv/files/mythtv-0.15-directfb.patch new file mode 100644 index 000000000000..7f72c06b111a --- /dev/null +++ b/media-tv/mythtv/files/mythtv-0.15-directfb.patch @@ -0,0 +1,19 @@ +*** mythtv-0.15/libs/libmythtv/videoout_directfb.cpp~ Wed May 26 22:50:27 2004 +--- mythtv-0.15/libs/libmythtv/videoout_directfb.cpp Wed May 26 22:50:27 2004 +*************** +*** 337,343 **** + desc.flags = DSDESC_CAPS; + desc.caps = DSCAPS_PRIMARY; + if(data->cardCapabilities.acceleration_mask & DFXL_BLIT) +! desc.caps = (DFBSurfaceCapabilities)(desc.caps | DSCAPS_DOUBLE); + DFBCHECKFAIL(data->dfb->CreateSurface(data->dfb, &desc, &(data->primarySurface)), false); + DFBCHECKFAIL(data->primarySurface->Clear(data->primarySurface, 0, 0, 0, 0xff), false); + DFBCHECKFAIL(data->primarySurface->Flip(data->primarySurface, 0, DSFLIP_ONSYNC), false); +--- 337,343 ---- + desc.flags = DSDESC_CAPS; + desc.caps = DSCAPS_PRIMARY; + if(data->cardCapabilities.acceleration_mask & DFXL_BLIT) +! desc.caps = (DFBSurfaceCapabilities)(desc.caps | DSCAPS_FLIPPING); + DFBCHECKFAIL(data->dfb->CreateSurface(data->dfb, &desc, &(data->primarySurface)), false); + DFBCHECKFAIL(data->primarySurface->Clear(data->primarySurface, 0, 0, 0, 0xff), false); + DFBCHECKFAIL(data->primarySurface->Flip(data->primarySurface, 0, DSFLIP_ONSYNC), false); diff --git a/media-tv/mythtv/mythtv-0.15.1.ebuild b/media-tv/mythtv/mythtv-0.15.1.ebuild index 517834f0e35d..710689359085 100644 --- a/media-tv/mythtv/mythtv-0.15.1.ebuild +++ b/media-tv/mythtv/mythtv-0.15.1.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.15.1.ebuild,v 1.1 2004/06/01 17:08:24 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.15.1.ebuild,v 1.2 2004/06/02 21:45:17 aliz Exp $ -inherit flag-o-matic +inherit flag-o-matic eutils DESCRIPTION="Homebrew PVR project." HOMEPAGE="http://www.mythtv.org/" @@ -17,7 +17,6 @@ DEPEND=">=media-libs/freetype-2.0 >=media-sound/lame-3.93.1 >=x11-libs/qt-3.1 dev-db/mysql - >=media-tv/xmltv-0.5.34 alsa? ( >=media-libs/alsa-lib-0.9 ) >=sys-apps/sed-4 arts? ( kde-base/arts ) @@ -26,7 +25,9 @@ DEPEND=">=media-libs/freetype-2.0 lcd? ( app-misc/lcdproc ) lirc? ( app-misc/lirc ) nvidia? ( media-video/nvidia-glx ) - cle266? ( media-libs/libddmpeg )" + cle266? ( media-libs/libddmpeg ) + opengl? ( >=x11-base/opengl-update-1.7 ) + || ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.34 )" RDEPEND="${DEPEND} !media-tv/mythfrontend" @@ -38,7 +39,17 @@ pkg_setup() { eerror "'mysql' to your USE flags, and re-emerge Qt." die "Qt needs MySQL support" fi - + if [ `use opengl` ] ; then + local gl_implementation="$( opengl-update --get-implementation )" + if [ "$gl_implementation" == "xfree" ] || [ "$gl_implementation" == "xorg-x11" ] ; then + return 0 + else + eerror "OpenGL implementation must be set to either xfree or xorg-x11 to allow compilation." + eerror "to change opengl implemantation use opengl-update <your xserver>." + eerror "After mythtv has been merged you can switch back to the preferred implementation.." + die "Incompatible OpenGL implementation." + fi + fi return 0 } @@ -48,6 +59,8 @@ src_unpack() { for i in `grep -lr "usr/local" "${S}"` ; do sed -e "s:usr/local:usr:g" -i "${i}" || die "sed failed" done + + use directfb && epatch ${FILESDIR}/mythtv-0.15-directfb.patch } src_compile() { @@ -172,4 +185,6 @@ pkg_postinst() { einfo " /usr/share/doc/${PF}/README.gz" einfo " /usr/share/doc/${PF}/UPGRADING.gz" echo + einfo "You need to emerge xmltv manually since it is no longer needed" + einfo "if the internal DataDirect implementation is to be used." } |