summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Bornkessel <hd_brummy@gentoo.org>2008-01-13 16:40:52 +0000
committerJörg Bornkessel <hd_brummy@gentoo.org>2008-01-13 16:40:52 +0000
commit1d743b4e0863944879b28522f9b9cd294ba98c91 (patch)
tree9ce5ba48a8c962fcf95a6a87c449a1631ac03bd9 /media-plugins/vdr-music/vdr-music-0.2.0.ebuild
parenttypo fixed (diff)
downloadgentoo-2-1d743b4e0863944879b28522f9b9cd294ba98c91.tar.gz
gentoo-2-1d743b4e0863944879b28522f9b9cd294ba98c91.tar.bz2
gentoo-2-1d743b4e0863944879b28522f9b9cd294ba98c91.zip
initial ebuild; moved from vdr-testing overlay; Thanks to T.Kost T.Rheinhold
(Portage version: 2.1.3.19)
Diffstat (limited to 'media-plugins/vdr-music/vdr-music-0.2.0.ebuild')
-rw-r--r--media-plugins/vdr-music/vdr-music-0.2.0.ebuild105
1 files changed, 105 insertions, 0 deletions
diff --git a/media-plugins/vdr-music/vdr-music-0.2.0.ebuild b/media-plugins/vdr-music/vdr-music-0.2.0.ebuild
new file mode 100644
index 000000000000..9c66439ca6a3
--- /dev/null
+++ b/media-plugins/vdr-music/vdr-music-0.2.0.ebuild
@@ -0,0 +1,105 @@
+# Copyright 2003-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-music/vdr-music-0.2.0.ebuild,v 1.1 2008/01/13 16:40:51 hd_brummy Exp $
+
+inherit vdr-plugin
+
+DESCRIPTION="VDR plugin: music"
+HOMEPAGE="http://www.vdr.glaserei-franz.de/"
+SRC_URI="http://www.kost.sh/vdr/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+IUSE="imagemagick debug vorbis oss ff-card 4mb-mod graphtft sndfile"
+
+PATCHES="${FILESDIR}/${P}-gentoo.diff
+ ${FILESDIR}/${P}-vdr-1.5.x.diff
+ ${FILESDIR}/${P}-lyrics.diff"
+
+DEPEND=">=media-video/vdr-1.3.30
+ media-libs/libmad
+ media-libs/libid3tag
+ imagemagick? ( media-gfx/imagemagick )
+ vorbis? ( media-libs/libvorbis )
+ sndfile? ( media-libs/libsndfile )
+ oss? ( media-libs/alsa-oss )
+ !imagemagick? ( media-libs/imlib2 )"
+
+RDEPEND="dev-java/blackdown-jre
+ media-tv/shoutcast2vdr
+ graphtft? ( >=media-plugins/vdr-graphtft-0.1.5 )
+ sys-process/at"
+
+pkg_setup() {
+
+ use imagemagick && local LIB="media-gfx/imagemagick"
+ use !imagemagick && local LIB="media-libs/imlib2"
+
+ if ! built_with_use $LIB png; then
+ echo
+ eerror "Please recompile $LIB with"
+ eerror "USE=\"png\""
+ die "$LIB need png support"
+ fi
+
+ vdr-plugin_pkg_setup
+}
+
+src_unpack() {
+ vdr-plugin_src_unpack
+
+ use graphtft && epatch "${FILESDIR}/${P}-graphtftcoverfix.diff"
+
+ use !ff-card && sed -i Makefile -e "s:HAVE_FFCARD=1:#HAVE_FFCARD=1:"
+ use !vorbis && sed -i Makefile -e "s:#WITHOUT_LIBVORBISFILE=1:WITHOUT_LIBVORBISFILE=1:"
+ use !sndfile && sed -i Makefile -e "s:#WITHOUT_LIBSNDFILE=1:WITHOUT_LIBSNDFILE=1:"
+ use imagemagick && sed -i Makefile -e "s:#HAVE_MAGICK=1:HAVE_MAGICK=1:"
+ use oss && sed -i Makefile -e "s:#WITH_OSS_OUTPUT=1:WITH_OSS_OUTPUT=1:"
+ use 4mb-mod && sed -i Makefile -e "s:#HAVE_OSDMOD=1:HAVE_OSDMOD=1:"
+ use debug && sed -i Makefile -e "s:#DBG=1:DBG=1:"
+}
+
+src_install() {
+ vdr-plugin_src_install
+
+ insinto /etc/vdr/plugins/music
+ doins music/musicsources.conf
+
+ insinto /etc/vdr/plugins/music/coverviewer
+ doins -r music/coverviewer/*
+
+ insinto /etc/vdr/plugins/music/data
+ doins -r music/data/*
+
+ exeinto /etc/vdr/plugins/music/downloads/music_cover
+ doexe music/downloads/music_cover/*
+
+ insinto /etc/vdr/plugins/music/playlists
+ doins music/playlists/*
+
+ insinto /etc/vdr/plugins/music/themes
+ doins -r music/themes/*
+
+ insinto /etc/vdr/plugins/music/visual
+ doins -r music/visual/*
+
+ exeinto /usr/share/vdr/music/scripts
+ doexe music/scripts/*
+
+ keepdir /etc/vdr/plugins/music/lyrics
+}
+
+pkg_postinst() {
+ vdr-plugin_pkg_postinst
+
+ echo
+ elog "To complete your media-plugins/vdr-music install"
+ elog "take a look on:"
+ echo
+ elog "media-plugins/vdr-coverviewer"
+ elog "media-plugins/vdr-picselshow"
+ echo
+ elog " Please change your /etc/vdr/plugins/music/musicsources.conf "
+ echo
+}