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-2011.12.23.ebuild
Date: Sat, 31 Dec 2011 11:31:49
Message-Id: 20111231113140.944A22004B@flycatcher.gentoo.org
1 aballier 11/12/31 11:31:40
2
3 Modified: ChangeLog
4 Added: live-2011.12.23.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.139 media-plugins/live/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/live/ChangeLog?rev=1.139&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/live/ChangeLog?rev=1.139&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/live/ChangeLog?r1=1.138&r2=1.139
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-plugins/live/ChangeLog,v
20 retrieving revision 1.138
21 retrieving revision 1.139
22 diff -u -r1.138 -r1.139
23 --- ChangeLog 22 Dec 2011 12:48:42 -0000 1.138
24 +++ ChangeLog 31 Dec 2011 11:31:40 -0000 1.139
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-plugins/live
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/live/ChangeLog,v 1.138 2011/12/22 12:48:42 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/live/ChangeLog,v 1.139 2011/12/31 11:31:40 aballier Exp $
30 +
31 +*live-2011.12.23 (31 Dec 2011)
32 +
33 + 31 Dec 2011; Alexis Ballier <aballier@g.o> +live-2011.12.23.ebuild:
34 + version bump
35
36 *live-2011.12.20 (22 Dec 2011)
37
38
39
40
41 1.1 media-plugins/live/live-2011.12.23.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/live/live-2011.12.23.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/live/live-2011.12.23.ebuild?rev=1.1&content-type=text/plain
45
46 Index: live-2011.12.23.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-plugins/live/live-2011.12.23.ebuild,v 1.1 2011/12/31 11:31:40 aballier Exp $
51
52 EAPI=3
53 inherit flag-o-matic eutils toolchain-funcs multilib
54
55 DESCRIPTION="Source-code libraries for standards-based RTP/RTCP/RTSP multimedia streaming, suitable for embedded and/or low-cost streaming applications"
56 HOMEPAGE="http://www.live555.com/"
57 SRC_URI="http://www.live555.com/liveMedia/public/${P/-/.}.tar.gz"
58
59 LICENSE="LGPL-2.1"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
62 IUSE=""
63
64 S="${WORKDIR}"
65
66 # Alexis Ballier <aballier@g.o>
67 # Be careful, bump this everytime you bump the package and the ABI has changed.
68 # If you don't know, ask someone.
69 LIVE_ABI_VERSION=4
70
71 src_prepare() {
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 case ${CHOST} in
82 *-solaris*)
83 sed -i \
84 -e '/^COMPILE_OPTS /s/$/ -DSOLARIS/' \
85 -e '/^LIBS_FOR_CONSOLE_APPLICATION /s/$/ -lsocket -lnsl/' \
86 live-static/config.gentoo \
87 live-shared/config.gentoo-so-r1 \
88 || die
89 ;;
90 *-darwin*)
91 sed -i \
92 -e '/^COMPILE_OPTS /s/$/ -DBSD=1 -DHAVE_SOCKADDR_LEN=1/' \
93 -e '/^LINK /s/$/ /' \
94 -e '/^LIBRARY_LINK /s/$/ /' \
95 -e '/^LIBRARY_LINK_OPTS /s/-Bstatic//' \
96 live-static/config.gentoo \
97 || die static
98 sed -i \
99 -e '/^COMPILE_OPTS /s/$/ -DBSD=1 -DHAVE_SOCKADDR_LEN=1/' \
100 -e '/^LINK /s/$/ /' \
101 -e '/^LIBRARY_LINK /s/=.*$/= $(CXX) -o /' \
102 -e '/^LIBRARY_LINK_OPTS /s:-shared.*$:-undefined suppress -flat_namespace -dynamiclib -install_name '"${EPREFIX}/usr/$(get_libdir)/"'$@:' \
103 live-shared/config.gentoo-so-r1 \
104 || die shared
105 ;;
106 esac
107 }
108
109 src_configure() { :; }
110
111 src_compile() {
112 tc-export CC CXX LD
113
114 cd "${WORKDIR}/live-static"
115
116 einfo "Beginning static library build"
117 ./genMakefiles gentoo
118 emake -j1 LINK_OPTS="-L. $(raw-ldflags)" || die "failed to build static libraries"
119
120 einfo "Beginning programs build"
121 cd "${WORKDIR}/live-static/testProgs"
122 emake LINK_OPTS="-L. ${LDFLAGS}" || die "failed to build test programs"
123 cd "${WORKDIR}/live-static/mediaServer"
124 emake LINK_OPTS="-L. ${LDFLAGS}" || die "failed to build the mediaserver"
125
126 cd "${WORKDIR}/live-shared"
127 einfo "Beginning shared library build"
128 ./genMakefiles gentoo-so-r1
129 local suffix=$(get_libname ${LIVE_ABI_VERSION})
130 emake -j1 LINK_OPTS="-L. ${LDFLAGS}" LIB_SUFFIX="${suffix#.}" || die "failed to build shared libraries"
131 }
132
133 src_install() {
134 for library in UsageEnvironment liveMedia BasicUsageEnvironment groupsock; do
135 dolib.a live-static/${library}/lib${library}.a
136 dolib.so live-shared/${library}/lib${library}$(get_libname ${LIVE_ABI_VERSION})
137 dosym lib${library}$(get_libname ${LIVE_ABI_VERSION}) /usr/$(get_libdir)/lib${library}$(get_libname)
138
139 insinto /usr/include/${library}
140 doins live-shared/${library}/include/*h
141 done
142
143 # Should we really install these?
144 find live-static/testProgs -type f -perm +111 -print0 | \
145 xargs -0 dobin
146
147 #install included live555MediaServer aplication
148 dobin live-static/mediaServer/live555MediaServer
149
150 # install docs
151 dodoc live-static/README
152 }
153
154 pkg_postinst() {
155 ewarn "If you are upgrading from a version prior to live-2008.02.08"
156 ewarn "Please make sure to rebuild applications built against ${PN}"
157 ewarn "like vlc or mplayer. ${PN} may have had ABI changes and ${PN}"
158 ewarn "support might be broken."
159 }