libajantv2: add pkg-config file

This commit is contained in:
Lily Foster 2024-04-14 21:30:13 -04:00
parent 2b61331fc1
commit 3aa0dd4e10
No known key found for this signature in database
GPG key ID: 49340081E484C893

View file

@ -28,6 +28,21 @@ stdenv.mkDerivation rec {
pkg-config
];
postInstall = ''
mkdir -p "$out/lib/pkgconfig"
cat >"$out/lib/pkgconfig/libajantv2.pc" <<EOF
prefix=$out
libdir=\''${prefix}/lib
includedir=\''${prefix}/include/ajalibraries
Name: libajantv2
Description: Library for controlling AJA NTV2 video devices
Version: ${version}
Libs: -L\''${libdir} -lajantv2
Cflags: -I\''${includedir} -I\''${includedir}/ajantv2/includes
EOF
'';
meta = with lib; {
description = "AJA NTV2 Open Source Static Libs and Headers for building applications that only wish to statically link against";
homepage = "https://github.com/aja-video/ntv2";