diff options
author | Jörg Bornkessel <hd_brummy@gentoo.org> | 2006-09-09 21:26:30 +0000 |
---|---|---|
committer | Jörg Bornkessel <hd_brummy@gentoo.org> | 2006-09-09 21:26:30 +0000 |
commit | b741990187b71e16b0bdfc65ee8d392d465f48f3 (patch) | |
tree | 67d58f840d916a8329c3fd1fbde3ba61e8cb9797 /media-plugins/vdr-graphlcd | |
parent | Mark 2.1.1 stable on ia64. #146881 (diff) | |
download | gentoo-2-b741990187b71e16b0bdfc65ee8d392d465f48f3.tar.gz gentoo-2-b741990187b71e16b0bdfc65ee8d392d465f48f3.tar.bz2 gentoo-2-b741990187b71e16b0bdfc65ee8d392d465f48f3.zip |
-r1 include patch to work with vdr-span
(Portage version: 2.1-r2)
Diffstat (limited to 'media-plugins/vdr-graphlcd')
5 files changed, 511 insertions, 1 deletions
diff --git a/media-plugins/vdr-graphlcd/ChangeLog b/media-plugins/vdr-graphlcd/ChangeLog index 478d897b1d9b..de2e35e91f4b 100644 --- a/media-plugins/vdr-graphlcd/ChangeLog +++ b/media-plugins/vdr-graphlcd/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-plugins/vdr-graphlcd # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-graphlcd/ChangeLog,v 1.7 2006/07/24 09:29:48 hd_brummy Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-graphlcd/ChangeLog,v 1.8 2006/09/09 21:26:29 hd_brummy Exp $ + +*vdr-graphlcd-0.1.3-r1 (09 Sep 2006) + + 09 Sep 2006; Joerg Bornkessel <hd_brummy@gentoo.org> + +files/0.1.3/graphlcd-0.1.3-span.diff, +vdr-graphlcd-0.1.3-r1.ebuild: + -r1 include patch to work with vdr-span 24 Jul 2006; Joerg Bornkessel <hd_brummy@gentoo.org> metadata.xml, vdr-graphlcd-0.1.3.ebuild: diff --git a/media-plugins/vdr-graphlcd/files/0.1.3/graphlcd-0.1.3-span.diff b/media-plugins/vdr-graphlcd/files/0.1.3/graphlcd-0.1.3-span.diff new file mode 100644 index 000000000000..7ce37e340ba0 --- /dev/null +++ b/media-plugins/vdr-graphlcd/files/0.1.3/graphlcd-0.1.3-span.diff @@ -0,0 +1,416 @@ +diff -Naur --exclude='.*' graphlcd-0.1.3.old/display.c graphlcd-0.1.3/display.c +--- graphlcd-0.1.3.old/display.c 2006-09-07 16:00:17.000000000 +0200 ++++ graphlcd-0.1.3/display.c 2006-09-07 13:04:51.000000000 +0200 +@@ -25,6 +25,7 @@ + + #include <vdr/tools.h> + #include <vdr/menu.h> ++#include <vdr/plugin.h> + + #include "compat.h" + +@@ -108,6 +109,8 @@ + nCurrentBrightness = -1; + LastTimeBrightness = 0; + bBrightnessActive = true; ++ ++ LastTimeSA.Set(0); + } + + cGraphLCDDisplay::~cGraphLCDDisplay() +@@ -374,15 +377,22 @@ + { + update = true; + } +- ++ ++ if ( LastTimeSA.TimedOut() ) ++ { ++ update = true; ++ LastTimeSA.Set(1000); ++ } ++ + // update Display every second or due to an update +- if (CurrTime != LastTime || update) ++ if (CurrTime != LastTime || update ) + { + // but only, if something has changed + if (replay.total / FRAMESPERSEC != replay.totalLast / FRAMESPERSEC || + replay.current / FRAMESPERSEC != replay.currentLast / FRAMESPERSEC || + CurrTime/60 != LastTime/60 || +- update) ++ update ++ ) + { + timerclear(&UpdateAt); + update = false; +@@ -1439,7 +1449,7 @@ + it->Draw(bitmap); + } + } +- ++ + // Draw Progressbar with current and total replay time + nTopY = bitmap->Height() - normalFont->TotalHeight() - FRAME_SPACE_Y - nProgressbarHeight - 2; + nMaxX = std::max(1, bitmap->Width() - 1 - 2 * FRAME_SPACE_X); +@@ -1456,6 +1466,8 @@ + FRAME_SPACE_X + nMaxX, + nTopY + nProgressbarHeight, + GLCD::clrBlack, false); ++ ++ DisplaySA(); + + if (1 < replay.total && 1 < replay.current) // Don't show full progressbar for endless streams + { +@@ -2023,4 +2035,140 @@ + mutex.Unlock(); + } + ++void cGraphLCDDisplay::DisplaySA() ++{ ++// Spectrum Analyzer visualization ++ if ( GraphLCDSetup.enableSpectrumAnalyzer ) ++ { ++ if (cPluginManager::CallFirstService(SPAN_GET_BAR_HEIGHTS_ID, NULL)) ++ { ++ Span_GetBarHeights_v1_0 GetBarHeights; ++ ++ int bandsSA = 20; ++ int falloffSA = 8; ++ int channelsSA = 1; ++ ++ unsigned int bar; ++ unsigned int *barHeights = new unsigned int[bandsSA]; ++ unsigned int *barHeightsLeftChannel = new unsigned int[bandsSA]; ++ unsigned int *barHeightsRightChannel = new unsigned int[bandsSA]; ++ unsigned int volumeLeftChannel; ++ unsigned int volumeRightChannel; ++ unsigned int volumeBothChannels; ++ unsigned int *barPeaksBothChannels = new unsigned int[bandsSA]; ++ unsigned int *barPeaksLeftChannel = new unsigned int[bandsSA]; ++ unsigned int *barPeaksRightChannel = new unsigned int[bandsSA]; ++ ++ GetBarHeights.bands = bandsSA; ++ GetBarHeights.barHeights = barHeights; ++ GetBarHeights.barHeightsLeftChannel = barHeightsLeftChannel; ++ GetBarHeights.barHeightsRightChannel = barHeightsRightChannel; ++ GetBarHeights.volumeLeftChannel = &volumeLeftChannel; ++ GetBarHeights.volumeRightChannel = &volumeRightChannel; ++ GetBarHeights.volumeBothChannels = &volumeBothChannels; ++ GetBarHeights.name = "graphlcd"; ++ GetBarHeights.falloff = falloffSA; ++ GetBarHeights.barPeaksBothChannels = barPeaksBothChannels; ++ GetBarHeights.barPeaksLeftChannel = barPeaksLeftChannel; ++ GetBarHeights.barPeaksRightChannel = barPeaksRightChannel; ++ ++ if ( cPluginManager::CallFirstService(SPAN_GET_BAR_HEIGHTS_ID, &GetBarHeights )) ++ { ++ int i; ++ int barWidth = 2; ++ int saStartX = FRAME_SPACE_X; ++ int saEndX = saStartX + barWidth*bandsSA*2 + bandsSA/4 - 1; ++ int saStartY = FRAME_SPACE_Y; ++ int saEndY = FRAME_SPACE_Y + bitmap->Height()/2 - 3; ++ ++ LastTimeSA.Set(100); ++ ++ if ( GraphLCDSetup.SAShowVolume ) ++ { ++ ++ saStartX = FRAME_SPACE_X + bitmap->Width()/2 - (barWidth*bandsSA*2 + bandsSA/4)/2 - 2; ++ saEndX = saStartX + barWidth*bandsSA*2 + bandsSA/4 - 1; ++ ++ // left volume ++ bitmap->DrawRectangle(FRAME_SPACE_X, ++ saStartY, ++ saStartX-1, ++ saEndY + 1, ++ GLCD::clrWhite, true); ++ ++ for ( i=0; (i<logo->Width()/2-2) && (i<3*(volumeLeftChannel*saStartX)/100); i++) ++ { ++ bitmap->DrawRectangle(saStartX - i - 2, ++ saStartY + saEndY/2 - i, ++ saStartX - i - 4, ++ saStartY + saEndY/2 + i, ++ GLCD::clrBlack, true); ++ } ++ ++ // right volume ++ bitmap->DrawRectangle(saEndX + 1, ++ saStartY, ++ bitmap->Width() - 1, ++ saEndY + 1, ++ GLCD::clrWhite, true); ++ ++ for ( i=0; (i<logo->Width()/2-2) && (i<3*(volumeRightChannel*saStartX)/100); i++) ++ { ++ bitmap->DrawRectangle(saEndX + 2 + i, ++ saStartY + saEndY/2 - i, ++ saEndX + i + 4, ++ saStartY + saEndY/2 + i, ++ GLCD::clrBlack, true); ++ } ++ } ++ // black background ++ bitmap->DrawRectangle(saStartX, ++ saStartY, ++ saEndX, ++ saEndY + 1, ++ GLCD::clrBlack, true); ++ ++ for ( i=0; i < bandsSA; i++ ) ++ { ++/* if ( channelsSA == 2 ) ++ { ++ bar = barHeightsLeftChannel[i]; ++ bar = barHeightsRightChannel[i]; ++ }*/ ++ if ( channelsSA == 1) ++ { ++ // the bar ++ bar = (barHeights[i]*(saEndY-saStartY))/100; ++ bitmap->DrawRectangle(saStartX + barWidth*2*(i)+ barWidth + 1, ++ saEndY, ++ saStartX + barWidth*2*(i) + barWidth+ barWidth + 1, ++ saEndY - bar, ++ GLCD::clrWhite, true); ++ ++ // the peak ++ bar = (barPeaksBothChannels[i]*(saEndY-saStartY))/100; ++ if ( bar > 0 ) ++ { ++ bitmap->DrawRectangle(saStartX + barWidth*2*(i)+ barWidth + 1, ++ saEndY - bar, ++ saStartX + barWidth*2*(i) + barWidth+ barWidth + 1, ++ saEndY - bar+1, ++ GLCD::clrWhite, true); ++ } ++ } ++ } ++ } ++ ++ delete [] barHeights; ++ delete [] barHeightsLeftChannel; ++ delete [] barHeightsRightChannel; ++ delete [] barPeaksBothChannels; ++ delete [] barPeaksLeftChannel; ++ delete [] barPeaksRightChannel; ++ } ++ } ++} ++ ++//############################################################################################# ++ + cGraphLCDDisplay Display; +diff -Naur --exclude='.*' graphlcd-0.1.3.old/display.h graphlcd-0.1.3/display.h +--- graphlcd-0.1.3.old/display.h 2006-09-07 16:00:17.000000000 +0200 ++++ graphlcd-0.1.3/display.h 2006-09-07 11:08:35.000000000 +0200 +@@ -44,6 +44,45 @@ + #include <vdr/thread.h> + #include <vdr/player.h> + ++#define SPAN_PROVIDER_CHECK_ID "Span-ProviderCheck-v1.0" ++#define SPAN_CLIENT_CHECK_ID "Span-ClientCheck-v1.0" ++#define SPAN_SET_PCM_DATA_ID "Span-SetPcmData-v1.0" ++#define SPAN_GET_BAR_HEIGHTS_ID "Span-GetBarHeights-v1.0" ++ ++//Span requests to collect possible providers / clients ++struct Span_Provider_Check_1_0 { ++ bool *isActive; ++ bool *isRunning; ++}; ++ ++struct Span_Client_Check_1_0 { ++ bool *isActive; ++ bool *isRunning; ++}; ++ ++// Span data ++struct Span_SetPcmData_1_0 { ++ unsigned int length; // the length of the PCM-data ++ int *data; // the PCM-Data as 32-bit int, however only the lower 16-bit are used ++ // and you have to take care to hand in such data! ++}; ++ ++struct Span_GetBarHeights_v1_0 { ++ unsigned int bands; // number of bands to compute ++ unsigned int *barHeights; // the heights of the bars of the two channels combined ++ unsigned int *barHeightsLeftChannel; // the heights of the bars of the left channel ++ unsigned int *barHeightsRightChannel; // the heights of the bars of the right channel ++ unsigned int *volumeLeftChannel; // the volume of the left channels ++ unsigned int *volumeRightChannel; // the volume of the right channels ++ unsigned int *volumeBothChannels; // the combined volume of the two channels ++ const char *name; // name of the plugin that wants to get the data ++ // (must be unique for each client!) ++ unsigned int falloff; // bar falloff value ++ unsigned int *barPeaksBothChannels; // bar peaks of the two channels combined ++ unsigned int *barPeaksLeftChannel; // bar peaks of the left channel ++ unsigned int *barPeaksRightChannel; // bar peaks of the right channel ++}; ++ + + #define LCDMAXCARDS 4 + static const int kMaxTabCount = 10; +@@ -118,6 +157,7 @@ + time_t LastTime; + time_t LastTimeCheckSym; + time_t LastTimeModSym; ++ cTimeMs LastTimeSA; + struct timeval CurrTimeval; + struct timeval UpdateAt; + +@@ -139,6 +179,7 @@ + void DisplayTextItem(); + void DisplayColorButtons(); + void DisplayVolume(); ++ void DisplaySA(); + + void UpdateIn(long usec); + bool CheckAndUpdateSymbols(); +diff -Naur --exclude='.*' graphlcd-0.1.3.old/i18n.c graphlcd-0.1.3/i18n.c +--- graphlcd-0.1.3.old/i18n.c 2006-09-07 16:00:17.000000000 +0200 ++++ graphlcd-0.1.3/i18n.c 2006-09-07 12:23:02.000000000 +0200 +@@ -966,5 +966,53 @@ + # endif + #endif + }, ++ { ++ "Show spectrum analyzer", ++ "Zeige Spectrum Analyzer", ++ "",// TODO Slovenski ++ "",// TODO Italiano ++ "",// TODO Nederlands ++ "",// TODO Português ++ "",// TODO Français ++ "",// TODO Norsk ++ "",// TODO Suomi ++ "",// TODO Polski ++ "",// TODO Español ++ "",// TODO Ellinika ++ "",// TODO Svenska ++ "",// TODO Românã ++ "",// TODO Magyar ++ "",// TODO Català ++#if VDRVERSNUM > 10302 ++ "",// TODO Russian ++# if VDRVERSNUM > 10307 ++ "",// TODO Croatian ++# endif ++#endif ++ }, ++ { ++ "Show SA volume", ++ "Zeige SA Lautstärke", ++ "",// TODO Slovenski ++ "",// TODO Italiano ++ "",// TODO Nederlands ++ "",// TODO Português ++ "",// TODO Français ++ "",// TODO Norsk ++ "",// TODO Suomi ++ "",// TODO Polski ++ "",// TODO Español ++ "",// TODO Ellinika ++ "",// TODO Svenska ++ "",// TODO Românã ++ "",// TODO Magyar ++ "",// TODO Català ++#if VDRVERSNUM > 10302 ++ "",// TODO Russian ++# if VDRVERSNUM > 10307 ++ "",// TODO Croatian ++# endif ++#endif ++ }, + { NULL } + }; +diff -Naur --exclude='.*' graphlcd-0.1.3.old/menu.c graphlcd-0.1.3/menu.c +--- graphlcd-0.1.3.old/menu.c 2006-09-07 16:00:17.000000000 +0200 ++++ graphlcd-0.1.3/menu.c 2006-09-07 12:21:58.000000000 +0200 +@@ -75,6 +75,8 @@ + Add(new cMenuEditIntItem(tr("Brightness on user activity"), &newGraphLCDSetup.BrightnessActive, 0, 100)); + Add(new cMenuEditIntItem(tr("Brightness on user inactivity"), &newGraphLCDSetup.BrightnessIdle, 0, 100)); + Add(new cMenuEditIntItem(tr("Brightness delay [s]"), &newGraphLCDSetup.BrightnessDelay, 0, 600)); ++ Add(new cMenuEditBoolItem(tr("Show spectrum analyzer"), &newGraphLCDSetup.enableSpectrumAnalyzer)); ++ Add(new cMenuEditBoolItem(tr("Show SA volume"), &newGraphLCDSetup.SAShowVolume)); + } + + void cGraphLCDMenuSetup::Store() +@@ -101,4 +103,6 @@ + SetupStore("BrightnessActive", GraphLCDSetup.BrightnessActive = newGraphLCDSetup.BrightnessActive); + SetupStore("BrightnessIdle", GraphLCDSetup.BrightnessIdle = newGraphLCDSetup.BrightnessIdle); + SetupStore("BrightnessDelay", GraphLCDSetup.BrightnessDelay = newGraphLCDSetup.BrightnessDelay); ++ SetupStore("enableSpectrumAnalyzer", GraphLCDSetup.enableSpectrumAnalyzer = newGraphLCDSetup.enableSpectrumAnalyzer); ++ SetupStore("SAShowVolume", GraphLCDSetup.SAShowVolume = newGraphLCDSetup.SAShowVolume); + } +diff -Naur --exclude='.*' graphlcd-0.1.3.old/plugin.c graphlcd-0.1.3/plugin.c +--- graphlcd-0.1.3.old/plugin.c 2006-09-07 16:00:17.000000000 +0200 ++++ graphlcd-0.1.3/plugin.c 2006-09-07 12:20:48.000000000 +0200 +@@ -67,6 +67,8 @@ + virtual cOsdObject * MainMenuAction(); + virtual cMenuSetupPage * SetupMenu(); + virtual bool SetupParse(const char * Name, const char * Value); ++ ++ virtual bool Service(const char *Id, void *Data); + }; + + cPluginGraphLCD::cPluginGraphLCD() +@@ -235,8 +237,24 @@ + else if (!strcasecmp(Name, "BrightnessActive")) GraphLCDSetup.BrightnessActive = atoi(Value); + else if (!strcasecmp(Name, "BrightnessIdle")) GraphLCDSetup.BrightnessIdle = atoi(Value); + else if (!strcasecmp(Name, "BrightnessDelay")) GraphLCDSetup.BrightnessDelay = atoi(Value); ++ else if (!strcasecmp(Name, "enableSpectrumAnalyzer")) GraphLCDSetup.enableSpectrumAnalyzer = atoi(Value); ++ else if (!strcasecmp(Name, "SAShowVolume")) GraphLCDSetup.SAShowVolume = atoi(Value); + else return false; + return true; + } + ++bool cPluginGraphLCD::Service(const char *Id, void *Data) ++{ ++ if (strcmp(Id, SPAN_CLIENT_CHECK_ID) == 0) ++ { ++ if ( GraphLCDSetup.enableSpectrumAnalyzer && (Data != NULL) ) ++ { ++ *((Span_Client_Check_1_0*)Data)->isActive = true; ++ } ++ return true; ++ } ++ ++ return false; ++} ++ + VDRPLUGINCREATOR(cPluginGraphLCD); // Don't touch this! +diff -Naur --exclude='.*' graphlcd-0.1.3.old/setup.c graphlcd-0.1.3/setup.c +--- graphlcd-0.1.3.old/setup.c 2006-09-07 16:00:17.000000000 +0200 ++++ graphlcd-0.1.3/setup.c 2006-09-07 12:19:22.000000000 +0200 +@@ -52,7 +52,9 @@ + ScrollTime(500), + BrightnessActive(100), + BrightnessIdle(100), +- BrightnessDelay(30) ++ BrightnessDelay(30), ++ enableSpectrumAnalyzer(1), ++ SAShowVolume(1) + { + } + +@@ -90,4 +92,6 @@ + BrightnessActive = source->BrightnessActive; + BrightnessIdle = source->BrightnessIdle; + BrightnessDelay = source->BrightnessDelay; ++ enableSpectrumAnalyzer = source->enableSpectrumAnalyzer; ++ SAShowVolume = source->SAShowVolume; + } +diff -Naur --exclude='.*' graphlcd-0.1.3.old/setup.h graphlcd-0.1.3/setup.h +--- graphlcd-0.1.3.old/setup.h 2006-09-07 16:00:17.000000000 +0200 ++++ graphlcd-0.1.3/setup.h 2006-09-07 12:20:11.000000000 +0200 +@@ -54,6 +54,8 @@ + int BrightnessActive; + int BrightnessIdle; + int BrightnessDelay; ++ int enableSpectrumAnalyzer; ++ int SAShowVolume; + + public: + cGraphLCDSetup(void); diff --git a/media-plugins/vdr-graphlcd/files/digest-vdr-graphlcd-0.1.3 b/media-plugins/vdr-graphlcd/files/digest-vdr-graphlcd-0.1.3 index cb0e79c87c1e..43e2d4af500b 100644 --- a/media-plugins/vdr-graphlcd/files/digest-vdr-graphlcd-0.1.3 +++ b/media-plugins/vdr-graphlcd/files/digest-vdr-graphlcd-0.1.3 @@ -1 +1,3 @@ MD5 c4f048e12e61540281682c59bcc28fb2 vdr-graphlcd-0.1.3.tgz 244387 +RMD160 6856258bc3938a4a817fc583f2624c499f595013 vdr-graphlcd-0.1.3.tgz 244387 +SHA256 70cac20084f5613b8f9a5bf08b10564c0e0ce890a87062d323e08739017c74ef vdr-graphlcd-0.1.3.tgz 244387 diff --git a/media-plugins/vdr-graphlcd/files/digest-vdr-graphlcd-0.1.3-r1 b/media-plugins/vdr-graphlcd/files/digest-vdr-graphlcd-0.1.3-r1 new file mode 100644 index 000000000000..43e2d4af500b --- /dev/null +++ b/media-plugins/vdr-graphlcd/files/digest-vdr-graphlcd-0.1.3-r1 @@ -0,0 +1,3 @@ +MD5 c4f048e12e61540281682c59bcc28fb2 vdr-graphlcd-0.1.3.tgz 244387 +RMD160 6856258bc3938a4a817fc583f2624c499f595013 vdr-graphlcd-0.1.3.tgz 244387 +SHA256 70cac20084f5613b8f9a5bf08b10564c0e0ce890a87062d323e08739017c74ef vdr-graphlcd-0.1.3.tgz 244387 diff --git a/media-plugins/vdr-graphlcd/vdr-graphlcd-0.1.3-r1.ebuild b/media-plugins/vdr-graphlcd/vdr-graphlcd-0.1.3-r1.ebuild new file mode 100644 index 000000000000..0f270170b0a6 --- /dev/null +++ b/media-plugins/vdr-graphlcd/vdr-graphlcd-0.1.3-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-graphlcd/vdr-graphlcd-0.1.3-r1.ebuild,v 1.1 2006/09/09 21:26:29 hd_brummy Exp $ + +inherit eutils vdr-plugin + +DESCRIPTION="VDR Graphical LCD Plugin" +HOMEPAGE="http://graphlcd.berlios.de/" +SRC_URI="http://download.berlios.de/graphlcd/${P}.tgz" + +KEYWORDS="~x86 ~amd64" + +SLOT="0" +LICENSE="GPL-2" +IUSE="truetype" + +DEPEND=">=media-video/vdr-1.2.6 + >=app-misc/graphlcd-base-${PV}" + +src_unpack() { + vdr-plugin_src_unpack + + epatch ${FILESDIR}/0.1.3/radiotext-lcr-service.diff + epatch ${FILESDIR}/0.1.3/graphlcd-0.1.3-span.diff + + sed -i "s:/usr/local:/usr:" Makefile +} + +src_install() { + vdr-plugin_src_install + + insopts -m0644 -ovdr -gvdr + + insinto /usr/share/vdr/${VDRPLUGIN}/logos + doins -r ${VDRPLUGIN}/logos/* + + insinto /usr/share/vdr/${VDRPLUGIN}/fonts + doins ${VDRPLUGIN}/fonts/*.fnt + + if use truetype; then + for font in /usr/share/fonts/corefonts/*.ttf; do + einfo ${font} + dosym ${font} /usr/share/vdr/graphlcd/fonts + done + fi + + insinto /etc/vdr/plugins/${VDRPLUGIN} + doins ${VDRPLUGIN}/logonames.alias.* + doins ${VDRPLUGIN}/fonts.conf.* + + dosym /usr/share/vdr/${VDRPLUGIN}/fonts /etc/vdr/plugins/${VDRPLUGIN}/fonts + dosym /usr/share/vdr/${VDRPLUGIN}/logos /etc/vdr/plugins/${VDRPLUGIN}/logos + dosym /etc/graphlcd.conf /etc/vdr/plugins/${VDRPLUGIN}/graphlcd.conf + + if has_version ">=media-video/vdr-1.3.2" ; then + dosym /etc/vdr/plugins/${VDRPLUGIN}/logonames.alias.1.3 /etc/vdr/plugins/${VDRPLUGIN}/logonames.alias + else + dosym /etc/vdr/plugins/${VDRPLUGIN}/logonames.alias.1.2 /etc/vdr/plugins/${VDRPLUGIN}/logonames.alias + fi +} + +pkg_preinst() { + + if [[ -e /etc/vdr/plugins/graphlcd/fonts ]] && [[ ! -L /etc/vdr/plugins/graphlcd/fonts ]] \ + || [[ -e /etc/vdr/plugins/graphlcd/logos ]] && [[ ! -L /etc/vdr/plugins/graphlcd/logos ]] ;then + + einfo "Remove wrong DIR in /etc/vdr/plugins/graphlcd from prior install" + einfo "Press CTRL+C to abbort" + epause + rmdir -R /etc/vdrplugins/graphlcd/{fonts,logos} + fi +} + +pkg_postinst() { + vdr-plugin_pkg_postinst + + einfo "Add additional options in /etc/conf.d/vdr.graphlcd" + einfo + einfo "Please copy or link one of the supplied fonts.conf.*" + einfo "files in /etc/vdr/plugins/graphlcd/ to" + einfo "/etc/vdr/plugins/graphlcd/fonts.conf" +} + |