1 |
commit: d0589ea4ec3a4ab8d32f662f76d9d8ad29a9f7b9 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 28 16:26:21 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 28 20:13:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0589ea4 |
7 |
|
8 |
media-plugins/live: Bump to 2017.01.26 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
media-plugins/live/Manifest | 1 + |
13 |
media-plugins/live/live-2017.01.26.ebuild | 129 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 130 insertions(+) |
15 |
|
16 |
diff --git a/media-plugins/live/Manifest b/media-plugins/live/Manifest |
17 |
index 0be9b18..5cc84c5 100644 |
18 |
--- a/media-plugins/live/Manifest |
19 |
+++ b/media-plugins/live/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST live.2013.02.11.tar.gz 570837 SHA256 2cd619e61b9293a094a2cbb8dd7a7505f8e74e |
21 |
DIST live.2016.10.11.tar.gz 623691 SHA256 7b2b43c6d235bb6598851047b229af0e4d57b84de00ed9daa6c8cb45198797d7 SHA512 f7d5f4aee4eb3a11b4ac76ae16db2f33fba6cc3fd6e79d68c43c1d808024113829966f27aa52d9e8ac3346f6cccfcc4a23bc5ada997b6cdde4b013f046451edb WHIRLPOOL eaf3194d488a0bd18a508edc8fbed19f2fbcb7a14d0dfde6968d121586c86fb43fba15324aa7544fad1551f32cfadb019fe55edc6ff697f3c3d4a2d9f4e7a94e |
22 |
DIST live.2016.10.21.tar.gz 620822 SHA256 65b1aa7ec7c487466020e980d1fd68007390f7575b384c1d0fed49b94ba2c240 SHA512 10846fd6d5482bbea131ae805137077997e9dec242665e3c01d699d5584154c65049e8c520ea855599e554154a148e61fea77b592d97c814a4a98c773658d8f5 WHIRLPOOL d503991a378f2397788895c3c2794b0a870b5935f9a89f8e3316a0095a9e852ac06978f6788138d9fb055611fa07d0cbfa013c99655ea481fab23d07b9253be9 |
23 |
DIST live.2016.11.28.tar.gz 626781 SHA256 08b93a20bc302bed1da2f05621f37fda962dbfc272132afa6fa1058d222c238a SHA512 319639acef6474b2eec0bdfa3416ca3c88a60f57d9d22911eee018fc494978fde93a241556bc0ea309f0b6a35e0242bd44a8f4de83a845f80d9ca5f94254ade6 WHIRLPOOL 877c1d17dbd62437712d90702112feefc2b0c87aff06ebdf6abceb4f5508dd26b166cc125cc0916b72c90f6075dfcd4e82084490cc7c2dc703ab5fd042dfb420 |
24 |
+DIST live.2017.01.26.tar.gz 629183 SHA256 3c4d440b79e415eb3a86d30d0cd061d3edcaaa0281909e8629e9756c2c375458 SHA512 2123d78c18cb2a0f522450aa426beceefe7f70b659ec9c9f04045cbde8e53a927b7909172a42da3967be73989b16f444f02e0b70dab671d4c75e567d8939ad23 WHIRLPOOL 49db6d3f25e310dc8d90e7e257af1b5a844bd1efbe79525bb196e7bc4b5d65a56eecac9cb2a421c3425f3a5caae4efa3856469880f1d578117f52e43f67ede48 |
25 |
|
26 |
diff --git a/media-plugins/live/live-2017.01.26.ebuild b/media-plugins/live/live-2017.01.26.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..4870186 |
29 |
--- /dev/null |
30 |
+++ b/media-plugins/live/live-2017.01.26.ebuild |
31 |
@@ -0,0 +1,129 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+inherit flag-o-matic eutils toolchain-funcs multilib multilib-minimal |
38 |
+ |
39 |
+DESCRIPTION="Libraries for standards-based RTP/RTCP/RTSP multimedia streaming" |
40 |
+HOMEPAGE="http://www.live555.com/" |
41 |
+SRC_URI="http://www.live555.com/liveMedia/public/${P/-/.}.tar.gz |
42 |
+ mirror://gentoo/${P/-/.}.tar.gz" |
43 |
+ |
44 |
+LICENSE="LGPL-2.1" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
46 |
+IUSE="examples static-libs" |
47 |
+DOCS=( "live-shared/README" ) |
48 |
+ |
49 |
+# Alexis Ballier <aballier@g.o> |
50 |
+# Be careful, bump this everytime you bump the package and the ABI has changed. |
51 |
+# If you don't know, ask someone. |
52 |
+LIVE_ABI_VERSION=7 |
53 |
+SLOT="0/${LIVE_ABI_VERSION}" |
54 |
+ |
55 |
+src_unpack() { |
56 |
+ unpack ${A} |
57 |
+ mkdir -p "${S}" |
58 |
+ mv "${WORKDIR}/live" "${S}/" || die |
59 |
+} |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ epatch "${FILESDIR}/${PN}-recursive3.patch" |
63 |
+ |
64 |
+ if use static-libs ; then |
65 |
+ cp -pPR live live-shared |
66 |
+ mv live live-static |
67 |
+ else |
68 |
+ mv live live-shared |
69 |
+ fi |
70 |
+ |
71 |
+ use static-libs && cp "${FILESDIR}/config.gentoo" live-static |
72 |
+ cp "${FILESDIR}/config.gentoo-so-r1" live-shared |
73 |
+ |
74 |
+ case ${CHOST} in |
75 |
+ *-solaris*) |
76 |
+ use static-libs && { sed -i \ |
77 |
+ -e '/^COMPILE_OPTS /s/$/ -DSOLARIS -DXLOCALE_NOT_USED/' \ |
78 |
+ -e '/^LIBS_FOR_CONSOLE_APPLICATION /s/$/ -lsocket -lnsl/' \ |
79 |
+ live-static/config.gentoo \ |
80 |
+ || die ; } |
81 |
+ sed -i \ |
82 |
+ -e '/^COMPILE_OPTS /s/$/ -DSOLARIS -DXLOCALE_NOT_USED/' \ |
83 |
+ -e '/^LIBS_FOR_CONSOLE_APPLICATION /s/$/ -lsocket -lnsl/' \ |
84 |
+ live-shared/config.gentoo-so-r1 \ |
85 |
+ || die |
86 |
+ ;; |
87 |
+ *-darwin*) |
88 |
+ use static-libs && { sed -i \ |
89 |
+ -e '/^COMPILE_OPTS /s/$/ -DBSD=1 -DHAVE_SOCKADDR_LEN=1/' \ |
90 |
+ -e '/^LINK /s/$/ /' \ |
91 |
+ -e '/^LIBRARY_LINK /s/$/ /' \ |
92 |
+ -e '/^LIBRARY_LINK_OPTS /s/-Bstatic//' \ |
93 |
+ live-static/config.gentoo \ |
94 |
+ || die static ; } |
95 |
+ sed -i \ |
96 |
+ -e '/^COMPILE_OPTS /s/$/ -DBSD=1 -DHAVE_SOCKADDR_LEN=1/' \ |
97 |
+ -e '/^LINK /s/$/ /' \ |
98 |
+ -e '/^LIBRARY_LINK /s/=.*$/= $(CXX) -o /' \ |
99 |
+ -e '/^LIBRARY_LINK_OPTS /s:-shared.*$:-undefined suppress -flat_namespace -dynamiclib -install_name '"${EPREFIX}/usr/$(get_libdir)/"'$@:' \ |
100 |
+ -e '/^LIB_SUFFIX /s/so/dylib/' \ |
101 |
+ live-shared/config.gentoo-so-r1 \ |
102 |
+ || die shared |
103 |
+ ;; |
104 |
+ esac |
105 |
+ multilib_copy_sources |
106 |
+} |
107 |
+ |
108 |
+src_configure() { :; } |
109 |
+ |
110 |
+multilib_src_compile() { |
111 |
+ tc-export CC CXX LD |
112 |
+ |
113 |
+ if use static-libs ; then |
114 |
+ cd "${BUILD_DIR}/live-static" |
115 |
+ |
116 |
+ einfo "Beginning static library build" |
117 |
+ ./genMakefiles gentoo |
118 |
+ emake -j1 LINK_OPTS="-L. $(raw-ldflags)" || die "failed to build static libraries" |
119 |
+ fi |
120 |
+ |
121 |
+ cd "${BUILD_DIR}/live-shared" |
122 |
+ einfo "Beginning shared library build" |
123 |
+ ./genMakefiles gentoo-so-r1 |
124 |
+ local suffix=$(get_libname ${LIVE_ABI_VERSION}) |
125 |
+ emake -j1 LINK_OPTS="-L. ${LDFLAGS}" LIB_SUFFIX="${suffix#.}" || die "failed to build shared libraries" |
126 |
+ |
127 |
+ for i in liveMedia groupsock UsageEnvironment BasicUsageEnvironment ; do |
128 |
+ pushd "${BUILD_DIR}/live-shared/${i}" > /dev/null |
129 |
+ ln -s lib${i}.${suffix#.} lib${i}$(get_libname) || die |
130 |
+ popd > /dev/null |
131 |
+ done |
132 |
+ |
133 |
+ if multilib_is_native_abi; then |
134 |
+ einfo "Beginning programs build" |
135 |
+ for i in $(use examples && echo "testProgs") proxyServer mediaServer ; do |
136 |
+ cd "${BUILD_DIR}/live-shared/${i}" |
137 |
+ emake LINK_OPTS="-L. ${LDFLAGS}" || die "failed to build test programs" |
138 |
+ done |
139 |
+ fi |
140 |
+} |
141 |
+ |
142 |
+multilib_src_install() { |
143 |
+ for library in UsageEnvironment liveMedia BasicUsageEnvironment groupsock; do |
144 |
+ use static-libs && dolib.a live-static/${library}/lib${library}.a |
145 |
+ dolib.so live-shared/${library}/lib${library}$(get_libname ${LIVE_ABI_VERSION}) |
146 |
+ dosym lib${library}$(get_libname ${LIVE_ABI_VERSION}) /usr/$(get_libdir)/lib${library}$(get_libname) |
147 |
+ |
148 |
+ insinto /usr/include/${library} |
149 |
+ doins live-shared/${library}/include/*h |
150 |
+ done |
151 |
+ |
152 |
+ if multilib_is_native_abi; then |
153 |
+ # Should we really install these? |
154 |
+ use examples && find live-shared/testProgs -type f -perm 755 -print0 | \ |
155 |
+ xargs -0 dobin |
156 |
+ |
157 |
+ dobin live-shared/mediaServer/live555MediaServer |
158 |
+ dobin live-shared/proxyServer/live555ProxyServer |
159 |
+ fi |
160 |
+} |