xavs: build on darwin (#56070)
This commit is contained in:
parent
e23580caf8
commit
36e0ed236e
@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0drw16wm95dqszpl7j33y4gckz0w0107lnz6wkzb66f0dlbv48cf";
|
sha256 = "0drw16wm95dqszpl7j33y4gckz0w0107lnz6wkzb66f0dlbv48cf";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
patchShebangs configure
|
patchShebangs configure
|
||||||
patchShebangs config.sub
|
patchShebangs config.sub
|
||||||
@ -18,7 +20,16 @@ stdenv.mkDerivation rec {
|
|||||||
patchShebangs tools/patcheck
|
patchShebangs tools/patcheck
|
||||||
patchShebangs tools/regression-test.pl
|
patchShebangs tools/regression-test.pl
|
||||||
patchShebangs tools/xavs-format
|
patchShebangs tools/xavs-format
|
||||||
'';
|
'' + 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,' ' '
|
||||||
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--enable-pic"
|
"--enable-pic"
|
||||||
@ -31,7 +42,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "AVS encoder and decoder";
|
description = "AVS encoder and decoder";
|
||||||
homepage = http://xavs.sourceforge.net/;
|
homepage = http://xavs.sourceforge.net/;
|
||||||
license = licenses.lgpl2;
|
license = licenses.lgpl2;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
maintainers = with maintainers; [ codyopel ];
|
maintainers = with maintainers; [ codyopel ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user