From owner-freebsd-ports@freebsd.org Tue Jan 26 23:25:19 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7B67DA6F52B for ; Tue, 26 Jan 2016 23:25:19 +0000 (UTC) (envelope-from jbeich@vfemail.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 671371538 for ; Tue, 26 Jan 2016 23:25:19 +0000 (UTC) (envelope-from jbeich@vfemail.net) Received: by mailman.ysv.freebsd.org (Postfix) id 631C8A6F52A; Tue, 26 Jan 2016 23:25:19 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 62C20A6F529 for ; Tue, 26 Jan 2016 23:25:19 +0000 (UTC) (envelope-from jbeich@vfemail.net) Received: from vfemail.net (onethreetwo.vfemail.net [199.16.11.132]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 26BCA1537 for ; Tue, 26 Jan 2016 23:25:18 +0000 (UTC) (envelope-from jbeich@vfemail.net) Received: (qmail 66907 invoked by uid 89); 26 Jan 2016 23:25:11 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 26 Jan 2016 23:25:11 -0000 Received: (qmail 66817 invoked by uid 89); 26 Jan 2016 23:24:54 -0000 Received: by simscan 1.3.1 ppid: 66814, pid: 66816, t: 0.0027s scanners:none Received: from unknown (HELO smtp102-2.vfemail.net) (172.16.100.62) by FreeQueue with SMTP; 26 Jan 2016 23:24:54 -0000 Received: (qmail 23833 invoked by uid 89); 26 Jan 2016 23:24:54 -0000 Received: by simscan 1.4.0 ppid: 23808, pid: 23824, t: 0.7985s scanners:none Received: from unknown (HELO nil) (amJlaWNoQHZmZW1haWwubmV0@172.16.100.27) by mail.vfemail.net with ESMTPA; 26 Jan 2016 23:24:53 -0000 From: Jan Beich To: Lev Serebryakov Cc: ports@freebsd.org Subject: Re: pkgconf (pkg-config), libusb and FreeBSD 9 References: <56A618D8.80206@FreeBSD.org> Date: Wed, 27 Jan 2016 00:24:44 +0100 In-Reply-To: <56A618D8.80206@FreeBSD.org> (Lev Serebryakov's message of "Mon, 25 Jan 2016 15:45:12 +0300") Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jan 2016 23:25:19 -0000 --=-=-= Content-Type: text/plain Lev Serebryakov 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----- --=-=-=--