[CFR] Fix libgphoto2's libusb dependency

Peter Pentchev roam at FreeBSD.org
Mon Mar 13 12:15:15 UTC 2006


Hi,

The "LIB_DEPENDS=usb" in the graphics/libgphoto2 port may not be enough
under some circumstances: e.g. when the devel/libusb port is not installed,
yet a libusb is installed by the compat4x port.  In that case, the check
will find a "usb" library in ldconfig's output, but it will not be
the one libgphoto2 needs, and thus, libgphoto2 will actually be built
without USB support and with an incorrect packing list.

The following trivial patch fixes the problem; may I commit it?

Index: ports/graphics/libgphoto3/Makefile
===================================================================
RCS file: /home/ncvs/ports/graphics/libgphoto3/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- ports/graphics/libgphoto2/Makefile	23 Feb 2006 10:37:12 -0000	1.25
+++ ports/graphics/libgphoto2/Makefile	13 Mar 2006 10:01:35 -0000
@@ -15,7 +15,7 @@
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	A universal digital camera picture control tool
 
-LIB_DEPENDS=	usb:${PORTSDIR}/devel/libusb \
+LIB_DEPENDS=	usb-0.1.8:${PORTSDIR}/devel/libusb \
 		exif:${PORTSDIR}/graphics/libexif
 
 USE_GNOME=	gnometarget pkgconfig

G'luck,
Peter

-- 
Peter Pentchev	roam at ringlet.net    roam at cnsys.bg    roam at FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
I've heard that this sentence is a rumor.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060313/48df8fef/attachment.pgp


More information about the freebsd-ports mailing list