2015-10-26 13:39:30 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
# Based on https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD
|
2015-11-05 15:56:47 +00:00
|
|
|
let
|
2016-02-18 22:14:44 +00:00
|
|
|
version = "2016.02.09";
|
2015-11-05 15:56:47 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "live555-${version}";
|
2015-10-26 13:39:30 +00:00
|
|
|
|
2015-11-05 15:56:47 +00:00
|
|
|
src = fetchurl { # the upstream doesn't provide a stable URL
|
|
|
|
url = "mirror://sourceforge/slackbuildsdirectlinks/live.${version}.tar.gz";
|
2016-02-18 22:14:44 +00:00
|
|
|
sha256 = "02z2f8z5cy0ajnh9pgar40lsxdknfw5cbyw52138hxnpr6adrvak";
|
2015-10-26 13:39:30 +00:00
|
|
|
};
|
|
|
|
|
2017-11-07 06:27:32 +00:00
|
|
|
postPatch = "sed 's,/bin/rm,rm,g' -i genMakefiles"
|
|
|
|
+ stdenv.lib.optionalString (stdenv ? glibc) ''
|
|
|
|
|
|
|
|
substituteInPlace liveMedia/include/Locale.hh \
|
|
|
|
--replace '<xlocale.h>' '<locale.h>'
|
|
|
|
'';
|
2015-10-26 13:39:30 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
sed \
|
|
|
|
-e 's/$(INCLUDES) -I. -O2 -DSOCKLEN_T/$(INCLUDES) -I. -O2 -I. -fPIC -DRTSPCLIENT_SYNCHRONOUS_INTERFACE=1 -DSOCKLEN_T/g' \
|
|
|
|
-i config.linux
|
2015-11-05 15:56:47 +00:00
|
|
|
|
|
|
|
./genMakefiles linux
|
2015-10-26 13:39:30 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
for dir in BasicUsageEnvironment groupsock liveMedia UsageEnvironment; do
|
|
|
|
install -dm755 $out/{bin,lib,include/$dir}
|
|
|
|
install -m644 $dir/*.a "$out/lib"
|
|
|
|
install -m644 $dir/include/*.h* "$out/include/$dir"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Set of C++ libraries for multimedia streaming, using open standard protocols (RTP/RTCP, RTSP, SIP)";
|
|
|
|
homepage = http://www.live555.com/liveMedia/;
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|