On 2018-03-08 05:18 +0000, Wookey wrote:
I'll post my issues/changes here for discussion so we can decide what is upstreamable.
OK. Last item, I think (yay!)
pkg-config support.
libraries should have pkg-config files so that build tools can find and use them.
I've added support for this in the debian machinery as there was none upstream, but having it upstream would be better.
You can just have a static file, but it's much better if it matches itself to the used library path, prefix and the version needs to be right too:
So I start with this libopencsd.pc.in file
prefix=@PREFIX@ exec_prefix=${prefix} libdir=${prefix}/@LIB_PATH@ includedir=${prefix}/include
Name: libopencsd Description: ARM trace decode library Version: 0.0
Requires: Libs: -L${libdir} -llibopencsd Cflags: -I${includedir}
and convert it to a libopencsd.pc matching the build with:
sed -r -e 's/^(Version: ).*$$/\1$(PKG_VERSION)/' debian/libopencsd.pc.in > debian/libopencsd.pc sed -i -e 's:@PREFIX@:$(PREFIX):' debian/libopencsd.pc sed -i -e 's:@LIB_PATH@:$(LIB_PATH):' debian/libopencsd.pc
which gets installed to: $(PREFIX)/$(LIB_PATH)/pkgconfig/
Wookey