1 { lib, stdenv, fetchsvn }:
3 stdenv.mkDerivation rec {
8 url = "https://svn.code.sf.net/p/xavs/code/trunk";
10 sha256 = "0drw16wm95dqszpl7j33y4gckz0w0107lnz6wkzb66f0dlbv48cf";
13 enableParallelBuilding = true;
16 patchShebangs configure
17 patchShebangs config.sub
18 patchShebangs version.sh
19 patchShebangs tools/countquant_xavs.pl
20 patchShebangs tools/patcheck
21 patchShebangs tools/regression-test.pl
22 patchShebangs tools/xavs-format
23 '' + lib.optionalString stdenv.isDarwin ''
24 substituteInPlace config.guess --replace 'uname -p' 'uname -m'
25 substituteInPlace configure \
26 --replace '-O4' '-O3' \
27 --replace ' -s ' ' ' \
28 --replace 'LDFLAGS -s' 'LDFLAGS' \
29 --replace '-dynamiclib' ' ' \
30 --replace '-falign-loops=16' ' '
31 substituteInPlace Makefile --replace '-Wl,-soname,' ' '
37 # Bug preventing compilation with assembly enabled
42 description = "AVS encoder and decoder";
43 homepage = "https://xavs.sourceforge.net/";
44 license = licenses.lgpl2;
45 platforms = platforms.linux ++ platforms.darwin;
46 maintainers = with maintainers; [ codyopel ];