libyuv: add pkg-config .pc file
This commit is contained in:
parent
189a069329
commit
4f348cd724
|
@ -28,6 +28,15 @@ stdenv.mkDerivation rec {
|
|||
./link-library-against-libjpeg.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
mkdir -p $out/lib/pkgconfig
|
||||
cp ${./yuv.pc} $out/lib/pkgconfig/libyuv.pc
|
||||
|
||||
substituteInPlace $out/lib/pkgconfig/libyuv.pc \
|
||||
--replace "@PREFIX@" "$out" \
|
||||
--replace "@VERSION@" "$version"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://chromium.googlesource.com/libyuv/libyuv";
|
||||
description = "Open source project that includes YUV scaling and conversion functionality";
|
||||
|
|
13
pkgs/development/libraries/libyuv/yuv.pc
Normal file
13
pkgs/development/libraries/libyuv/yuv.pc
Normal file
|
@ -0,0 +1,13 @@
|
|||
prefix=@PREFIX@
|
||||
exec_prefix=${prefix}
|
||||
libdir=${prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: yuv
|
||||
Description: WebM Project Yuv codec implementation
|
||||
Version: @VERSION@
|
||||
Requires:
|
||||
Conflicts:
|
||||
Libs: -L${libdir} -lyuv -lm
|
||||
Libs.private: -lm -lpthread
|
||||
Cflags: -I${includedir}
|
Loading…
Reference in a new issue