1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

ilbc and msilbc libraries added

svn path=/nixpkgs/branches/stdenv-updates/; revision=10570
This commit is contained in:
Yury G. Kudryashov 2008-02-10 17:35:03 +00:00
parent a4512a4a49
commit f4eda0eb22
3 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,17 @@
args: with args;
stdenv.mkDerivation {
name = "ilbc-rfc3951";
# I'm too lazy to extract .c source from rfc3951. So, I'm using autotools stuff
# from linphone project
src = stdenv.mkDerivation {
name = "ilbc-rfc3951.tar.gz";
src = msilbc.src;
outputHashAlgo = "sha256";
outputHash = "0f6scsp72bz2ifscd8c0x57ipcxi2i4a9b4nwlnwx7a7a0hrazhj";
phases = "unpackPhase installPhase";
installPhase = "cp ilbc-rfc3951.tar.gz \${out}";
};
configureFlags = "--enable-shared --disable-static";
}

View file

@ -0,0 +1,24 @@
args: with args;
stdenv.mkDerivation rec {
name = "msilbc-" + version;
src = fetchurl {
url = "http://download.savannah.gnu.org/releases/linphone/plugins/sources/${name}.tar.gz";
sha256 = "0ifydb7qmpync56l4hbrp36n5wrb7gadb76isp643s6wsg7l743j";
};
patchPhase = "sed -i /MS_FILTER_SET_FMTP/d ilbc.c";
propagatedBuildInputs = [ilbc mediastreamer];
buildInputs = [pkgconfig];
buildPhase = ''
cc -fPIC -c -pthread -o ilbc.o ilbc.c `pkg-config --cflags mediastreamer`
echo "next"
cc `pkg-config --libs mediastreamer` -shared -pthread -o libilbc.so
'';
installPhase = "
ensureDir \${out}/lib/mediastreamer/plugins
cp libilbc.so \${out}/lib/mediastreamer/plugins
";
}

View file

@ -2088,6 +2088,10 @@ rec {
inherit fetchurl stdenv;
};
ilbc = import ../development/libraries/ilbc {
inherit stdenv msilbc;
};
ilmbase = import ../development/libraries/ilmbase {
inherit fetchurl stdenv;
};
@ -2439,6 +2443,10 @@ rec {
inherit fetchurl stdenv;
};
msilbc = selectVersion ../development/libraries/msilbc "2.0.0" {
inherit fetchurl stdenv ilbc mediastreamer pkgconfig;
};
mysqlConnectorODBC = import ../development/libraries/mysql-connector-odbc {
inherit fetchurl stdenv mysql libtool zlib unixODBC;
};