2018-04-24 20:06:15 +00:00
|
|
|
{ stdenv, fetchurl, lib, darwin }:
|
2015-10-26 13:39:30 +00:00
|
|
|
|
|
|
|
# Based on https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD
|
2018-10-22 13:06:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "live555";
|
2019-12-02 17:53:52 +00:00
|
|
|
version = "2019.11.22";
|
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
|
2018-12-02 05:44:13 +00:00
|
|
|
urls = [
|
|
|
|
"mirror://sourceforge/slackbuildsdirectlinks/live.${version}.tar.gz"
|
|
|
|
"https://download.videolan.org/contrib/live555/live.${version}.tar.gz"
|
|
|
|
];
|
2019-12-02 17:53:52 +00:00
|
|
|
sha256 = "144y2wsfpaclkj7srx85f3y3parzn7vbjmzc2afc62wdsb9gn46d";
|
2015-10-26 13:39:30 +00:00
|
|
|
};
|
|
|
|
|
2018-04-24 20:06:15 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed 's,/bin/rm,rm,g' -i genMakefiles
|
|
|
|
sed \
|
|
|
|
-e 's/$(INCLUDES) -I. -O2 -DSOCKLEN_T/$(INCLUDES) -I. -O2 -I. -fPIC -DRTSPCLIENT_SYNCHRONOUS_INTERFACE=1 -DSOCKLEN_T/g' \
|
|
|
|
-i config.linux
|
2021-01-21 17:00:13 +00:00
|
|
|
'' + lib.optionalString (stdenv ? glibc) ''
|
2017-11-07 06:27:32 +00:00
|
|
|
substituteInPlace liveMedia/include/Locale.hh \
|
|
|
|
--replace '<xlocale.h>' '<locale.h>'
|
|
|
|
'';
|
2015-10-26 13:39:30 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
2018-10-22 13:06:11 +00:00
|
|
|
runHook preConfigure
|
|
|
|
|
2018-04-24 20:06:15 +00:00
|
|
|
./genMakefiles ${{
|
|
|
|
x86_64-darwin = "macosx";
|
|
|
|
i686-linux = "linux";
|
|
|
|
x86_64-linux = "linux-64bit";
|
2018-04-25 05:10:08 +00:00
|
|
|
aarch64-linux = "linux-64bit";
|
2018-08-20 19:11:29 +00:00
|
|
|
}.${stdenv.hostPlatform.system}}
|
2018-10-22 13:06:11 +00:00
|
|
|
|
|
|
|
runHook postConfigure
|
2015-10-26 13:39:30 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2018-10-22 13:06:11 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2015-10-26 13:39:30 +00:00
|
|
|
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
|
2018-10-22 13:06:11 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2015-10-26 13:39:30 +00:00
|
|
|
'';
|
|
|
|
|
2018-04-24 20:06:15 +00:00
|
|
|
nativeBuildInputs = lib.optional stdenv.isDarwin darwin.cctools;
|
|
|
|
|
2018-10-22 13:06:11 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-04-24 20:06:15 +00:00
|
|
|
meta = with lib; {
|
2015-10-26 13:39:30 +00:00
|
|
|
description = "Set of C++ libraries for multimedia streaming, using open standard protocols (RTP/RTCP, RTSP, SIP)";
|
2019-10-24 09:15:29 +00:00
|
|
|
homepage = "http://www.live555.com/liveMedia/";
|
|
|
|
changelog = "http://www.live555.com/liveMedia/public/changelog.txt";
|
2015-10-26 13:39:30 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2018-04-24 20:06:15 +00:00
|
|
|
platforms = platforms.unix;
|
2018-11-18 16:50:27 +00:00
|
|
|
broken = stdenv.hostPlatform.isAarch64;
|
2015-10-26 13:39:30 +00:00
|
|
|
};
|
|
|
|
}
|