From 5993458b3cd9ee1a9349ede4ff93b7643064c21a Mon Sep 17 00:00:00 2001 From: fake Date: Sat, 18 Sep 2004 19:36:03 +0000 Subject: [PATCH] fake: add package 'mythtv' [2004091409442508820] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@4310 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/fake/mythtv/gcc34.patch | 10 ++++++ package/fake/mythtv/mythtv.conf | 50 +++++++++++++++++++++++++++ package/fake/mythtv/mythtv.desc | 48 +++++++++++++++++++++++++ package/fake/mythtv/no-ldconfig.patch | 10 ++++++ 4 files changed, 118 insertions(+) create mode 100644 package/fake/mythtv/gcc34.patch create mode 100644 package/fake/mythtv/mythtv.conf create mode 100644 package/fake/mythtv/mythtv.desc create mode 100644 package/fake/mythtv/no-ldconfig.patch diff --git a/package/fake/mythtv/gcc34.patch b/package/fake/mythtv/gcc34.patch new file mode 100644 index 000000000..6f9472146 --- /dev/null +++ b/package/fake/mythtv/gcc34.patch @@ -0,0 +1,10 @@ +--- ./libs/libmythtv/dvbdiseqc.cpp.orig 2004-09-14 08:25:11.763437808 +0200 ++++ ./libs/libmythtv/dvbdiseqc.cpp 2004-09-14 08:25:26.146251288 +0200 +@@ -30,6 +30,7 @@ + */ + + #include ++#include + #include "pthread.h" + #include "qsqldatabase.h" + diff --git a/package/fake/mythtv/mythtv.conf b/package/fake/mythtv/mythtv.conf new file mode 100644 index 000000000..a094c3a21 --- /dev/null +++ b/package/fake/mythtv/mythtv.conf @@ -0,0 +1,50 @@ + +if [ -z "$ROCKCFG_PKG_MYTHTV_PREFIX" ] ; then + prefix=opt/mythtv +else + prefix=$ROCKCFG_PKG_MYTHTV_PREFIX +fi + +mythtv_premake() { + + sed -i -e "s,^PREFIX = /usr/local\$,PREFIX = $root/$prefix," settings.pro + + # enable dvb support if we have some includes to feed to mythtv + for dvbdir in $root/usr/include $root/usr/src/linux*/include ; do + if [ -f $dvbdir/linux/dvb/frontend.h ] ; then + echo "CONFIG += using_dvb" >> settings.pro + echo "DEFINES += USING_DVB" >> settings.pro + echo "INCLUDEPATH += $dvbdir" >> settings.pro + break + fi + done + + if pkginstalled alsa ; then + echo "CONFIG += using_alsa" >> settings.pro + echo "ALSA_LIBS = -lasound" >> settings.pro + fi + + if pkginstalled lirc ; then + echo "CONFIG += using_lirc" >> settings.pro + echo "LIRC_LIBS = -llirc_client" >> settings.pro + fi + + # nvidia's XvMC is the only supported. we will never see this in a build-target, + # but maybe in an emerge-package of someone who read this - like you and me ;) + if [ ! -z "`ls $root/usr/X11R6/lib/libXvMCNVIDIA.so* 2>/dev/null`" ] ; then + echo "CONFIG += using_xvmc" >> settings.pro + echo "DEFINES += USING_XVMC" >> settings.pro + echo "EXTRA_LIBS += -lXvMCNVIDIA -lXvMC" >> settings.pro + fi + + qmake mythtv.pro +} + +mythtv_postmake() { + cp setup/setup $root/$prefix/bin/mythsetup + cp -r configfiles $docdir/examples +} + +hook_add premake 1 mythtv_premake +hook_add postmake 5 mythtv_postmake + diff --git a/package/fake/mythtv/mythtv.desc b/package/fake/mythtv/mythtv.desc new file mode 100644 index 000000000..d3091549b --- /dev/null +++ b/package/fake/mythtv/mythtv.desc @@ -0,0 +1,48 @@ +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/fake/mythtv/mythtv.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] a feature-rich homebrew PVR project + +[T] MythTV is a suite of programs that allow you to build the mythical home +[T] media convergence box on your own using Open Source software and operating +[T] systems. It Features: +[T] - time shifting on live-TV +[T] - support for multiple video capture cards +[T] - support for multiple servers, each with multiple capture cards in them +[T] - supports multiple clients ("frontends") +[T] - works with analog, MPEG-2, MJPEG, DVB or HDTV capture devices +[T] - Program Guide Data via DataDirect or XMLTV + +[U] http://www.mythtv.org + +[A] Isaac Richards +[M] fake + +[C] extra/multimedia + +[L] GPL +[S] Stable +[V] 0.16 +[P] X -?---5---9 128.000 + +[D] 2139657 mythtv-0.16.tar.bz2 http://www.mythtv.org/mc/ + diff --git a/package/fake/mythtv/no-ldconfig.patch b/package/fake/mythtv/no-ldconfig.patch new file mode 100644 index 000000000..298df8e8c --- /dev/null +++ b/package/fake/mythtv/no-ldconfig.patch @@ -0,0 +1,10 @@ +--- ./programs/mythfrontend/mythfrontend.pro.orig 2004-09-14 09:10:44.525994752 +0200 ++++ ./programs/mythfrontend/mythfrontend.pro 2004-09-14 09:11:08.855296136 +0200 +@@ -20,7 +20,6 @@ + setting.files += recpriorities_settings.xml tv_search.xml tv_lists.xml + setting.files += library.xml manage_recordings.xml optical_menu.xml tvmenu.xml + setting.files += tv_settings.xml +-setting.extra = -ldconfig + + INSTALLS += setting +