blob: 2a4ea2c8f7b1a5535c76c93eed4e796390fda351 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
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.3 2008/06/22 17:25:17 yngwin 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 graphtft 4mb-mod 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
sys-process/at
graphtft? ( >=media-plugins/vdr-graphtft-0.1.5 )"
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
}
|