live555: supports darwin
This commit is contained in:
parent
49d97c3495
commit
dad3714ec1
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, lib, darwin }:
|
||||||
|
|
||||||
# Based on https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD
|
# Based on https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD
|
||||||
let
|
let
|
||||||
@ -12,19 +12,22 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "0zi47asv1qmb09g321m02q684i3c90vci0mgkdh1mlmx2rbg1d1d";
|
sha256 = "0zi47asv1qmb09g321m02q684i3c90vci0mgkdh1mlmx2rbg1d1d";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = "sed 's,/bin/rm,rm,g' -i genMakefiles"
|
postPatch = ''
|
||||||
+ stdenv.lib.optionalString (stdenv ? glibc) ''
|
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 \
|
substituteInPlace liveMedia/include/Locale.hh \
|
||||||
--replace '<xlocale.h>' '<locale.h>'
|
--replace '<xlocale.h>' '<locale.h>'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
sed \
|
./genMakefiles ${{
|
||||||
-e 's/$(INCLUDES) -I. -O2 -DSOCKLEN_T/$(INCLUDES) -I. -O2 -I. -fPIC -DRTSPCLIENT_SYNCHRONOUS_INTERFACE=1 -DSOCKLEN_T/g' \
|
x86_64-darwin = "macosx";
|
||||||
-i config.linux
|
i686-linux = "linux";
|
||||||
|
x86_64-linux = "linux-64bit";
|
||||||
./genMakefiles linux
|
}.${stdenv.system}}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -35,10 +38,12 @@ stdenv.mkDerivation {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
nativeBuildInputs = lib.optional stdenv.isDarwin darwin.cctools;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "Set of C++ libraries for multimedia streaming, using open standard protocols (RTP/RTCP, RTSP, SIP)";
|
description = "Set of C++ libraries for multimedia streaming, using open standard protocols (RTP/RTCP, RTSP, SIP)";
|
||||||
homepage = http://www.live555.com/liveMedia/;
|
homepage = http://www.live555.com/liveMedia/;
|
||||||
license = licenses.lgpl21Plus;
|
license = licenses.lgpl21Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user