diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-plugins/vdr-mp3ng | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-plugins/vdr-mp3ng')
11 files changed, 351 insertions, 0 deletions
diff --git a/media-plugins/vdr-mp3ng/Manifest b/media-plugins/vdr-mp3ng/Manifest new file mode 100644 index 000000000000..93398eb6e3d8 --- /dev/null +++ b/media-plugins/vdr-mp3ng/Manifest @@ -0,0 +1,3 @@ +DIST vdr-mp3ng-0.0.1_pre4-span-0.0.3.diff.tar.gz 6726 SHA256 f4f947f7fa38c261c39af0cffb30a69bb641884b9efd26f5d73742170c3a6628 SHA512 537b876cf5ecdfe34969a79ec556196e48b4de1a411d7b1a50ad95c5534d5027b0d1548fb42c02cccf922f0ef961b99b1d23863b2048f12e79e0beafcd7e571f WHIRLPOOL d5b7c035827e612ea58e6fa8eb41f378e435a88ba0f05bde1d51cc95606b260b400cfe8a36498f619f19e554dd0d441036f024da02d67cb8c1dfeffba558979f +DIST vdr-mp3ng-0.9.13-MKIV-pre3.tar.gz 128289 SHA256 c92b220b878c98001bc6293aaa72d3247368a4d8c785e883f8fb24c4e4a09f12 SHA512 56bd73ab66276ff49670e3e7195a50b1f6560a53e88662e45d24e3bd1ffb6a7493dca3eade6ccecb887302dd4da2eb8ccc6b231ba45fbb315ace7ca3232fff99 WHIRLPOOL 3d5babf20a592a5314663692d2cad7e1bcb03d8c9154c0a0903a9f30065e6fa1e9780b32ee72529ad8189f6d88ff9e2fe29cdebd8e90a6fe38319476f84411bf +DIST vdr-mp3ng-pictures-0.0.1.tar.gz 170089 SHA256 962d3e85b3e19e7ef1bfdd4b66947b3c5327f5691c42454b4840fdb7ec5b2288 SHA512 f9b2e683db67f1a72b92e3a73b0f1e72132907568ec196f37f9484e076ca90bec6bd58b79438b70a3fb630badcd79b8ae1401fc911c60e5256131355c783392e WHIRLPOOL d92cbfcfab3de37d551b3a9bc4a76e11d971b6356c6985acbab4630734d289e11eb588a86fb94e8ffb122f3917b5c47d7bbea0690bede79a8777c5049d35c5e3 diff --git a/media-plugins/vdr-mp3ng/files/confd b/media-plugins/vdr-mp3ng/files/confd new file mode 100644 index 000000000000..138db4127758 --- /dev/null +++ b/media-plugins/vdr-mp3ng/files/confd @@ -0,0 +1,32 @@ +# $Id$ + +# Global config file for vdr rc-scripts + +# The default mount script is "mount.sh". This script is called from the +# plugin with 2 options on commandline. The first is +# one of mount/unmount/eject/status and gives the action to perform. The +# second one is the base directory as defined in "mp3ngsources". +# The script must return the exit code 0 if the action was +# successfull and 1 if the action failed (see the comments in the example +# "mount.sh" script which comes with the archive). +#MOUNT="/usr/bin/mount-mp3ng.sh" + +# If you are using cdfs, the MP3 plugin is able to query a CDDB database for +# the song information (like title, artist). Local CDDB lookups can be enable +# from the setup menu and you must give the path to your local CDDB files. +# The database layout follows the xmcd standard +# (one subdirectory level for the categories, individual files for every disc). +# The settings for remote CDDB lookups can be found in the setup menu, too. +# Any information retrieved from a remote host is stored to your local CDDB +# database, so the user running VDR needs write access to this directory. +#CDDB="/var/cddb" + +# If you are using any of the networking capabilities and you have a dial-up +# network you can use this script. +# This script is called before and after any network access and receives one +# option on commandline. This can either be "up" or "down", depending on if it's +# before or after the network access. In the "up" case the script should not +# return before the network is connected and useable. By default the plugin +# assumes that network access can be done at any time without prior action. +#NETWORK="/usr/bin/network.sh" + diff --git a/media-plugins/vdr-mp3ng/files/imagemagick-6.4.x.diff b/media-plugins/vdr-mp3ng/files/imagemagick-6.4.x.diff new file mode 100644 index 000000000000..98b9270537ef --- /dev/null +++ b/media-plugins/vdr-mp3ng/files/imagemagick-6.4.x.diff @@ -0,0 +1,13 @@ +diff -Naur mp3ng-0.9.13-MKIV-pre3.orig/Makefile mp3ng-0.9.13-MKIV-pre3/Makefile +--- mp3ng-0.9.13-MKIV-pre3.orig/Makefile 2008-10-25 12:43:59.000000000 +0200 ++++ mp3ng-0.9.13-MKIV-pre3/Makefile 2008-10-25 12:44:59.000000000 +0200 +@@ -122,7 +122,8 @@ + + ifdef HAVE_MAGICK + DEFINES += -DHAVE_MAGICK +- LIBS += -lMagick -lMagick++ ++ LIBS += -lMagickWand -lMagickCore -lMagick++ ++ INCLUDES += -I/usr/include/ImageMagick + endif + + ifdef HAVE_XPM diff --git a/media-plugins/vdr-mp3ng/files/mp3ngsources b/media-plugins/vdr-mp3ng/files/mp3ngsources new file mode 100644 index 000000000000..b33a71701cee --- /dev/null +++ b/media-plugins/vdr-mp3ng/files/mp3ngsources @@ -0,0 +1,3 @@ +/VDR/data/local_music;Lokale Musik;0;*.mp3/*.ogg/*.wav/*.MP3/*.OGG/*.WAV/*.m3u/*.M3U/*.pls/*.PLS +/mnt/cdrom;CD-Rom;1;*.mp3/*.wav/*.MP3/*.WAV/*.m3u/*.M3U/*.pls/*.PLS +/mnt/usbstick;USB-Stick;1;*.mp3/*.ogg/*.wav/*.MP3/*.OGG/*.WAV/*.m3u/*.M3U/*.pls/*.PLS diff --git a/media-plugins/vdr-mp3ng/files/vdr-mp3ng-0.0.1_pre4-1.3.37.diff b/media-plugins/vdr-mp3ng/files/vdr-mp3ng-0.0.1_pre4-1.3.37.diff new file mode 100644 index 000000000000..7ea66ea4783a --- /dev/null +++ b/media-plugins/vdr-mp3ng/files/vdr-mp3ng-0.0.1_pre4-1.3.37.diff @@ -0,0 +1,29 @@ +--- mp3ng-0.9.13-MKIV-pre3/mp3ng.c 2006-02-04 18:26:38.505453250 +0100 ++++ mp3ng-0.9.13-MKIV-pre3/mp3ng.vdr-1.3.37.c 2006-02-04 18:31:18.342942000 +0100 +@@ -280,7 +280,7 @@ + framesPerSecond=SecondsToFrames(1); + if(!osd) osd=0; + font=cFont::GetFont(fontOsd); +- cStatus::MsgReplaying(this,"MP3"); ++ cStatus::MsgReplaying(this,"MP3",0,true); + + + clrBackground = mp3Theme[MP3Setup.osdtheme].clrBackground; +@@ -307,7 +307,7 @@ + + void cMP3Control::Stop(void) + { +- cStatus::MsgReplaying(this,0); ++ cStatus::MsgReplaying(this,"MP3",0,false); + delete player; player=0; + mgr->Halt(); + mgr->Flush(); //XXX remove later +@@ -559,7 +559,7 @@ + if(changed || mode->Loop!=lastMode->Loop || mode->Shuffle!=lastMode->Shuffle) { + snprintf(buf,sizeof(buf),mode->Artist[0]?"[%c%c] (%d/%d) %s - %s":"[%c%c] (%d/%d) %s", + mode->Loop?'L':'.',mode->Shuffle?'S':'.',mode->Num,mode->MaxNum,mode->Title,mode->Artist); +- cStatus::MsgReplaying(this,buf); ++ cStatus::MsgReplaying(this,"MP3",buf,true); + } + } + diff --git a/media-plugins/vdr-mp3ng/files/vdr-mp3ng-0.0.1_pre4-gcc4.diff b/media-plugins/vdr-mp3ng/files/vdr-mp3ng-0.0.1_pre4-gcc4.diff new file mode 100644 index 000000000000..16abbd9dc10f --- /dev/null +++ b/media-plugins/vdr-mp3ng/files/vdr-mp3ng-0.0.1_pre4-gcc4.diff @@ -0,0 +1,17 @@ +Nur in mp3ng-0.9.13-MKIV-pre3: decoder.o. +diff -ru mp3ng-0.9.13-MKIV-pre3-orig/decoder-ogg.h mp3ng-0.9.13-MKIV-pre3/decoder-ogg.h +--- mp3ng-0.9.13-MKIV-pre3-orig/decoder-ogg.h 2006-07-08 21:19:14.777181805 +0200 ++++ mp3ng-0.9.13-MKIV-pre3/decoder-ogg.h 2006-07-08 21:19:31.498835576 +0200 +@@ -49,7 +49,7 @@ + ~cOggFile(); + bool Open(bool log=true); + void Close(void); +- long long cOggFile::Seek(long long posMs=0, bool relativ=false); ++ long long Seek(long long posMs=0, bool relativ=false); + int Stream(short *buffer, int samples); + bool CanSeek(void) { return canSeek; } + long long IndexMs(void); +Nur in mp3ng-0.9.13-MKIV-pre3: decoder-ogg.o. +Nur in mp3ng-0.9.13-MKIV-pre3: decoder-snd.o. +Nur in mp3ng-0.9.13-MKIV-pre3: libvdr-mp3ng.so. +Nur in mp3ng-0.9.13-MKIV-pre3: libvdr-mp3ng.so.1.4.1. diff --git a/media-plugins/vdr-mp3ng/files/vdr-mp3ng-0.0.1_pre4-gentoo.diff b/media-plugins/vdr-mp3ng/files/vdr-mp3ng-0.0.1_pre4-gentoo.diff new file mode 100644 index 000000000000..be3b3442ef04 --- /dev/null +++ b/media-plugins/vdr-mp3ng/files/vdr-mp3ng-0.0.1_pre4-gentoo.diff @@ -0,0 +1,31 @@ +--- mp3ng.c 2005-11-21 12:54:36.000000000 +0100 ++++ mp3ng-gentoo.c 2005-12-20 10:29:24.070051500 +0100 +@@ -1775,10 +1775,10 @@ + { + if(!CheckVDRVersion(1,1,29,"mp3ng")) return false; + i18n_name=Name(); +- MP3Sources.Load(AddDirectory(ConfigDirectory(),"mp3sources.conf")); ++ MP3Sources.Load(AddDirectory(ConfigDirectory(),"mp3ng/mp3ngsources")); + if(MP3Sources.Count()<1) { +- esyslog("ERROR: you should have defined at least one source in mp3sources.conf"); +- fprintf(stderr,"No source(s) defined in mp3sources.conf\n"); ++ esyslog("ERROR: you should have defined at least one source in mp3ngsources"); ++ fprintf(stderr,"No source(s) defined in mp3ngsources\n"); + return false; + } + InfoCache.Load(); + +--- player-mp3.c 2005-11-15 23:15:41.000000000 +0100 ++++ player-mp3-gentoo.c 2006-01-04 01:39:21.178251500 +0100 +@@ -2073,9 +2073,9 @@ + + if (!strlen (coverpicture)) { + if (!isStream) +- strcpy(coverpicture, "/var/cache/images/mp3MKIV-defaultcover.jpg"); ++ strcpy(coverpicture, "/usr/share/vdr/mp3ng/mp3MKIV-defaultcover.jpg"); + else +- strcpy(coverpicture, "/var/cache/images/mp3MKIV-streamcover.jpg"); ++ strcpy(coverpicture, "/usr/share/vdr/mp3ng/mp3MKIV-streamcover.jpg"); + } + + // printf("DEBUG 101b: cover = %s\n", imageFile); diff --git a/media-plugins/vdr-mp3ng/files/vdr-mp3ng-0.0.1_pre4-glibc-2.10.patch b/media-plugins/vdr-mp3ng/files/vdr-mp3ng-0.0.1_pre4-glibc-2.10.patch new file mode 100644 index 000000000000..7965c8212bea --- /dev/null +++ b/media-plugins/vdr-mp3ng/files/vdr-mp3ng-0.0.1_pre4-glibc-2.10.patch @@ -0,0 +1,78 @@ +diff -ur mp3ng-0.9.13-MKIV-pre3.orig/data.c mp3ng-0.9.13-MKIV-pre3/data.c +--- mp3ng-0.9.13-MKIV-pre3.orig/data.c 2005-08-28 19:18:06.000000000 +0300 ++++ mp3ng-0.9.13-MKIV-pre3/data.c 2009-08-09 22:25:33.000000000 +0300 +@@ -408,7 +408,7 @@ + description=strdup(Description); + if(Include) { + do { +- char *s=index(Include,'/'); ++ char *s=const_cast<char*> (index(Include,'/')); + int l=s ? s-Include : strlen(Include); + if(l) { + char **s=(char **)realloc(include,(incCount+2)*sizeof(char *)); +diff -ur mp3ng-0.9.13-MKIV-pre3.orig/decoder.c mp3ng-0.9.13-MKIV-pre3/decoder.c +--- mp3ng-0.9.13-MKIV-pre3.orig/decoder.c 2005-08-28 19:18:06.000000000 +0300 ++++ mp3ng-0.9.13-MKIV-pre3/decoder.c 2009-08-09 22:28:03.000000000 +0300 +@@ -101,7 +101,7 @@ + { + // if no title, try to build a reasonable from the filename + if(!Title && filename) { +- char *s=rindex(filename,'/'); ++ char *s=const_cast<char*> (rindex(filename,'/')); + if(s && *s=='/') { + s++; + Title=strdup(s); +diff -ur mp3ng-0.9.13-MKIV-pre3.orig/decoder-ogg.c mp3ng-0.9.13-MKIV-pre3/decoder-ogg.c +--- mp3ng-0.9.13-MKIV-pre3.orig/decoder-ogg.c 2005-05-31 19:56:24.000000000 +0300 ++++ mp3ng-0.9.13-MKIV-pre3/decoder-ogg.c 2009-08-09 22:31:17.000000000 +0300 +@@ -161,7 +161,7 @@ + for(int i=0 ; i<vc->comments ; i++) { + const char *cc=vc->user_comments[i]; + d(printf("ogg: comment%d='%s'\n",i,cc)) +- char *p=strchr(cc,'='); ++ const char *p=strchr(cc,'='); + if(p) { + const int len=p-cc; + p++; +diff -ur mp3ng-0.9.13-MKIV-pre3.orig/decoder-snd.c mp3ng-0.9.13-MKIV-pre3/decoder-snd.c +--- mp3ng-0.9.13-MKIV-pre3.orig/decoder-snd.c 2005-05-31 19:56:11.000000000 +0300 ++++ mp3ng-0.9.13-MKIV-pre3/decoder-snd.c 2009-08-09 22:30:38.000000000 +0300 +@@ -577,7 +577,7 @@ + bool cCDDBDisc::Split(const char *source, char div, char * &first, char * &second, bool only3) + { + int pos=-1, n=0; +- char *p, l[4]={ ' ',div,' ',0 }; ++ const char *p, l[4]={ ' ',div,' ',0 }; + if ((p=strstr(source,l))) { pos=p-source; n=3; } + else if(!only3 && (p=strchr(source,div))) { pos=p-source; n=1; } + if(pos>=0) { +@@ -857,7 +857,7 @@ + { + if(id->Get()) { + int tr; +- char *s=strstr(filename,CDFS_TRACK); ++ char *s=const_cast<char*> (strstr(filename,CDFS_TRACK)); + if(s && sscanf(s+strlen(CDFS_TRACK),"%d",&tr)==1) { + d(printf("snd: looking up disc id %08x track %d\n",id->discid,tr)) + return cddb.Lookup(id,tr-1,this); +diff -ur mp3ng-0.9.13-MKIV-pre3.orig/stream.c mp3ng-0.9.13-MKIV-pre3/stream.c +--- mp3ng-0.9.13-MKIV-pre3.orig/stream.c 2005-02-06 13:14:43.000000000 +0200 ++++ mp3ng-0.9.13-MKIV-pre3/stream.c 2009-08-09 22:27:20.000000000 +0300 +@@ -386,7 +386,7 @@ + + bool cNetStream::ParseHeader(const char *buff, const char *name, char **value) + { +- char *s=index(buff,':'); ++ char *s=const_cast<char*> (index(buff,':')); + if(s && !strncasecmp(buff,name,s-buff)) { + s=skipspace(s+1); + d(printf("netstream: found header '%s' contents '%s'\n",name,s)) +@@ -510,7 +510,7 @@ + + char *cNetStream::ParseMetaString(const char *buff, const char *name, char **value) + { +- char *s=index(buff,'='); ++ char *s=const_cast<char*> (index(buff,'=')); + if(s && !strncasecmp(buff,name,s-buff)) { + char *end=index(s+2,'\''); + if(s[1]=='\'' && end) { diff --git a/media-plugins/vdr-mp3ng/files/vdr-mp3ng-0.0.1_pre4-vdr-1.5.1.diff b/media-plugins/vdr-mp3ng/files/vdr-mp3ng-0.0.1_pre4-vdr-1.5.1.diff new file mode 100644 index 000000000000..e9c1d8ceb425 --- /dev/null +++ b/media-plugins/vdr-mp3ng/files/vdr-mp3ng-0.0.1_pre4-vdr-1.5.1.diff @@ -0,0 +1,62 @@ +fix for VDR 1.5.x + +Joerg Bornkessel <hd_brummy@gentoo.org> 25 Mar 2007 +diff -Naur mp3ng-0.9.13-MKIV-pre3.orig/mp3ng.c mp3ng-0.9.13-MKIV-pre3/mp3ng.c +--- mp3ng-0.9.13-MKIV-pre3.orig/mp3ng.c 2007-03-25 23:09:14.000000000 +0200 ++++ mp3ng-0.9.13-MKIV-pre3/mp3ng.c 2007-03-25 23:14:16.000000000 +0200 +@@ -370,7 +370,12 @@ + HideStatus(); + if(visible) { + delete osd; osd=0; ++#if APIVERSNUM > 10500 ++ visible=bigwin=false; ++ SetNeedsFastResponse(visible); ++#else + needsFastResponse=visible=bigwin=false; ++#endif + } + } + +@@ -581,7 +586,12 @@ + osd->Flush(); + + ShowStatus(true); ++#if APIVERSNUM > 10500 ++ visible=true; ++ SetNeedsFastResponse(visible); ++#else + needsFastResponse=visible=true; ++#endif + fliptime=listtime=0; flipint=0; flip=-1; top=lastTop=-1; lastIndex=lastTotal=-1; + delete lastMode; lastMode=0; + } +diff -Naur mp3ng-0.9.13-MKIV-pre3.orig/mplayer.c mp3ng-0.9.13-MKIV-pre3/mplayer.c +--- mp3ng-0.9.13-MKIV-pre3.orig/mplayer.c 2007-03-25 23:09:14.000000000 +0200 ++++ mp3ng-0.9.13-MKIV-pre3/mplayer.c 2007-03-25 23:18:09.000000000 +0200 +@@ -219,7 +219,12 @@ + #else + Interface->Close(); + #endif ++#if APIVERSNUM > 10500 ++ visible = modeOnly = false; ++ SetNeedsFastResponse(visible); ++#else + needsFastResponse=visible=modeOnly=false; ++#endif + } + } + +@@ -251,7 +256,13 @@ + Interface->Clear(); + if(MPlayerSetup.OsdPos>0) Interface->Fill(0,3,Interface->Width(),MPlayerSetup.OsdPos,clrTransparent); + #endif ++#if APIVERSNUM > 10500 ++ visible = true; ++ SetNeedsFastResponse(visible); ++ modeOnly=false; ++#else + needsFastResponse=visible=true; modeOnly=false; ++#endif + if(file) { + #if VDRVERSNUM >= 10307 + display->SetTitle(file->Path()); diff --git a/media-plugins/vdr-mp3ng/metadata.xml b/media-plugins/vdr-mp3ng/metadata.xml new file mode 100644 index 000000000000..5c2dd67dc7ff --- /dev/null +++ b/media-plugins/vdr-mp3ng/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>media-tv</herd> +<maintainer> + <email>vdr@gentoo.org</email> + <name>Gentoo VDR Project</name> + <description> + Please contacts maintainer before you something change. + </description> +</maintainer> + <longdescription>VDR Plugin to play audio files, supports mp3, wav and ogg audio format. + You can provide and edit your own playlists. + </longdescription> +</pkgmetadata> diff --git a/media-plugins/vdr-mp3ng/vdr-mp3ng-0.0.1_pre5.ebuild b/media-plugins/vdr-mp3ng/vdr-mp3ng-0.0.1_pre5.ebuild new file mode 100644 index 000000000000..1972d646c6b1 --- /dev/null +++ b/media-plugins/vdr-mp3ng/vdr-mp3ng-0.0.1_pre5.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit vdr-plugin-2 + +MY_PV=0.9.13-MKIV-pre3 +MY_P=${PN}-${MY_PV} + +S=${WORKDIR}/mp3ng-0.9.13-MKIV-pre3 + +DESCRIPTION="VDR Plugin: play mp3 and ogg on VDR" +HOMEPAGE="http://www.glaserei-franz.de/VDR/Moronimo2/vdrplugins.htm" +SRC_URI="http://www.glaserei-franz.de/VDR/Moronimo2/downloads/${MY_P}.tar.gz + mirror://gentoo/${PN}-pictures-0.0.1.tar.gz + mirror://gentoo/${PN}-0.0.1_pre4-span-0.0.3.diff.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="vorbis oss imagemagick" + +DEPEND=">=media-video/vdr-1.6 + media-libs/libmad + media-libs/libid3tag + sys-libs/zlib + media-libs/libsndfile + vorbis? ( media-libs/libvorbis ) + imagemagick? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] ) ) + !imagemagick? ( media-libs/imlib2 )" + +src_prepare() { + vdr-plugin-2_src_prepare + + epatch "${FILESDIR}/${PN}-0.0.1_pre4-gentoo.diff" + epatch "${FILESDIR}/${PN}-0.0.1_pre4-gcc4.diff" + epatch "${DISTDIR}/${PN}-0.0.1_pre4-span-0.0.3.diff.tar.gz" + epatch "${FILESDIR}/${PN}-0.0.1_pre4-vdr-1.5.1.diff" + epatch "${FILESDIR}/${PN}-0.0.1_pre4-glibc-2.10.patch" + + use !vorbis && sed -i "s:#WITHOUT_LIBVORBISFILE:WITHOUT_LIBVORBISFILE:" Makefile + use oss && sed -i "s:#WITH_OSS_OUTPUT:WITH_OSS_OUTPUT:" Makefile + use imagemagick && sed -i Makefile \ + -e "s:HAVE_IMLIB2:#HAVE_IMLIB2:" \ + -e "s:#HAVE_MAGICK:HAVE_MAGICK:" + + has_version ">=media-video/vdr-1.3.37" && epatch "${FILESDIR}/${PN}-0.0.1_pre4-1.3.37.diff" + has_version ">=media-gfx/imagemagick-6.4" && epatch "${FILESDIR}/imagemagick-6.4.x.diff" + + sed -i mp3ng.c -e "s:RegisterI18n:// RegisterI18n:" +} + +src_install() { + vdr-plugin-2_src_install + + insinto /etc/vdr/plugins/mp3ng + doins "${FILESDIR}/mp3ngsources" + + insinto /usr/share/vdr/mp3ng + doins "${WORKDIR}/${PN}-pictures-0.0.1"/*.jpg + doins "${S}/images/mp3MKIV-spectrum-analyzer-bg.png" + + newbin examples/mount.sh.example mount-mp3ng.sh + + dodoc HISTORY MANUAL README README-MORONIMO examples/network.sh.example +} |