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

Contents of /media-plugins/vdr-streamdev/vdr-streamdev-0.5.2.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: +2 -2 lines
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.2.ebuild,v 1.1 2012/05/12 16:16:56 hd_brummy Exp $
4
5 EAPI="4"
6
7 inherit vdr-plugin-2
8
9 VERSION="953" # 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.6"
21 RDEPEND="${DEPEND}"
22
23 REQUIRED_USE=" || ( client server ) "
24
25 # vdr-plugin-2.eclass changes
26 PO_SUBDIR="client server"
27
28 src_prepare() {
29 vdr-plugin-2_src_prepare
30
31 # make subdir libdvbmpeg respect CXXFLAGS
32 sed -i Makefile \
33 -e '/CXXFLAGS.*+=/s:^:#:'
34
35 for flag in client server; do
36 if ! use ${flag}; then
37 sed -i Makefile \
38 -e '/^.PHONY:/s/'${flag}'//' \
39 -e '/^all:/s/'${flag}'//'
40 fi
41 done
42
43 sed -i server/Makefile \
44 -i client/Makefile \
45 -e "s:\$(CXXFLAGS) -shared:\$(CXXFLAGS) \$(LDFLAGS) -shared:"
46
47 fix_vdr_libsi_include server/livestreamer.c
48 }
49
50 src_install() {
51 vdr-plugin-2_src_install
52
53 cd "${S}"
54 if use server; then
55 insinto /etc/vdr/plugins/streamdev-server
56 newins streamdev-server/streamdevhosts.conf streamdevhosts.conf
57 chown vdr:vdr "${D}"/etc/vdr -R
58
59 insinto /usr/share/vdr/streamdev
60 doins streamdev-server/externremux.sh
61
62 insinto /usr/share/vdr/rcscript
63 newins "${FILESDIR}"/rc-addon-0.5.0.sh plugin-streamdev-server.sh
64
65 insinto /etc/conf.d
66 newins "${FILESDIR}"/confd-0.5.0 vdr.streamdev-server
67 fi
68 }
69
70 pkg_postinst() {
71 vdr-plugin-2_pkg_postinst
72
73 if [[ -e "${ROOT}"/etc/vdr/plugins/streamdev/streamdevhosts.conf ]]; then
74 einfo "move config file to new config DIR ${ROOT}/etc/vdr/plugins/streamdev-server/"
75 mv "${ROOT}"/etc/vdr/plugins/streamdev/streamdevhosts.conf "${ROOT}"/etc/vdr/plugins/streamdev-server/streamdevhosts.conf
76 fi
77 }

  ViewVC Help
Powered by ViewVC 1.1.20