summary refs log tree commit diff
path: root/pkgs/development/libraries/xavs
diff options
context:
space:
mode:
authorcodyopel <codyopel@gmail.com>2015-02-17 13:29:48 -0500
committercodyopel <codyopel@gmail.com>2015-02-17 13:29:48 -0500
commitbe0b4050aa42aebfe05cdd07105ec49a75bb44fa (patch)
treeb0a7f6f9874d55a09f5b031cd46eaa4193bc0692 /pkgs/development/libraries/xavs
parent00ebcd0c3645f68c0b42432b597f42976829a194 (diff)
downloadnixpkgs-be0b4050aa42aebfe05cdd07105ec49a75bb44fa.tar
nixpkgs-be0b4050aa42aebfe05cdd07105ec49a75bb44fa.tar.gz
nixpkgs-be0b4050aa42aebfe05cdd07105ec49a75bb44fa.tar.bz2
nixpkgs-be0b4050aa42aebfe05cdd07105ec49a75bb44fa.tar.lz
nixpkgs-be0b4050aa42aebfe05cdd07105ec49a75bb44fa.tar.xz
nixpkgs-be0b4050aa42aebfe05cdd07105ec49a75bb44fa.tar.zst
nixpkgs-be0b4050aa42aebfe05cdd07105ec49a75bb44fa.zip
xavs: add package
Diffstat (limited to 'pkgs/development/libraries/xavs')
-rw-r--r--pkgs/development/libraries/xavs/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/libraries/xavs/default.nix b/pkgs/development/libraries/xavs/default.nix
new file mode 100644
index 00000000000..adace96afad
--- /dev/null
+++ b/pkgs/development/libraries/xavs/default.nix
@@ -0,0 +1,37 @@
+{ stdenv, fetchsvn }:
+
+stdenv.mkDerivation rec {
+  name = "xavs-${version}";
+  version = "55";
+
+  src = fetchsvn {
+    url = "https://svn.code.sf.net/p/xavs/code/trunk";
+    rev = "${version}";
+    sha256 = "0drw16wm95dqszpl7j33y4gckz0w0107lnz6wkzb66f0dlbv48cf";
+  };
+
+  patchPhase = ''
+    patchShebangs configure
+    patchShebangs config.sub
+    patchShebangs version.sh
+    patchShebangs tools/countquant_xavs.pl
+    patchShebangs tools/patcheck
+    patchShebangs tools/regression-test.pl
+    patchShebangs tools/xavs-format
+  '';
+
+  configureFlags = [
+    "--enable-pic"
+    "--enable-shared"
+    # Bug preventing compilation with assembly enabled
+    "--disable-asm"
+  ];
+
+  meta = with stdenv.lib; {
+    description = "AVS encoder and decoder";
+    homepage    = http://xavs.sourceforge.net/;
+    license     = licenses.lgpl2;
+    platforms   = platforms.linux;
+    maintainers = with maintainers; [ codyopel ];
+  };
+}