You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.2 KiB
75 lines
2.2 KiB
7 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
11 years ago
|
EAPI=5
|
||
|
|
||
8 years ago
|
inherit vdr-plugin-2 flag-o-matic
|
||
13 years ago
|
|
||
|
MY_PV=0.9.13-MKIV-pre3
|
||
|
MY_P=${PN}-${MY_PV}
|
||
|
|
||
|
S=${WORKDIR}/mp3ng-0.9.13-MKIV-pre3
|
||
|
|
||
11 years ago
|
DESCRIPTION="VDR Plugin: play mp3 and ogg on VDR"
|
||
13 years ago
|
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
|
||
11 years ago
|
mirror://gentoo/${PN}-0.0.1_pre4-span-0.0.3.diff.tar.gz"
|
||
13 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
11 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
13 years ago
|
IUSE="vorbis oss imagemagick"
|
||
|
|
||
11 years ago
|
DEPEND=">=media-video/vdr-1.6
|
||
7 years ago
|
media-libs/libmad
|
||
|
media-libs/libid3tag
|
||
|
sys-libs/zlib
|
||
|
media-libs/libsndfile
|
||
|
vorbis? ( media-libs/libvorbis )
|
||
|
imagemagick? ( virtual/imagemagick-tools )
|
||
|
!imagemagick? ( media-libs/imlib2 )"
|
||
13 years ago
|
|
||
11 years ago
|
src_prepare() {
|
||
|
vdr-plugin-2_src_prepare
|
||
13 years ago
|
|
||
8 years ago
|
# wrt bug 595248
|
||
|
append-cxxflags $(test-flags-CXX -std=gnu++03) -std=gnu++03
|
||
|
|
||
11 years ago
|
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"
|
||
13 years ago
|
|
||
|
use !vorbis && sed -i "s:#WITHOUT_LIBVORBISFILE:WITHOUT_LIBVORBISFILE:" Makefile
|
||
|
use oss && sed -i "s:#WITH_OSS_OUTPUT:WITH_OSS_OUTPUT:" Makefile
|
||
10 years ago
|
use imagemagick && sed -i Makefile \
|
||
|
-e "s:HAVE_IMLIB2:#HAVE_IMLIB2:" \
|
||
13 years ago
|
-e "s:#HAVE_MAGICK:HAVE_MAGICK:"
|
||
|
|
||
10 years ago
|
has_version ">=media-video/vdr-1.3.37" && epatch "${FILESDIR}/${PN}-0.0.1_pre4-1.3.37.diff"
|
||
13 years ago
|
has_version ">=media-gfx/imagemagick-6.4" && epatch "${FILESDIR}/imagemagick-6.4.x.diff"
|
||
11 years ago
|
|
||
|
sed -i mp3ng.c -e "s:RegisterI18n:// RegisterI18n:"
|
||
8 years ago
|
|
||
|
if has_version ">=media-video/vdr-2.1.2"; then
|
||
|
sed -e "s#VideoDirectory#cVideoDirectory::Name\(\)#" -i decoder.c
|
||
|
fi
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
11 years ago
|
vdr-plugin-2_src_install
|
||
13 years ago
|
|
||
|
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
|
||
|
}
|