2015-02-17 18:29:48 +00:00
|
|
|
{ stdenv, fetchsvn }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "xavs";
|
2015-02-17 18:29:48 +00:00
|
|
|
version = "55";
|
|
|
|
|
|
|
|
src = fetchsvn {
|
|
|
|
url = "https://svn.code.sf.net/p/xavs/code/trunk";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2015-02-17 18:29:48 +00:00
|
|
|
sha256 = "0drw16wm95dqszpl7j33y4gckz0w0107lnz6wkzb66f0dlbv48cf";
|
|
|
|
};
|
|
|
|
|
2019-02-24 00:51:04 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-02-17 18:29:48 +00:00
|
|
|
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
|
2019-02-24 00:51:04 +00:00
|
|
|
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace config.guess --replace 'uname -p' 'uname -m'
|
|
|
|
substituteInPlace configure \
|
|
|
|
--replace '-O4' '-O3' \
|
|
|
|
--replace ' -s ' ' ' \
|
|
|
|
--replace 'LDFLAGS -s' 'LDFLAGS' \
|
|
|
|
--replace '-dynamiclib' ' ' \
|
|
|
|
--replace '-falign-loops=16' ' '
|
|
|
|
substituteInPlace Makefile --replace '-Wl,-soname,' ' '
|
|
|
|
'';
|
2015-02-17 18:29:48 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-pic"
|
|
|
|
"--enable-shared"
|
|
|
|
# Bug preventing compilation with assembly enabled
|
|
|
|
"--disable-asm"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "AVS encoder and decoder";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://xavs.sourceforge.net/";
|
2015-02-17 18:29:48 +00:00
|
|
|
license = licenses.lgpl2;
|
2019-02-24 00:51:04 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2015-02-17 18:29:48 +00:00
|
|
|
maintainers = with maintainers; [ codyopel ];
|
|
|
|
};
|
|
|
|
}
|