Date: Sat, 5 Feb 2011 11:58:43 +1030 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: "Daniel O'Connor" <doconnor@gsoft.com.au> Cc: gnome@freebsd.org, freebsd-usb@freebsd.org Subject: Re: libusb-config missing? Message-ID: <7A41C2A4-8569-462F-9A39-E799623AF452@gsoft.com.au> In-Reply-To: <201001071454.47314.doconnor@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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <bsd.port.pre.mk> =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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7A41C2A4-8569-462F-9A39-E799623AF452>