Skip to content

Commit

Permalink
media-plugins/live: bump to 2016.10.11
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.2
  • Loading branch information
aballier committed Oct 20, 2016
1 parent 3099a9a commit 1d68f39
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 0 deletions.
1 change: 1 addition & 0 deletions media-plugins/live/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions media-plugins/live/files/live-recursive3.patch
Original file line number Diff line number Diff line change
@@ -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"

129 changes: 129 additions & 0 deletions media-plugins/live/live-2016.10.11.ebuild
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
# 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
}

0 comments on commit 1d68f39

Please sign in to comment.