/[gentoo-x86]/media-plugins/vdr-mp3ng/vdr-mp3ng-0.0.1_pre4.ebuild
Gentoo

Contents of /media-plugins/vdr-mp3ng/vdr-mp3ng-0.0.1_pre4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Aug 9 19:29:42 2009 UTC (5 years, 1 month ago) by ssuominen
Branch: MAIN
Changes since 1.6: +3 -2 lines
Fix building with GLIBC 2.10+ wrt #276177.
(Portage version: 2.2_rc36/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-mp3ng/vdr-mp3ng-0.0.1_pre4.ebuild,v 1.6 2008/10/25 11:18:13 hd_brummy Exp $
4
5 inherit vdr-plugin eutils
6
7 MY_PV=0.9.13-MKIV-pre3
8 MY_P=${PN}-${MY_PV}
9
10 S=${WORKDIR}/mp3ng-0.9.13-MKIV-pre3
11
12 DESCRIPTION="Plugin to play mp3 and ogg on VDR"
13 HOMEPAGE="http://www.glaserei-franz.de/VDR/Moronimo2/vdrplugins.htm"
14 SRC_URI="http://www.glaserei-franz.de/VDR/Moronimo2/downloads/${MY_P}.tar.gz
15 mirror://gentoo/${PN}-pictures-0.0.1.tar.gz
16 mirror://gentoo/${P}-span-0.0.3.diff.tar.gz"
17
18 LICENSE="GPL-2"
19 SLOT="0"
20 KEYWORDS="~amd64 x86"
21 IUSE="vorbis oss imagemagick"
22
23 DEPEND=">=media-video/vdr-1.2.6
24 media-libs/libmad
25 media-libs/libid3tag
26 sys-libs/zlib
27 media-libs/libsndfile
28 vorbis? ( media-libs/libvorbis )
29 imagemagick? ( media-gfx/imagemagick )
30 !imagemagick? ( media-libs/imlib2 )"
31
32 src_unpack() {
33 vdr-plugin_src_unpack
34
35 epatch "${FILESDIR}/${P}-gentoo.diff"
36 epatch "${FILESDIR}/${P}-gcc4.diff"
37 epatch "${DISTDIR}/${P}-span-0.0.3.diff.tar.gz"
38 epatch "${FILESDIR}/${P}-vdr-1.5.1.diff"
39 epatch "${FILESDIR}/${P}-glibc-2.10.patch"
40
41 use !vorbis && sed -i "s:#WITHOUT_LIBVORBISFILE:WITHOUT_LIBVORBISFILE:" Makefile
42 use oss && sed -i "s:#WITH_OSS_OUTPUT:WITH_OSS_OUTPUT:" Makefile
43 use imagemagick && sed -i Makefile -e "s:HAVE_IMLIB2:#HAVE_IMLIB2:" \
44 -e "s:#HAVE_MAGICK:HAVE_MAGICK:"
45
46 has_version ">=media-video/vdr-1.3.37" && epatch "${FILESDIR}/${P}-1.3.37.diff"
47 has_version ">=media-gfx/imagemagick-6.4" && epatch "${FILESDIR}/imagemagick-6.4.x.diff"
48 }
49
50 src_install() {
51 vdr-plugin_src_install
52
53 insinto /etc/vdr/plugins/mp3ng
54 doins "${FILESDIR}/mp3ngsources"
55
56 insinto /usr/share/vdr/mp3ng
57 doins "${WORKDIR}/${PN}-pictures-0.0.1"/*.jpg
58 doins "${S}/images/mp3MKIV-spectrum-analyzer-bg.png"
59
60 newbin examples/mount.sh.example mount-mp3ng.sh
61
62 dodoc HISTORY MANUAL README README-MORONIMO examples/network.sh.example
63 }

  ViewVC Help
Powered by ViewVC 1.1.20