Date: Wed, 27 Jan 2016 00:24:44 +0100 From: Jan Beich <jbeich@vfemail.net> To: Lev Serebryakov <lev@FreeBSD.org> Cc: ports@freebsd.org Subject: Re: pkgconf (pkg-config), libusb and FreeBSD 9 Message-ID: <k2mv-x6tf-wny@vfemail.net> In-Reply-To: <56A618D8.80206@FreeBSD.org> (Lev Serebryakov's message of "Mon, 25 Jan 2016 15:45:12 %2B0300") References: <56A618D8.80206@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-= Content-Type: text/plain Lev Serebryakov <lev@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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQF8BAEBCgBmBQJWqAA8XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREQjQ0MzY3NEM3RDIzNTc4NkUxNDkyQ0VF NEM3Nzg4MzQ3OURCRERCAAoJEOTHeINHnb3bcbMIAL5OhbFTk1bjdUthY8V+QmWe cQBoz+m1bhmMjO6BXVigThwwXG8TVjhbLKoMbmEKfH1GsOwdFXfv1iblZbg4IgaK G3Pq0iPUWBBgoV7bev2lOLb76sv7LzALhOeOKRcbiwBlA9zIkCmls15eCWtrUYyV +l7QUfH6/obWyv26zrqdd1KlJWZceWsHsMS0J/hsj2TQtQIy78avaNzkgrexxLuV SOK63/mFKLNMtPEAjtGhiM2Lzc0tDG0ZXqF3CUDhHdCG9dJhz19QhhbKAcztcwAR R9EnEGtdaPuwXJI7pGp+5jq9RLuNxgTha1bYmoxejTb6h/7x8xc4aftoV/dguqg= =Eas2 -----END PGP SIGNATURE----- --=-=-=--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?k2mv-x6tf-wny>