diff options
author | Max Kalika <max@gentoo.org> | 2004-02-06 14:30:32 +0000 |
---|---|---|
committer | Max Kalika <max@gentoo.org> | 2004-02-06 14:30:32 +0000 |
commit | df6a7b02baf686dcdcefd5d07fbcb44caebbb8ef (patch) | |
tree | 305007d0fbc7a44c3ba8efeb830d03ed3c3a9c04 /media-tv | |
parent | Re-enable DVB support. Add DirectFB, artsc, and cle266 (via hardware MPEG dec... (diff) | |
download | gentoo-2-df6a7b02baf686dcdcefd5d07fbcb44caebbb8ef.tar.gz gentoo-2-df6a7b02baf686dcdcefd5d07fbcb44caebbb8ef.tar.bz2 gentoo-2-df6a7b02baf686dcdcefd5d07fbcb44caebbb8ef.zip |
Add DirectFB, artsc, and cle266 (via hardware MPEG decoder) support.
Diffstat (limited to 'media-tv')
-rw-r--r-- | media-tv/mythfrontend/ChangeLog | 10 | ||||
-rw-r--r-- | media-tv/mythfrontend/files/digest-mythfrontend-0.14-r1 (renamed from media-tv/mythfrontend/files/digest-mythfrontend-0.14) | 0 | ||||
-rw-r--r-- | media-tv/mythfrontend/mythfrontend-0.14-r1.ebuild | 126 | ||||
-rw-r--r-- | media-tv/mythfrontend/mythfrontend-0.14.ebuild | 100 |
4 files changed, 134 insertions, 102 deletions
diff --git a/media-tv/mythfrontend/ChangeLog b/media-tv/mythfrontend/ChangeLog index 80766c29f610..46533cc79647 100644 --- a/media-tv/mythfrontend/ChangeLog +++ b/media-tv/mythfrontend/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-tv/mythfrontend -# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythfrontend/ChangeLog,v 1.10 2004/02/02 17:58:54 aliz Exp $ +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythfrontend/ChangeLog,v 1.11 2004/02/06 14:30:32 max Exp $ + +*mythfrontend-0.14-r1 (06 Feb 2004) + + 06 Feb 2004; Max Kalika <max@gentoo.org> mythfrontend-0.14-r1.ebuild, + mythfrontend-0.14.ebuild: + Add DirectFB, artsc, and cle266 (via hardware MPEG decoder) support. *mythfrontend-0.14 (02 Feb 2004) diff --git a/media-tv/mythfrontend/files/digest-mythfrontend-0.14 b/media-tv/mythfrontend/files/digest-mythfrontend-0.14-r1 index 0d9553b02a81..0d9553b02a81 100644 --- a/media-tv/mythfrontend/files/digest-mythfrontend-0.14 +++ b/media-tv/mythfrontend/files/digest-mythfrontend-0.14-r1 diff --git a/media-tv/mythfrontend/mythfrontend-0.14-r1.ebuild b/media-tv/mythfrontend/mythfrontend-0.14-r1.ebuild new file mode 100644 index 000000000000..8f2d50e9ca35 --- /dev/null +++ b/media-tv/mythfrontend/mythfrontend-0.14-r1.ebuild @@ -0,0 +1,126 @@ +# 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.14-r1.ebuild,v 1.1 2004/02/06 14:30:32 max Exp $ + +inherit flag-o-matic + +DESCRIPTION="Homebrew PVR project frontend." +HOMEPAGE="http://www.mythtv.org/" +SRC_URI="http://www.mythtv.org/mc/mythtv-${PV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="alsa arts dvb directfb lcd lirc nvidia cle266" + +DEPEND="virtual/x11 + >=x11-libs/qt-3.1 + >=media-sound/lame-3.93.1 + >=media-libs/freetype-2.0 + >=sys-apps/sed-4 + alsa? ( media-libs/alsa-lib ) + arts? ( kde-base/arts ) + directfb? ( dev-libs/DirectFB ) + dvb? ( media-libs/libdvb ) + lcd? ( app-misc/lcdproc ) + lirc? ( app-misc/lirc ) + nvidia? ( media-video/nvidia-glx ) + cle266? ( media-libs/libddmpeg )" + +RDEPEND="${DEPEND} + !media-tv/mythtv" + +S="${WORKDIR}/mythtv-${PV}" + +pkg_setup() { + local qt_use="$(</var/db/pkg/`best_version x11-libs/qt`/USE)" + if [ ! "`has mysql ${qt_use}`" ] ; then + eerror "Qt is missing MySQL support. Please add" + eerror "'mysql' to your USE flags, and re-emerge Qt." + die "Qt needs mysql support" + fi + + return 0 +} + +src_unpack() { + unpack ${A} && cd ${S} + + for i in `grep -lr "usr/local" "${S}"` ; do + sed -e "s:usr/local:usr:g" -i "${i}" || die "sed failed" + done +} + +src_compile() { + local cpu="`get-flag march || get-flag mcpu`" + if [ "${cpu}" ] ; then + sed -e "s:pentiumpro:${cpu}:g" -i "settings.pro" || die "sed failed" + fi + + if [ "`use alsa`" ] ; then + sed -e 's:#CONFIG += using_alsa:CONFIG += using_alsa:' \ + -e 's:#ALSA_LIBS = -lasound:ALSA_LIBS = -lasound:' \ + -i 'settings.pro' || die "enable alsa sed failed" + fi + if [ "`use arts`" ] ; then + sed -e 's:artsc/artsc.h:artsc.h:' \ + -i "libs/libmyth/audiooutputarts.h" || die "sed failed" + sed -e 's:#CONFIG += using_arts:CONFIG += using_arts:' \ + -e 's:#ARTS_LIBS = .*:ARTS_LIBS = `artsc-config --libs`:' \ + -e 's:#EXTRA_LIBS += -L/opt/.*:EXTRA_LIBS += `artsc-config --libs`:' \ + -e 's:#INCLUDEPATH += /opt/.*:QMAKE_CXXFLAGS += `artsc-config --cflags`:' \ + -i 'settings.pro' || die "enable arts sed failed" + fi + if [ "`use directfb`" ] ; then + sed -e 's:#CONFIG += using_directfb:CONFIG += using_directfb:' \ + -e 's:#EXTRA_LIBS += `directfb:EXTRA_LIBS += `directfb:' \ + -e 's:#QMAKE_CXXFLAGS += `directfb:QMAKE_CXXFLAGS += `directfb:' \ + -i 'settings.pro' || die "enable arts sed failed" + fi + if [ "`use dvb`" ] ; then + sed -e 's:#CONFIG += using_dvb:CONFIG += using_dvb:' \ + -e 's:#DEFINES += USING_DVB:DEFINES += USING_DVB:' \ + -e 's:#INCLUDEPATH += /usr/src/.*:INCLUDEPATH += /usr/include:' \ + -i 'settings.pro' || die "enable dvb sed failed" + fi + if [ "`use lcd`" ] ; then + sed -e 's:#DEFINES += LCD_DEVICE:DEFINES += LCD_DEVICE:' \ + -i 'settings.pro' || die "enable lcd sed failed" + fi + if [ "`use lirc`" ] ; then + sed -e 's:#CONFIG += using_lirc:CONFIG += using_lirc:' \ + -e 's:#LIRC_LIBS = -llirc_client:LIRC_LIBS = -llirc_client:' \ + -i 'settings.pro' || die "enable lirc sed failed" + fi + if [ "`use nvidia`" ] ; then + sed -e 's:#CONFIG += using_xvmc:CONFIG += using_xvmc:' \ + -e 's:#DEFINES += USING_XVMC:DEFINES += USING_XVMC:' \ + -e 's:#EXTRA_LIBS += -lXvMCNVIDIA:EXTRA_LIBS += -lXvMCNVIDIA:' \ + -i 'settings.pro' || die "enable xvmc sed failed" + fi + if [ "`use cle266`" ] ; then + sed -e 's:#CONFIG += using_viahwslice:CONFIG += using_viahwslice:' \ + -e 's:#DEFINES += USING_VIASLICE:DEFINES += USING_VIASLICE:' \ + -e 's:#EXTRA_LIBS += -lddmpeg:EXTRA_LIBS += -lddmpeg:' \ + -i 'settings.pro' || die "enable lirc sed failed" + fi + + qmake -o "Makefile" "mythtv.pro" + + econf + emake -j1 || die "compile problem" +} + +src_install() { + einstall INSTALL_ROOT="${D}" + + dodir /etc/mythtv + mv "${D}/usr/share/mythtv/mysql.txt" "${D}/etc/mythtv" + dosym /etc/mythtv/mysql.txt /usr/share/mythtv/mysql.txt + + rm -rf "${D}"/usr/bin/myth{backend,commflag,filldatabase,transcode} \ + "${D}/usr/share/mythtv/setup.xml" + + dodoc AUTHORS COPYING FAQ README UPGRADING keys.txt docs/*.{txt,pdf} + dohtml docs/*.html +} diff --git a/media-tv/mythfrontend/mythfrontend-0.14.ebuild b/media-tv/mythfrontend/mythfrontend-0.14.ebuild deleted file mode 100644 index 1dbfb6006167..000000000000 --- a/media-tv/mythfrontend/mythfrontend-0.14.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# 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.14.ebuild,v 1.1 2004/02/02 17:58:54 aliz Exp $ - -inherit flag-o-matic - -DESCRIPTION="Homebrew PVR project frontend." -HOMEPAGE="http://www.mythtv.org/" -SRC_URI="http://www.mythtv.org/mc/mythtv-${PV}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~x86" -IUSE="alsa lcd lirc nvidia" - -DEPEND="virtual/x11 - >=x11-libs/qt-3.1 - >=media-sound/lame-3.93.1 - >=media-libs/freetype-2.0 - >=sys-apps/sed-4 - alsa? ( media-libs/alsa-lib ) - lcd? ( app-misc/lcdproc ) - lirc? ( app-misc/lirc ) - nvidia? ( media-video/nvidia-glx )" - -RDEPEND="${DEPEND} - !media-tv/mythtv" - -S="${WORKDIR}/mythtv-${PV}" - -pkg_setup() { - local qt_use="$(</var/db/pkg/`best_version x11-libs/qt`/USE)" - if [ ! "`has mysql ${qt_use}`" ] ; then - eerror "Qt is missing MySQL support. Please add" - eerror "'mysql' to your USE flags, and re-emerge Qt." - die "Qt needs mysql support" - fi - - return 0 -} - -src_unpack() { - unpack ${A} - - for i in `grep -lr "usr/local" "${S}"` ; do - sed -e "s:usr/local:usr:g" -i "${i}" || die "sed failed" - done -} - -src_compile() { - local cpu="`get-flag march || get-flag mcpu`" - if [ "${cpu}" ] ; then - sed -e "s:pentiumpro:${cpu}:g" -i "settings.pro" || die "sed failed" - fi - - if [ "`use alsa`" ] ; then - sed -e "s:#CONFIG += using_alsa:CONFIG += using_alsa:" \ - -e "s:#ALSA_LIBS = -lasound:ALSA_LIBS = -lasound:" \ - -i "settings.pro" || die "enable alsa sed failed" - fi - if [ "`use lcd`" ] ; then - sed -e "s:#DEFINES += LCD_DEVICE:DEFINES += LCD_DEVICE:" \ - -i "settings.pro" || die "enable lcd sed failed" - fi - if [ "`use lirc`" ] ; then - sed -e "s:#CONFIG += using_lirc:CONFIG += using_lirc:" \ - -e "s:#LIRC_LIBS = -llirc_client:LIRC_LIBS = -llirc_client:" \ - -i "settings.pro" || die "enable lirc sed failed" - fi - if [ "`use nvidia`" ] ; then - sed -e "s:#CONFIG += using_xvmc:CONFIG += using_xvmc:" \ - -e "s:#EXTRA_LIBS += -lXvMCNVIDIA:EXTRA_LIBS += -lXvMCNVIDIA:" \ - -i "settings.pro" || die "enable xvmc sed failed" - fi - # Needs a VIA supported kernel driver. - #if [ "`use via`" ] ; then - # sed -e "s:#CONFIG += using_via:CONFIG += using_via:" - # -e "s:#EXTRA_LIBS += -lddmpeg:EXTRA_LIBS += -lddmpeg:" - # -i "settings.pro" || die "enable lirc sed failed" - #fi - - qmake -o "Makefile" "mythtv.pro" - - econf - make || die "compile problem" -} - -src_install() { - einstall INSTALL_ROOT="${D}" - - dodir /etc/mythtv - mv "${D}/usr/share/mythtv/mysql.txt" "${D}/etc/mythtv" - dosym /etc/mythtv/mysql.txt /usr/share/mythtv/mysql.txt - - rm -rf "${D}"/usr/bin/myth{backend,commflag,filldatabase,transcode} \ - "${D}/usr/share/mythtv/setup.xml" - - dodoc AUTHORS COPYING FAQ README UPGRADING keys.txt docs/*.{txt,pdf} - dohtml docs/*.html -} |