Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-plugins/live: ChangeLog live-2009.09.28.ebuild
Date: Tue, 29 Sep 2009 07:03:29
Message-Id: E1MsWkB-0007I0-7c@stork.gentoo.org
1 aballier 09/09/29 07:03:27
2
3 Modified: ChangeLog
4 Added: live-2009.09.28.ebuild
5 Log:
6 version bump and link the libs with g++
7 (Portage version: 2.2_rc42/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.123 media-plugins/live/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/live/ChangeLog?rev=1.123&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/live/ChangeLog?rev=1.123&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/live/ChangeLog?r1=1.122&r2=1.123
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-plugins/live/ChangeLog,v
19 retrieving revision 1.122
20 retrieving revision 1.123
21 diff -u -r1.122 -r1.123
22 --- ChangeLog 18 Sep 2009 09:56:42 -0000 1.122
23 +++ ChangeLog 29 Sep 2009 07:03:26 -0000 1.123
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-plugins/live
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/live/ChangeLog,v 1.122 2009/09/18 09:56:42 aballier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/live/ChangeLog,v 1.123 2009/09/29 07:03:26 aballier Exp $
29 +
30 +*live-2009.09.28 (29 Sep 2009)
31 +
32 + 29 Sep 2009; Alexis Ballier <aballier@g.o> +live-2009.09.28.ebuild,
33 + +files/config.gentoo-so-r1, +files/live-recursive.patch:
34 + version bump and link the libs with g++
35
36 *live-2009.09.04 (18 Sep 2009)
37
38
39
40
41 1.1 media-plugins/live/live-2009.09.28.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/live/live-2009.09.28.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/live/live-2009.09.28.ebuild?rev=1.1&content-type=text/plain
45
46 Index: live-2009.09.28.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-plugins/live/live-2009.09.28.ebuild,v 1.1 2009/09/29 07:03:26 aballier Exp $
51
52 inherit flag-o-matic eutils toolchain-funcs multilib
53
54 DESCRIPTION="Source-code libraries for standards-based RTP/RTCP/RTSP multimedia streaming, suitable for embedded and/or low-cost streaming applications"
55 HOMEPAGE="http://www.live555.com/"
56 SRC_URI="http://www.live555.com/liveMedia/public/${P/-/.}.tar.gz"
57
58 LICENSE="LGPL-2.1"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
61 IUSE=""
62
63 S="${WORKDIR}"
64
65 # Alexis Ballier <aballier@g.o>
66 # Be careful, bump this everytime you bump the package and the ABI has changed.
67 # If you don't know, ask someone.
68 LIVE_ABI_VERSION=3
69
70 src_unpack() {
71 unpack ${A}
72 cd "${WORKDIR}"
73 epatch "${FILESDIR}/${PN}-recursive.patch"
74
75 cp -pPR live live-shared
76 mv live live-static
77
78 cp "${FILESDIR}/config.gentoo" live-static
79 cp "${FILESDIR}/config.gentoo-so-r1" live-shared
80 }
81
82 src_compile() {
83 tc-export CC CXX LD
84
85 cd "${WORKDIR}/live-static"
86
87 einfo "Beginning static library build"
88 ./genMakefiles gentoo
89 emake -j1 LINK_OPTS="-L. $(raw-ldflags)" || die "failed to build static libraries"
90
91 einfo "Beginning programs build"
92 cd "${WORKDIR}/live-static/testProgs"
93 emake LINK_OPTS="-L. ${LDFLAGS}" || die "failed to build test programs"
94 cd "${WORKDIR}/live-static/mediaServer"
95 emake LINK_OPTS="-L. ${LDFLAGS}" || die "failed to build the mediaserver"
96
97 cd "${WORKDIR}/live-shared"
98 einfo "Beginning shared library build"
99 ./genMakefiles gentoo-so-r1
100 emake -j1 LINK_OPTS="-L. ${LDFLAGS}" LIB_SUFFIX="so.${LIVE_ABI_VERSION}" || die "failed to build shared libraries"
101 }
102
103 src_install() {
104 for library in UsageEnvironment liveMedia BasicUsageEnvironment groupsock; do
105 dolib.a live-static/${library}/lib${library}.a
106 dolib.so live-shared/${library}/lib${library}.so.${LIVE_ABI_VERSION}
107 dosym lib${library}.so.${LIVE_ABI_VERSION} /usr/$(get_libdir)/lib${library}.so
108
109 insinto /usr/include/${library}
110 doins live-shared/${library}/include/*h
111 done
112
113 # Should we really install these?
114 find live-static/testProgs -type f -perm +111 -print0 | \
115 xargs -0 dobin
116
117 #install included live555MediaServer aplication
118 dobin live-static/mediaServer/live555MediaServer
119
120 # install docs
121 dodoc live-static/README
122 }
123
124 pkg_postinst() {
125 ewarn "If you are upgrading from a version prior to live-2008.02.08"
126 ewarn "Please make sure to rebuild applications built against ${PN}"
127 ewarn "like vlc or mplayer. ${PN} may have had ABI changes and ${PN}"
128 ewarn "support might be broken."
129 }