orc: 0.4.29 -> 0.4.32
* transition from name to pname + version * change the build system to meson, as autotools is no longer supported by upstream * optionally build devdoc output * whatever the reason for manipulating the pkgconfig, omitting it doesn't seem to break the build of orc or any of its direct reverse dependencies
This commit is contained in:
parent
96fb471fc7
commit
d0878be870
@ -1,23 +1,31 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, meson, ninja
|
||||||
|
, gtk-doc ? null, file, docbook_xsl
|
||||||
stdenv.mkDerivation rec {
|
, buildDevDoc ? gtk-doc != null
|
||||||
name = "orc-0.4.29";
|
}: let
|
||||||
|
inherit (stdenv.lib) optional optionals;
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
pname = "orc";
|
||||||
|
version = "0.4.32";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://gstreamer.freedesktop.org/src/orc/${name}.tar.xz";
|
url = "https://gstreamer.freedesktop.org/src/orc/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1cisbbn69p9c8vikn0nin14q0zscby5m8cyvzxyw2pjb2kwh32ag";
|
sha256 = "1w0qmyj3v9sb2g7ff39pp38b9850y9hyy0bag26ifrby5f7ksvm6";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ]
|
||||||
|
++ optional buildDevDoc "devdoc"
|
||||||
|
;
|
||||||
outputBin = "dev"; # compilation tools
|
outputBin = "dev"; # compilation tools
|
||||||
|
|
||||||
postInstall = ''
|
mesonFlags =
|
||||||
sed "/^toolsdir=/ctoolsdir=$dev/bin" -i "$dev"/lib/pkgconfig/orc*.pc
|
optional (!buildDevDoc) [ "-Dgtk_doc=disabled" ]
|
||||||
'';
|
;
|
||||||
|
|
||||||
# i686 https://gitlab.freedesktop.org/gstreamer/orc/issues/18
|
nativeBuildInputs = [ meson ninja ]
|
||||||
# armv7l https://gitlab.freedesktop.org/gstreamer/orc/issues/9
|
++ optionals buildDevDoc [ gtk-doc file docbook_xsl ]
|
||||||
doCheck = (!stdenv.hostPlatform.isi686 && !stdenv.hostPlatform.isAarch32);
|
;
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "The Oil Runtime Compiler";
|
description = "The Oil Runtime Compiler";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user