diff options
author | pav <pav@FreeBSD.org> | 2009-03-02 08:27:59 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2009-03-02 08:27:59 +0800 |
commit | 927b47b9b628a8789cb7d6d3fa9255e011036f1f (patch) | |
tree | 2f38781bbda015bf3eb7e8e30cbdfce8f13ae4dd | |
parent | 1d5ff031a63668457427831be1f01d6d833ca155 (diff) | |
download | freebsd-ports-gnome-927b47b9b628a8789cb7d6d3fa9255e011036f1f.tar.gz freebsd-ports-gnome-927b47b9b628a8789cb7d6d3fa9255e011036f1f.tar.zst freebsd-ports-gnome-927b47b9b628a8789cb7d6d3fa9255e011036f1f.zip |
- Fix build with USB 2.0 in CURRENT (untested)
Submitted by: rnoland
-rw-r--r-- | graphics/libgphoto2/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/graphics/libgphoto2/Makefile b/graphics/libgphoto2/Makefile index 279b5d3a35ee..030e11c19e79 100644 --- a/graphics/libgphoto2/Makefile +++ b/graphics/libgphoto2/Makefile @@ -14,8 +14,7 @@ MASTER_SITE_SUBDIR= gphoto MAINTAINER= pav@FreeBSD.org COMMENT= A universal digital camera picture control tool -LIB_DEPENDS= usb-0.1.8:${PORTSDIR}/devel/libusb \ - exif.12:${PORTSDIR}/graphics/libexif +LIB_DEPENDS= exif.12:${PORTSDIR}/graphics/libexif USE_BZIP2= yes USE_GNOME= gnometarget pkgconfig ltverhack @@ -36,6 +35,14 @@ USE_GETTEXT= yes PLIST_SUB+= NLS="" .endif +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 800064 +LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb +.else +CONFIGURE_ENV+= LIBUSB_LIBS="-L/usr/lib -lusb20" LIBUSB_CFLAGS="-I/usr/include" +.endif + post-patch: .for file in configure libgphoto2_port/configure @${REINPLACE_CMD} -e \ @@ -46,4 +53,4 @@ post-patch: @${REINPLACE_CMD} -e 's|linux-hotplug ||' ${WRKSRC}/packaging/Makefile.in @${REINPLACE_CMD} -e 's|@HAVE_DOXYGEN_TRUE@|#| ; s|@HAVE_DOXYGEN_FALSE@||' ${WRKSRC}/doc/Makefile.in -.include <bsd.port.mk> +.include <bsd.port.post.mk> |