blob: 1972d646c6b13160a8825dcbdc15cde48fce871f (
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
|
# 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
}
|