https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
11 lines
299 B
PkgConfig
11 lines
299 B
PkgConfig
prefix=@out@
|
|
exec_prefix=${prefix}
|
|
libdir=${exec_prefix}/lib
|
|
includedir=${prefix}/include
|
|
|
|
Name: nbcompat
|
|
Description: NetBSD compatibility framework
|
|
Version: @version@
|
|
URL: https://www.netbsd.org/
|
|
Libs: -L${libdir} -lnbcompat
|
|
Cflags: -I${includedir} -DHAVE_NBTOOL_CONFIG_H -include nbtool_config.h
|