libaom: enable shared, split outputs

This commit is contained in:
Orivej Desh
2020-05-22 10:11:39 +00:00
parent f6373d28e1
commit 9836d06e3d
2 changed files with 55 additions and 4 deletions
+10 -4
View File
@@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
sha256 = "1616xjhj6770ykn82ml741h8hx44v507iky3s9h7a5lnk9d4cxzy";
};
patches = [ ./outputs.patch ];
nativeBuildInputs = [
yasm perl cmake pkgconfig python3
];
@@ -28,12 +30,16 @@ stdenv.mkDerivation rec {
# https://aomedia.googlesource.com/aom/+/refs/heads/master/build/cmake/aom_config_defaults.cmake
cmakeFlags = [
# For libaom these must be relative instead of absolute paths:
"-DCMAKE_INSTALL_BINDIR=bin"
"-DCMAKE_INSTALL_INCLUDEDIR=include"
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DBUILD_SHARED_LIBS=ON"
"-DENABLE_TESTS=OFF"
];
postFixup = ''
moveToOutput lib/libaom.a "$static"
'';
outputs = [ "out" "bin" "dev" "static" ];
meta = with stdenv.lib; {
description = "Alliance for Open Media AV1 codec library";
longDescription = ''