diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-10-20 15:06:21 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-10-20 15:06:21 +0200 |
commit | 1d68f391ba35393a0e98ef7f7519105f29f4ad41 (patch) | |
tree | 5027da5d73fef838d6f4cfe977d904f6bb1e91e3 /media-plugins | |
parent | sys-devel/bmake: bump to 20160926 (diff) | |
download | gentoo-1d68f391ba35393a0e98ef7f7519105f29f4ad41.tar.gz gentoo-1d68f391ba35393a0e98ef7f7519105f29f4ad41.tar.bz2 gentoo-1d68f391ba35393a0e98ef7f7519105f29f4ad41.zip |
media-plugins/live: bump to 2016.10.11
Package-Manager: portage-2.3.2
Diffstat (limited to 'media-plugins')
-rw-r--r-- | media-plugins/live/Manifest | 1 | ||||
-rw-r--r-- | media-plugins/live/files/live-recursive3.patch | 14 | ||||
-rw-r--r-- | media-plugins/live/live-2016.10.11.ebuild | 129 |
3 files changed, 144 insertions, 0 deletions
diff --git a/media-plugins/live/Manifest b/media-plugins/live/Manifest index a11ca2ca7f8f..23d2a65829d7 100644 --- a/media-plugins/live/Manifest +++ b/media-plugins/live/Manifest @@ -6,3 +6,4 @@ DIST live.2016.08.27.tar.gz 619652 SHA256 2fd0bcb4b4f0dc15991550b0080eebc4cf586d DIST live.2016.09.05.tar.gz 619725 SHA256 afd7bd5fd928737b4ae73bb2557cd6e84aa1eb1c9c9e7d6e9b103954ee2a8cee SHA512 0098d26195879c6a9915aef99e41049bdc2244d04209477b2943aa031c6e1b64775d27a3bd1d089e6b6d420d51cc076caeeda20b16f14b6e72b730499d38cec9 WHIRLPOOL 8952e8fe418f6efe3732ddd3e9a2df67b5fe580b9d163726d0517b30acead2ab19526b02def6fa55a288c66659229cc7173aabc2301eaff67e6e2bfc083f8bd7 DIST live.2016.09.12.tar.gz 619910 SHA256 09a046d0bf952291d4d70c26de4741ac11f049ee737592e6a251073cb3ecf9e0 SHA512 d45e5a47676e14df17676f25f1ffbd37f43f5f34e5553723e429b28d56a127065620427c1e007cec9a0ef214c6167b039dca89d9c06c291caab36a7e0ba10978 WHIRLPOOL 0114694ce7c2009c69e25dad89084f4619fcd6ed536d0018588b2098e9c80ae1e342c035f2999e01fc2a183e40ce12b1ea22b9f2fc7cbdda8b436479b106db00 DIST live.2016.09.22.tar.gz 623621 SHA256 4d108205f4f0abe24224c72129222c1a8865e13d67e5dad6f8e900ef346379ff SHA512 ebfb06ea566003b465ce88cbd838c3a00a28c4bb49e27347c95f5dcbee292eea9f742484ea31e3c0ed7aa0fbb704c35e0136335f426e73b29b6cb24658f335a0 WHIRLPOOL 6dbc7643713e6870984176ef51d99908b5b142ad4277b7db89d3d0a9e340d224f267773b711701c2656e8bd32c8bd09b7854e41504b8f6b6f74f9821eb5bd02a +DIST live.2016.10.11.tar.gz 623691 SHA256 7b2b43c6d235bb6598851047b229af0e4d57b84de00ed9daa6c8cb45198797d7 SHA512 f7d5f4aee4eb3a11b4ac76ae16db2f33fba6cc3fd6e79d68c43c1d808024113829966f27aa52d9e8ac3346f6cccfcc4a23bc5ada997b6cdde4b013f046451edb WHIRLPOOL eaf3194d488a0bd18a508edc8fbed19f2fbcb7a14d0dfde6968d121586c86fb43fba15324aa7544fad1551f32cfadb019fe55edc6ff697f3c3d4a2d9f4e7a94e diff --git a/media-plugins/live/files/live-recursive3.patch b/media-plugins/live/files/live-recursive3.patch new file mode 100644 index 000000000000..29afe86e8197 --- /dev/null +++ b/media-plugins/live/files/live-recursive3.patch @@ -0,0 +1,14 @@ +Index: live/Makefile.tail +=================================================================== +--- live.orig/Makefile.tail ++++ live/Makefile.tail +@@ -16,9 +16,6 @@ all: + cd $(GROUPSOCK_DIR) ; $(MAKE) + cd $(USAGE_ENVIRONMENT_DIR) ; $(MAKE) + cd $(BASIC_USAGE_ENVIRONMENT_DIR) ; $(MAKE) +- cd $(TESTPROGS_DIR) ; $(MAKE) +- cd $(MEDIA_SERVER_DIR) ; $(MAKE) +- cd $(PROXY_SERVER_DIR) ; $(MAKE) + @echo + @echo "For more information about this source code (including your obligations under the LGPL), please see our FAQ at http://live555.com/liveMedia/faq.html" + diff --git a/media-plugins/live/live-2016.10.11.ebuild b/media-plugins/live/live-2016.10.11.ebuild new file mode 100644 index 000000000000..adf2aeb6d3dc --- /dev/null +++ b/media-plugins/live/live-2016.10.11.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit flag-o-matic eutils toolchain-funcs multilib multilib-minimal + +DESCRIPTION="Libraries for standards-based RTP/RTCP/RTSP multimedia streaming" +HOMEPAGE="http://www.live555.com/" +SRC_URI="http://www.live555.com/liveMedia/public/${P/-/.}.tar.gz + mirror://gentoo/${P/-/.}.tar.gz" + +LICENSE="LGPL-2.1" +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" +IUSE="examples static-libs" +DOCS=( "live-shared/README" ) + +# Alexis Ballier <aballier@gentoo.org> +# Be careful, bump this everytime you bump the package and the ABI has changed. +# If you don't know, ask someone. +LIVE_ABI_VERSION=7 +SLOT="0/${LIVE_ABI_VERSION}" + +src_unpack() { + unpack ${A} + mkdir -p "${S}" + mv "${WORKDIR}/live" "${S}/" || die +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-recursive3.patch" + + if use static-libs ; then + cp -pPR live live-shared + mv live live-static + else + mv live live-shared + fi + + use static-libs && cp "${FILESDIR}/config.gentoo" live-static + cp "${FILESDIR}/config.gentoo-so-r1" live-shared + + case ${CHOST} in + *-solaris*) + use static-libs && { sed -i \ + -e '/^COMPILE_OPTS /s/$/ -DSOLARIS -DXLOCALE_NOT_USED/' \ + -e '/^LIBS_FOR_CONSOLE_APPLICATION /s/$/ -lsocket -lnsl/' \ + live-static/config.gentoo \ + || die ; } + sed -i \ + -e '/^COMPILE_OPTS /s/$/ -DSOLARIS -DXLOCALE_NOT_USED/' \ + -e '/^LIBS_FOR_CONSOLE_APPLICATION /s/$/ -lsocket -lnsl/' \ + live-shared/config.gentoo-so-r1 \ + || die + ;; + *-darwin*) + use static-libs && { sed -i \ + -e '/^COMPILE_OPTS /s/$/ -DBSD=1 -DHAVE_SOCKADDR_LEN=1/' \ + -e '/^LINK /s/$/ /' \ + -e '/^LIBRARY_LINK /s/$/ /' \ + -e '/^LIBRARY_LINK_OPTS /s/-Bstatic//' \ + live-static/config.gentoo \ + || die static ; } + sed -i \ + -e '/^COMPILE_OPTS /s/$/ -DBSD=1 -DHAVE_SOCKADDR_LEN=1/' \ + -e '/^LINK /s/$/ /' \ + -e '/^LIBRARY_LINK /s/=.*$/= $(CXX) -o /' \ + -e '/^LIBRARY_LINK_OPTS /s:-shared.*$:-undefined suppress -flat_namespace -dynamiclib -install_name '"${EPREFIX}/usr/$(get_libdir)/"'$@:' \ + -e '/^LIB_SUFFIX /s/so/dylib/' \ + live-shared/config.gentoo-so-r1 \ + || die shared + ;; + esac + multilib_copy_sources +} + +src_configure() { :; } + +multilib_src_compile() { + tc-export CC CXX LD + + if use static-libs ; then + cd "${BUILD_DIR}/live-static" + + einfo "Beginning static library build" + ./genMakefiles gentoo + emake -j1 LINK_OPTS="-L. $(raw-ldflags)" || die "failed to build static libraries" + fi + + cd "${BUILD_DIR}/live-shared" + einfo "Beginning shared library build" + ./genMakefiles gentoo-so-r1 + local suffix=$(get_libname ${LIVE_ABI_VERSION}) + emake -j1 LINK_OPTS="-L. ${LDFLAGS}" LIB_SUFFIX="${suffix#.}" || die "failed to build shared libraries" + + for i in liveMedia groupsock UsageEnvironment BasicUsageEnvironment ; do + pushd "${BUILD_DIR}/live-shared/${i}" > /dev/null + ln -s lib${i}.${suffix#.} lib${i}$(get_libname) || die + popd > /dev/null + done + + if multilib_is_native_abi; then + einfo "Beginning programs build" + for i in $(use examples && echo "testProgs") proxyServer mediaServer ; do + cd "${BUILD_DIR}/live-shared/${i}" + emake LINK_OPTS="-L. ${LDFLAGS}" || die "failed to build test programs" + done + fi +} + +multilib_src_install() { + for library in UsageEnvironment liveMedia BasicUsageEnvironment groupsock; do + use static-libs && dolib.a live-static/${library}/lib${library}.a + dolib.so live-shared/${library}/lib${library}$(get_libname ${LIVE_ABI_VERSION}) + dosym lib${library}$(get_libname ${LIVE_ABI_VERSION}) /usr/$(get_libdir)/lib${library}$(get_libname) + + insinto /usr/include/${library} + doins live-shared/${library}/include/*h + done + + if multilib_is_native_abi; then + # Should we really install these? + use examples && find live-shared/testProgs -type f -perm 755 -print0 | \ + xargs -0 dobin + + dobin live-shared/mediaServer/live555MediaServer + dobin live-shared/proxyServer/live555ProxyServer + fi +} |