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: Sun, 17 Oct 2021 16:08:47
Message-Id: 1634486903.ce2011ee53967755f627e809477b2435df673621.ajak@gentoo
1 commit: ce2011ee53967755f627e809477b2435df673621
2 Author: John Helmert III <ajak <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 17 16:07:16 2021 +0000
4 Commit: John Helmert III <ajak <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 17 16:08:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce2011ee
7
8 media-plugins/live: add 2021.08.24
9
10 Bug: https://bugs.gentoo.org/807622
11 Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
12
13 media-plugins/live/Manifest | 1 +
14 media-plugins/live/live-2021.08.24.ebuild | 108 ++++++++++++++++++++++++++++++
15 2 files changed, 109 insertions(+)
16
17 diff --git a/media-plugins/live/Manifest b/media-plugins/live/Manifest
18 index 91decfc6d1b..6051c4f84a7 100644
19 --- a/media-plugins/live/Manifest
20 +++ b/media-plugins/live/Manifest
21 @@ -1 +1,2 @@
22 DIST live.2021.05.22.tar.gz 682749 BLAKE2B 38663f8c5dbd8cccf4e5cfe685b0eb393559195eba852fcdf6c38c7be936948d2727da91e829aedbde08eab6edb6082533d14061edfcf125d82c925bffdb9f90 SHA512 4021cbdaffb48b9b361e931fa71f89db1e116fe8c4e57df78d54493b111a8c6249431cc418a20352a45a75ef240712609eed3aa7468c6049996dd2451ae2941c
23 +DIST live.2021.08.24.tar.gz 683337 BLAKE2B fabc24498cc5b23b43f11303598b770a84036d0f835a04284bc9fc4f2525d39f4e846e8eb16f724136f9b0caad20cb3dc55b14218fc0ec764822fa22a018642d SHA512 f776e43a9b0792fd41e43f3c06e48f5d766c405d6af4ed5ddac108723f222c844ec5dbe29701b62dff760fbed777935ffc9149080b45d7a7b4c655a7f1fe6dae
24
25 diff --git a/media-plugins/live/live-2021.08.24.ebuild b/media-plugins/live/live-2021.08.24.ebuild
26 new file mode 100644
27 index 00000000000..24964a3eab8
28 --- /dev/null
29 +++ b/media-plugins/live/live-2021.08.24.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=8
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 ~riscv ~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 +}