aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/amrnb
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-10-04 21:31:34 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-10-04 21:31:34 +0000
commit954a8d0cdc239044a9fa8bad813b777e4f3296a7 (patch)
tree7251155cd0e074bba10b1fe22431c4b189043275 /pkgs/development/libraries/amrnb
parentad30d22e827045d2ccd862c1d5ef5ca076ce4184 (diff)
Adding amr support in mplayer. That should be enabled by the user, because those libraries are not redistributable.
I don't know if the 'unfree' in the amr libraries will stop mplayer being built without its support. We would have to write the all-packages MPlayer expression different, in this case. svn path=/nixpkgs/trunk/; revision=17635
Diffstat (limited to 'pkgs/development/libraries/amrnb')
-rw-r--r--pkgs/development/libraries/amrnb/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/libraries/amrnb/default.nix b/pkgs/development/libraries/amrnb/default.nix
new file mode 100644
index 000000000000..a2ed73934931
--- /dev/null
+++ b/pkgs/development/libraries/amrnb/default.nix
@@ -0,0 +1,31 @@
+{stdenv, fetchurl, unzip}:
+
+stdenv.mkDerivation {
+ name = "amrnb-7.0.0.2";
+ srcAmr = fetchurl {
+ url = http://www.3gpp.org/ftp/Specs/latest/Rel-7/26_series/26104-700.zip;
+ sha256 = "0hgm8dddrqiinjdjxnsw0x899czjlvplq69z4kv8y4zqnrjlwzni";
+ };
+
+ src = fetchurl {
+ url = http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2;
+ sha256 = "0z4wjr0jml973vd0dvxlmy34daiswy5axlmpvc85k8qcr08i8zaa";
+ };
+
+ buildInputs = [ unzip ];
+
+ configureFlags = [ "--cache-file=config.cache" "--with-downloader=true" ];
+
+ postConfigure = ''
+ cp $srcAmr 26104-700.zip
+ '';
+
+ meta = {
+ homepage = http://www.penguin.cz/~utx/amr;
+ description = "AMR Narrow-Band Codec";
+ # The wrapper code is free, but not the libraries from 3gpp.
+ # It's a source code reference implementation with patents and licenses on
+ # some countries, not redistributable.
+ license = "unfree";
+ };
+}