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-2012.06.26.ebuild
Date: Sun, 01 Jul 2012 19:08:44
Message-Id: 20120701190834.BF99B2004B@flycatcher.gentoo.org
1 aballier 12/07/01 19:08:34
2
3 Modified: ChangeLog
4 Added: live-2012.06.26.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha114/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.157 media-plugins/live/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/live/ChangeLog?rev=1.157&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/live/ChangeLog?rev=1.157&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/live/ChangeLog?r1=1.156&r2=1.157
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-plugins/live/ChangeLog,v
20 retrieving revision 1.156
21 retrieving revision 1.157
22 diff -u -r1.156 -r1.157
23 --- ChangeLog 15 Jun 2012 13:31:47 -0000 1.156
24 +++ ChangeLog 1 Jul 2012 19:08:34 -0000 1.157
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-plugins/live
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/live/ChangeLog,v 1.156 2012/06/15 13:31:47 grobian Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/live/ChangeLog,v 1.157 2012/07/01 19:08:34 aballier Exp $
30 +
31 +*live-2012.06.26 (01 Jul 2012)
32 +
33 + 01 Jul 2012; Alexis Ballier <aballier@g.o> +live-2012.06.26.ebuild:
34 + version bump
35
36 15 Jun 2012; Fabian Groffen <grobian@g.o> live-2012.04.21.ebuild:
37 Fix building shared library on Darwin
38
39
40
41 1.1 media-plugins/live/live-2012.06.26.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/live/live-2012.06.26.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/live/live-2012.06.26.ebuild?rev=1.1&content-type=text/plain
45
46 Index: live-2012.06.26.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-plugins/live/live-2012.06.26.ebuild,v 1.1 2012/07/01 19:08:34 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="examples static-libs"
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=6
70
71 src_prepare() {
72 cd "${WORKDIR}"
73 epatch "${FILESDIR}/${PN}-recursive2.patch"
74
75 if use static-libs ; then
76 cp -pPR live live-shared
77 mv live live-static
78 else
79 mv live live-shared
80 fi
81
82 use static-libs && cp "${FILESDIR}/config.gentoo" live-static
83 cp "${FILESDIR}/config.gentoo-so-r1" live-shared
84
85 case ${CHOST} in
86 *-solaris*)
87 use static-libs && { sed -i \
88 -e '/^COMPILE_OPTS /s/$/ -DSOLARIS -DXLOCALE_NOT_USED/' \
89 -e '/^LIBS_FOR_CONSOLE_APPLICATION /s/$/ -lsocket -lnsl/' \
90 live-static/config.gentoo \
91 || die ; }
92 sed -i \
93 -e '/^COMPILE_OPTS /s/$/ -DSOLARIS -DXLOCALE_NOT_USED/' \
94 -e '/^LIBS_FOR_CONSOLE_APPLICATION /s/$/ -lsocket -lnsl/' \
95 live-shared/config.gentoo-so-r1 \
96 || die
97 ;;
98 *-darwin*)
99 use static-libs && { sed -i \
100 -e '/^COMPILE_OPTS /s/$/ -DBSD=1 -DHAVE_SOCKADDR_LEN=1/' \
101 -e '/^LINK /s/$/ /' \
102 -e '/^LIBRARY_LINK /s/$/ /' \
103 -e '/^LIBRARY_LINK_OPTS /s/-Bstatic//' \
104 live-static/config.gentoo \
105 || die static ; }
106 sed -i \
107 -e '/^COMPILE_OPTS /s/$/ -DBSD=1 -DHAVE_SOCKADDR_LEN=1/' \
108 -e '/^LINK /s/$/ /' \
109 -e '/^LIBRARY_LINK /s/=.*$/= $(CXX) -o /' \
110 -e '/^LIBRARY_LINK_OPTS /s:-shared.*$:-undefined suppress -flat_namespace -dynamiclib -install_name '"${EPREFIX}/usr/$(get_libdir)/"'$@:' \
111 -e '/^LIB_SUFFIX /s/so/dylib/' \
112 live-shared/config.gentoo-so-r1 \
113 || die shared
114 ;;
115 esac
116 }
117
118 src_configure() { :; }
119
120 src_compile() {
121 tc-export CC CXX LD
122
123 # Still build the old synchronous interface as mplayer still needs it.
124 # Please drop me at some point!
125 append-flags '-DRTSPCLIENT_SYNCHRONOUS_INTERFACE'
126
127 if use static-libs ; then
128 cd "${WORKDIR}/live-static"
129
130 einfo "Beginning static library build"
131 ./genMakefiles gentoo
132 emake -j1 LINK_OPTS="-L. $(raw-ldflags)" || die "failed to build static libraries"
133 fi
134
135 cd "${WORKDIR}/live-shared"
136 einfo "Beginning shared library build"
137 ./genMakefiles gentoo-so-r1
138 local suffix=$(get_libname ${LIVE_ABI_VERSION})
139 emake -j1 LINK_OPTS="-L. ${LDFLAGS}" LIB_SUFFIX="${suffix#.}" || die "failed to build shared libraries"
140
141 for i in liveMedia groupsock UsageEnvironment BasicUsageEnvironment ; do
142 pushd "${WORKDIR}/live-shared/${i}" > /dev/null
143 ln -s lib${i}.${suffix#.} lib${i}$(get_libname) || die
144 popd > /dev/null
145 done
146
147 einfo "Beginning programs build"
148 for i in $(use examples && echo "testProgs") proxyServer mediaServer ; do
149 cd "${WORKDIR}/live-shared/${i}"
150 emake LINK_OPTS="-L. ${LDFLAGS}" || die "failed to build test programs"
151 done
152 }
153
154 src_install() {
155 for library in UsageEnvironment liveMedia BasicUsageEnvironment groupsock; do
156 use static-libs && dolib.a live-static/${library}/lib${library}.a
157 dolib.so live-shared/${library}/lib${library}$(get_libname ${LIVE_ABI_VERSION})
158 dosym lib${library}$(get_libname ${LIVE_ABI_VERSION}) /usr/$(get_libdir)/lib${library}$(get_libname)
159
160 insinto /usr/include/${library}
161 doins live-shared/${library}/include/*h
162 done
163
164 # Should we really install these?
165 use examples && find live-shared/testProgs -type f -perm +111 -print0 | \
166 xargs -0 dobin
167
168 dobin live-shared/mediaServer/live555MediaServer
169 dobin live-shared/proxyServer/live555ProxyServer
170
171 # install docs
172 dodoc live-shared/README
173 }