bc55c463b4
* live555: 2019.08.16 -> 2019.09.18 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/live555/versions * live555: 2019.09.18 -> 2019.10.20
64 lines
1.9 KiB
Nix
64 lines
1.9 KiB
Nix
{ stdenv, fetchurl, lib, darwin }:
|
|
|
|
# Based on https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD
|
|
stdenv.mkDerivation rec {
|
|
pname = "live555";
|
|
version = "2019.10.20";
|
|
|
|
src = fetchurl { # the upstream doesn't provide a stable URL
|
|
urls = [
|
|
"mirror://sourceforge/slackbuildsdirectlinks/live.${version}.tar.gz"
|
|
"https://download.videolan.org/contrib/live555/live.${version}.tar.gz"
|
|
];
|
|
sha256 = "085csq31s4kak0sym5y170f82wp542bg1ff3kycanvs8w4d4n9j4";
|
|
};
|
|
|
|
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
|
|
'' + stdenv.lib.optionalString (stdenv ? glibc) ''
|
|
substituteInPlace liveMedia/include/Locale.hh \
|
|
--replace '<xlocale.h>' '<locale.h>'
|
|
'';
|
|
|
|
configurePhase = ''
|
|
runHook preConfigure
|
|
|
|
./genMakefiles ${{
|
|
x86_64-darwin = "macosx";
|
|
i686-linux = "linux";
|
|
x86_64-linux = "linux-64bit";
|
|
aarch64-linux = "linux-64bit";
|
|
}.${stdenv.hostPlatform.system}}
|
|
|
|
runHook postConfigure
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
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
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
nativeBuildInputs = lib.optional stdenv.isDarwin darwin.cctools;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "Set of C++ libraries for multimedia streaming, using open standard protocols (RTP/RTCP, RTSP, SIP)";
|
|
homepage = "http://www.live555.com/liveMedia/";
|
|
changelog = "http://www.live555.com/liveMedia/public/changelog.txt";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.unix;
|
|
broken = stdenv.hostPlatform.isAarch64;
|
|
};
|
|
}
|