From owner-freebsd-gnome@FreeBSD.ORG Sat Feb 5 01:54:15 2011 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9EE2106566C for ; Sat, 5 Feb 2011 01:54:15 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 41A6C8FC0A for ; Sat, 5 Feb 2011 01:54:14 +0000 (UTC) Received: from ur.dons.net.au (ppp203-122-198-174.lns6.adl6.internode.on.net [203.122.198.174]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id p151SiK9026612 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 5 Feb 2011 11:58:44 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: "Daniel O'Connor" In-Reply-To: <201001071454.47314.doconnor@gsoft.com.au> Date: Sat, 5 Feb 2011 11:58:43 +1030 Content-Transfer-Encoding: quoted-printable Message-Id: <7A41C2A4-8569-462F-9A39-E799623AF452@gsoft.com.au> References: <200912251137.43667.doconnor@gsoft.com.au> <200912252058.58879.doconnor@gsoft.com.au> <200912251244.46651.hselasky@c2i.net> <201001071454.47314.doconnor@gsoft.com.au> To: "Daniel O'Connor" X-Mailer: Apple Mail (2.1082) X-Spam-Score: 0.163 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: gnome@freebsd.org, freebsd-usb@freebsd.org, Hans Petter Selasky Subject: Re: libusb-config missing? X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2011 01:54:15 -0000 On 07/01/2010, at 14:54, Daniel O'Connor wrote: > One problem is that ports don't know which version to use, it would be = nice=20 > if they could just depend on devel/libusb and Magic Happened (tm) to = pick > the correct thing. >=20 > Unfortunately that is beyond my port fu :( I had another think about this.. What about if devel/pkgconfig is modified to search in = /usr/libdata/pkgconfig and systems with native libusb have entries in = there? eg.. --- Makefile.orig 2011-02-05 11:55:04.546436357 +1030 +++ Makefile 2011-02-05 11:50:37.055279037 +1030 @@ -25,7 +25,7 @@ =20 .include =20 -PC_PATH=3D${PREFIX}/libdata/pkgconfig +PC_PATH=3D/usr/libdata/pkgconfig:${PREFIX}/libdata/pkgconfig PC_PATH:=3D${PC_PATH}:${PREFIX}/lib/pkgconfig .if ${LOCALBASE} !=3D ${PREFIX} PC_PATH:=3D ${PC_PATH}:${LOCALBASE}/libdata/pkgconfig Along with.. [midget 11:57] ~ >cat /usr/libdata/pkgconfig/libusb-1.0.pc prefix=3D/usr exec_prefix=3D${prefix} libdir=3D${exec_prefix}/lib includedir=3D${prefix}/include Name: libusb Description: USB access library Version: 1.0.1 Libs: -L${libdir} -lusb Cflags: -I${includedir} [midget 11:57] ~ >cat /usr/libdata/pkgconfig/libusb.pc =20 prefix=3D/usr exec_prefix=3D${prefix} libdir=3D${exec_prefix}/lib includedir=3D${prefix}/include Name: libusb Description: USB access library Version: 0.1 Libs: -L${libdir} -lusb Cflags: -I${includedir} Ports will still need code to know 8.x+ do not require libusb but they = need that regardless. I'm not sure what the "right way" to install such files in libdata is = though. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C