frei0r-plugins: enable on Darwin (#60896)

* frei0r-plugins: enable on Darwin
Upstream support Darwin platform
+ brew formula for this is pretty straightforward

* frei0r: Darwin dlopen will look for *.dylib
This commit is contained in:
Renaud 2019-05-04 02:10:42 +02:00 committed by GitHub
parent d58dcd601b
commit bf0fa371b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,15 +9,21 @@ stdenv.mkDerivation rec {
sha256 = "0pji26fpd0dqrx1akyhqi6729s394irl73dacnyxk58ijqq4dhp0";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ autoconf cairo opencv ];
nativeBuildInputs = [ autoconf pkgconfig ];
buildInputs = [ cairo opencv ];
postInstall = stdenv.lib.optionalString stdenv.hostPlatform.isDarwin ''
for f in $out/lib/frei0r-1/*.so* ; do
ln -s $f "''${f%.*}.dylib"
done
'';
meta = with stdenv.lib; {
homepage = https://frei0r.dyne.org;
description = "Minimalist, cross-platform, shared video plugins";
license = licenses.gpl2;
maintainers = [ maintainers.goibhniu ];
platforms = platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
};
}