Gentoo Archives: gentoo-commits

From: John Helmert III <ajak@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/live/
Date: Sat, 12 Jun 2021 18:44:03
Message-Id: 1623523422.8e14ff1a018a8d131838439a52a4849f675aaa6a.ajak@gentoo
1 commit: 8e14ff1a018a8d131838439a52a4849f675aaa6a
2 Author: John Helmert III <ajak <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 12 18:34:01 2021 +0000
4 Commit: John Helmert III <ajak <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 12 18:43:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e14ff1a
7
8 media-plugins/live: add 2021.05.22
9
10 Bug: https://bugs.gentoo.org/732598
11 Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
12
13 media-plugins/live/Manifest | 1 +
14 media-plugins/live/live-2021.05.22.ebuild | 108 ++++++++++++++++++++++++++++++
15 2 files changed, 109 insertions(+)
16
17 diff --git a/media-plugins/live/Manifest b/media-plugins/live/Manifest
18 index fd63e86d4e2..f77ddb4bdae 100644
19 --- a/media-plugins/live/Manifest
20 +++ b/media-plugins/live/Manifest
21 @@ -1 +1,2 @@
22 DIST live.2020.05.15.tar.gz 7229400 BLAKE2B 74532c178aa1044750110eb52561b99cd70874574ee84992201a145b18091d4f8475e2a299a83f0fe42c7e64483d46175fb76465a22509db3ba2633aff1327f6 SHA512 d53fb7e8c586f50e561aa361567ccd45babdbbcbe96a06d95e42a04a54b23ac3f474fefcacf94a49b604008623acf06789b92238364713853babbe356eeac4aa
23 +DIST live.2021.05.22.tar.gz 682749 BLAKE2B 38663f8c5dbd8cccf4e5cfe685b0eb393559195eba852fcdf6c38c7be936948d2727da91e829aedbde08eab6edb6082533d14061edfcf125d82c925bffdb9f90 SHA512 4021cbdaffb48b9b361e931fa71f89db1e116fe8c4e57df78d54493b111a8c6249431cc418a20352a45a75ef240712609eed3aa7468c6049996dd2451ae2941c
24
25 diff --git a/media-plugins/live/live-2021.05.22.ebuild b/media-plugins/live/live-2021.05.22.ebuild
26 new file mode 100644
27 index 00000000000..8d95043ecf5
28 --- /dev/null
29 +++ b/media-plugins/live/live-2021.05.22.ebuild
30 @@ -0,0 +1,108 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit toolchain-funcs
37 +
38 +DESCRIPTION="Libraries for standards-based RTP/RTCP/RTSP multimedia streaming"
39 +HOMEPAGE="http://www.live555.com/"
40 +SRC_URI="http://www.live555.com/liveMedia/public/${P/-/.}.tar.gz"
41 +
42 +LICENSE="LGPL-2.1"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x86-solaris"
44 +IUSE="ssl"
45 +
46 +BDEPEND="virtual/pkgconfig"
47 +DEPEND="
48 + ssl? (
49 + dev-libs/openssl:0=
50 + )
51 +"
52 +RDEPEND="${DEPEND}"
53 +
54 +DOCS=( "live-shared/README" )
55 +
56 +# Alexis Ballier <aballier@g.o>, Sam James <sam@g.o>
57 +# Be careful, bump this everytime you bump the package and the ABI has changed.
58 +# If you don't know, ask someone.
59 +# You may wish to use a site like https://abi-laboratory.pro/index.php?view=timeline&l=live555
60 +LIVE_ABI_VERSION=9
61 +SLOT="0/${LIVE_ABI_VERSION}"
62 +
63 +S="${WORKDIR}/live"
64 +
65 +src_prepare() {
66 + default
67 +
68 + cp "${FILESDIR}/config.gentoo-so-r3" "${S}/config.gentoo-so-r1" || die
69 +
70 + # This is all legacy stuff which needs to be cleaned up
71 + case ${CHOST} in
72 + *-solaris*)
73 + sed -i \
74 + -e '/^COMPILE_OPTS /s/$/ -DSOLARIS -DXLOCALE_NOT_USED/' \
75 + -e '/^LIBS_FOR_CONSOLE_APPLICATION /s/$/ -lsocket -lnsl/' \
76 + live/config.gentoo-so-r1 \
77 + || die
78 + ;;
79 + *-darwin*)
80 + sed -i \
81 + -e '/^COMPILE_OPTS /s/$/ -DBSD=1 -DHAVE_SOCKADDR_LEN=1/' \
82 + -e '/^LINK /s/$/ /' \
83 + -e '/^LIBRARY_LINK /s/=.*$/= $(CXX) -o /' \
84 + -e '/^LIBRARY_LINK_OPTS /s:-shared.*$:-undefined suppress -flat_namespace -dynamiclib -install_name '"${EPREFIX}/usr/$(get_libdir)/"'$@:' \
85 + -e '/^LIB_SUFFIX /s/so/dylib/' \
86 + live/config.gentoo-so-r1 \
87 + || die
88 + ;;
89 + esac
90 +}
91 +
92 +src_configure() {
93 + # This ebuild uses its own build system
94 + # We don't want to call ./configure or anything here.
95 + # The only thing we can do is honour the user's SSL preference.
96 + if use ssl ; then
97 + sed -i 's/-DNO_OPENSSL=1//' "${S}/config.gentoo-so-r1" || die
98 + fi
99 +
100 + # Bug 718912
101 + tc-export CC CXX
102 +
103 + # And defer to the scripts that upstream provide.
104 + ./genMakefiles gentoo-so-r1 || die
105 +}
106 +
107 +src_compile() {
108 + export suffix="${LIVE_ABI_VERSION}.so"
109 + local link_opts="$(usex ssl "$($(tc-getPKG_CONFIG) --libs libssl libcrypto)" '') -L. ${LDFLAGS}"
110 + local lib_suffix="${suffix#.}"
111 +
112 + einfo "Beginning shared library build"
113 + emake LINK_OPTS="${link_opts}" LIB_SUFFIX="${lib_suffix}"
114 +
115 + for i in liveMedia groupsock UsageEnvironment BasicUsageEnvironment ; do
116 + cd "${S}/${i}" || die
117 + ln -s "lib${i}.${suffix}" "lib${i}.so" || die
118 + done
119 +
120 + einfo "Beginning programs build"
121 + for i in proxyServer mediaServer ; do
122 + cd "${S}/${i}" || die
123 + emake LINK_OPTS="${link_opts}"
124 + done
125 +}
126 +
127 +src_install() {
128 + for library in UsageEnvironment liveMedia BasicUsageEnvironment groupsock ; do
129 + dolib.so "${S}/${library}/lib${library}.${suffix}"
130 + dosym "lib${library}.${suffix}" "/usr/$(get_libdir)/lib${library}.so"
131 +
132 + insinto /usr/include/"${library}"
133 + doins "${S}/${library}"/include/*h
134 + done
135 +
136 + dobin "${S}"/mediaServer/live555MediaServer
137 + dobin "${S}"/proxyServer/live555ProxyServer
138 +}