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: live-2012.04.04.ebuild ChangeLog
Date: Thu, 05 Apr 2012 12:32:54
Message-Id: 20120405123245.14BB52004B@flycatcher.gentoo.org
1 aballier 12/04/05 12:32:45
2
3 Modified: ChangeLog
4 Added: live-2012.04.04.ebuild
5 Log:
6 version bump, bump abi to be be on the safe side
7
8 (Portage version: 2.2.0_alpha99/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.153 media-plugins/live/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/live/ChangeLog?rev=1.153&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/live/ChangeLog?rev=1.153&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/live/ChangeLog?r1=1.152&r2=1.153
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-plugins/live/ChangeLog,v
20 retrieving revision 1.152
21 retrieving revision 1.153
22 diff -u -r1.152 -r1.153
23 --- ChangeLog 5 Apr 2012 11:54:04 -0000 1.152
24 +++ ChangeLog 5 Apr 2012 12:32:44 -0000 1.153
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.152 2012/04/05 11:54:04 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/live/ChangeLog,v 1.153 2012/04/05 12:32:44 aballier Exp $
30 +
31 +*live-2012.04.04 (05 Apr 2012)
32 +
33 + 05 Apr 2012; Alexis Ballier <aballier@g.o> +live-2012.04.04.ebuild:
34 + version bump, bump abi to be be on the safe side
35
36 05 Apr 2012; Alexis Ballier <aballier@g.o> -live-2009.06.02.ebuild,
37 -files/config.gentoo-so:
38
39
40
41 1.1 media-plugins/live/live-2012.04.04.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/live/live-2012.04.04.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/live/live-2012.04.04.ebuild?rev=1.1&content-type=text/plain
45
46 Index: live-2012.04.04.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.04.04.ebuild,v 1.1 2012/04/05 12:32:44 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=5
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 # Still build the old synchronous interface as mplayer still needs it.
115 # Please drop me at some point!
116 append-flags '-DRTSPCLIENT_SYNCHRONOUS_INTERFACE'
117
118 cd "${WORKDIR}/live-static"
119
120 einfo "Beginning static library build"
121 ./genMakefiles gentoo
122 emake -j1 LINK_OPTS="-L. $(raw-ldflags)" || die "failed to build static libraries"
123
124 einfo "Beginning programs build"
125 cd "${WORKDIR}/live-static/testProgs"
126 emake LINK_OPTS="-L. ${LDFLAGS}" || die "failed to build test programs"
127 cd "${WORKDIR}/live-static/mediaServer"
128 emake LINK_OPTS="-L. ${LDFLAGS}" || die "failed to build the mediaserver"
129
130 cd "${WORKDIR}/live-shared"
131 einfo "Beginning shared library build"
132 ./genMakefiles gentoo-so-r1
133 local suffix=$(get_libname ${LIVE_ABI_VERSION})
134 emake -j1 LINK_OPTS="-L. ${LDFLAGS}" LIB_SUFFIX="${suffix#.}" || die "failed to build shared libraries"
135 }
136
137 src_install() {
138 for library in UsageEnvironment liveMedia BasicUsageEnvironment groupsock; do
139 dolib.a live-static/${library}/lib${library}.a
140 dolib.so live-shared/${library}/lib${library}$(get_libname ${LIVE_ABI_VERSION})
141 dosym lib${library}$(get_libname ${LIVE_ABI_VERSION}) /usr/$(get_libdir)/lib${library}$(get_libname)
142
143 insinto /usr/include/${library}
144 doins live-shared/${library}/include/*h
145 done
146
147 # Should we really install these?
148 find live-static/testProgs -type f -perm +111 -print0 | \
149 xargs -0 dobin
150
151 #install included live555MediaServer aplication
152 dobin live-static/mediaServer/live555MediaServer
153
154 # install docs
155 dodoc live-static/README
156 }
157
158 pkg_postinst() {
159 ewarn "If you are upgrading from a version prior to live-2008.02.08"
160 ewarn "Please make sure to rebuild applications built against ${PN}"
161 ewarn "like vlc or mplayer. ${PN} may have had ABI changes and ${PN}"
162 ewarn "support might be broken."
163 }