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