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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jan 2 17:58:38 2012 UTC (2 years, 9 months ago) by hd_brummy
Branch: MAIN
Changes since 1.1: +4 -4 lines
cleanup, src_uri moved to thirdpartymirror; stabel amd64, x64 on bug #397987

(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.ebuild,v 1.1 2011/02/11 14:00:26 hd_brummy Exp $
4
5 EAPI="3"
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 pkg_setup() {
24 vdr-plugin_pkg_setup
25
26 if ! use client && ! use server; then
27 die "no plugins selected, change useflags and enable at least client or server!"
28 fi
29 }
30
31 src_prepare() {
32 vdr-plugin_src_prepare
33 cd "${S}"
34
35 # make subdir libdvbmpeg respect CXXFLAGS
36 sed -i Makefile \
37 -e '/CXXFLAGS.*+=/s:^:#:'
38
39 for flag in client server; do
40 if ! use ${flag}; then
41 sed -i Makefile \
42 -e '/^.PHONY:/s/'${flag}'//' \
43 -e '/^all:/s/'${flag}'//'
44 fi
45 done
46
47 sed -i server/Makefile \
48 -i client/Makefile \
49 -e "s:\$(CXXFLAGS) -shared:\$(CXXFLAGS) \$(LDFLAGS) -shared:"
50
51 fix_vdr_libsi_include server/livestreamer.c
52 }
53
54 src_install() {
55 vdr-plugin_src_install
56
57 cd "${S}"
58 if use server; then
59 insinto /etc/vdr/plugins/streamdev-server
60 newins streamdev-server/streamdevhosts.conf streamdevhosts.conf
61 chown vdr:vdr "${D}"/etc/vdr -R
62
63 insinto /usr/share/vdr/streamdev
64 doins streamdev-server/externremux.sh
65
66 insinto /usr/share/vdr/rcscript
67 newins "${FILESDIR}"/rc-addon-0.5.0.sh plugin-streamdev-server.sh
68
69 insinto /etc/conf.d
70 newins "${FILESDIR}"/confd-0.5.0 vdr.streamdev-server
71 fi
72 }
73
74 pkg_postinst() {
75 vdr-plugin_pkg_postinst
76
77 if [[ -e "${ROOT}"/etc/vdr/plugins/streamdev/streamdevhosts.conf ]]; then
78 einfo "move config file to new config DIR ${ROOT}/etc/vdr/plugins/streamdev-server/"
79 mv "${ROOT}"/etc/vdr/plugins/streamdev/streamdevhosts.conf "${ROOT}"/etc/vdr/plugins/streamdev-server/streamdevhosts.conf
80 fi
81 }

  ViewVC Help
Powered by ViewVC 1.1.20