Lev Serebryakov <l...@freebsd.org> writes: > I have port, which used libusb-1.0. It uses "pkg-config --cflags > libusb-1.0" and "pkg-config --libs libusb-1.0". > > For FreeBSD 10 and 11 port works with "USES=pkgconfig". But on > FreeBSD 9.3 it complains, that "Package libusb-1.0 was not found in > the pkg-config search path". > > What should I do to make it work on FreeBSD 9?
If the port uses GNU_CONFIGURE try overriding flags: # From multimedia/libmtp which has PKG_CHECK_MODULES(LIBUSB, ...) .if !exists(/usr/libdata/pkgconfig/libusb-1.0.pc) CONFIGURE_ENV+= LIBUSB_CFLAGS=" " LIBUSB_LIBS="-lusb" .endif Notice this doesn't pass unnecessary (and maybe poisonous) -I/usr/include -L/usr/lib. With cmake, scons, etc. you may need to patch the source. -- There aren't that many libusb consumers to shun doing homework: $ git grep -Fl pkgconfig '*/Makefile*' | xargs fgrep -- -lusb
signature.asc
Description: PGP signature