/[gentoo-x86]/media-plugins/vdr-streamdev/vdr-streamdev-0.5.1-r1.ebuild
Gentoo

Contents of /media-plugins/vdr-streamdev/vdr-streamdev-0.5.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jul 1 14:50:16 2012 UTC (2 years ago) by hd_brummy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
cleanup; stable amd64 x86, bug 422117

(Portage version: 2.1.10.11/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-streamdev/vdr-streamdev-0.5.1-r1.ebuild,v 1.1 2012/03/03 20:52:08 hd_brummy Exp $
4
5 EAPI="4"
6
7 inherit vdr-plugin
8
9 VERSION="497" # every bump, new version !
10
11 DESCRIPTION="VDR Plugin: Client/Server streaming plugin"
12 HOMEPAGE="http://projects.vdr-developer.org/projects/plg-streamdev"
13 SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="client +server"
19
20 DEPEND=">=media-video/vdr-1.5.9"
21 RDEPEND="${DEPEND}"
22
23 REQUIRED_USE=" || ( client server ) "
24
25 src_prepare() {
26 vdr-plugin_src_prepare
27
28 if has_version ">=media-video/vdr-1.7.25"; then
29 epatch "${FILESDIR}/${P}_vdr-1.7.25.diff"
30 fi
31
32 # make subdir libdvbmpeg respect CXXFLAGS
33 sed -i Makefile \
34 -e '/CXXFLAGS.*+=/s:^:#:'
35
36 for flag in client server; do
37 if ! use ${flag}; then
38 sed -i Makefile \
39 -e '/^.PHONY:/s/'${flag}'//' \
40 -e '/^all:/s/'${flag}'//'
41 fi
42 done
43
44 sed -i server/Makefile \
45 -i client/Makefile \
46 -e "s:\$(CXXFLAGS) -shared:\$(CXXFLAGS) \$(LDFLAGS) -shared:"
47
48 fix_vdr_libsi_include server/livestreamer.c
49 }
50
51 src_install() {
52 vdr-plugin_src_install
53
54 cd "${S}"
55 if use server; then
56 insinto /etc/vdr/plugins/streamdev-server
57 newins streamdev-server/streamdevhosts.conf streamdevhosts.conf
58 chown vdr:vdr "${D}"/etc/vdr -R
59
60 insinto /usr/share/vdr/streamdev
61 doins streamdev-server/externremux.sh
62
63 insinto /usr/share/vdr/rcscript
64 newins "${FILESDIR}"/rc-addon-0.5.0.sh plugin-streamdev-server.sh
65
66 insinto /etc/conf.d
67 newins "${FILESDIR}"/confd-0.5.0 vdr.streamdev-server
68 fi
69 }
70
71 pkg_postinst() {
72 vdr-plugin_pkg_postinst
73
74 if [[ -e "${ROOT}"/etc/vdr/plugins/streamdev/streamdevhosts.conf ]]; then
75 einfo "move config file to new config DIR ${ROOT}/etc/vdr/plugins/streamdev-server/"
76 mv "${ROOT}"/etc/vdr/plugins/streamdev/streamdevhosts.conf "${ROOT}"/etc/vdr/plugins/streamdev-server/streamdevhosts.conf
77 fi
78 }

  ViewVC Help
Powered by ViewVC 1.1.20