lol
at 18.03-beta 44 lines 1.4 kB view raw
1{ stdenv, fetchurl }: 2 3# Based on https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD 4let 5 version = "2018.02.12"; 6in 7stdenv.mkDerivation { 8 name = "live555-${version}"; 9 10 src = fetchurl { # the upstream doesn't provide a stable URL 11 url = "mirror://sourceforge/slackbuildsdirectlinks/live.${version}.tar.gz"; 12 sha256 = "08860q07hfiln44d6qaasmfalf4hb9na5jsfd4yps6jn4r54xxwx"; 13 }; 14 15 postPatch = "sed 's,/bin/rm,rm,g' -i genMakefiles" 16 + stdenv.lib.optionalString (stdenv ? glibc) '' 17 18 substituteInPlace liveMedia/include/Locale.hh \ 19 --replace '<xlocale.h>' '<locale.h>' 20 ''; 21 22 configurePhase = '' 23 sed \ 24 -e 's/$(INCLUDES) -I. -O2 -DSOCKLEN_T/$(INCLUDES) -I. -O2 -I. -fPIC -DRTSPCLIENT_SYNCHRONOUS_INTERFACE=1 -DSOCKLEN_T/g' \ 25 -i config.linux 26 27 ./genMakefiles linux 28 ''; 29 30 installPhase = '' 31 for dir in BasicUsageEnvironment groupsock liveMedia UsageEnvironment; do 32 install -dm755 $out/{bin,lib,include/$dir} 33 install -m644 $dir/*.a "$out/lib" 34 install -m644 $dir/include/*.h* "$out/include/$dir" 35 done 36 ''; 37 38 meta = with stdenv.lib; { 39 description = "Set of C++ libraries for multimedia streaming, using open standard protocols (RTP/RTCP, RTSP, SIP)"; 40 homepage = http://www.live555.com/liveMedia/; 41 license = licenses.lgpl21Plus; 42 platforms = platforms.linux; 43 }; 44}