aboutsummaryrefslogtreecommitdiff
path: root/graphics/libgphoto2/Makefile
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2009-03-02 00:27:59 +0000
committerPav Lucistnik <pav@FreeBSD.org>2009-03-02 00:27:59 +0000
commit083a10266df68790e0686817d36babb3068fb68b (patch)
treed55d4dd36e8415c10acc1a72591695816c2b58ca /graphics/libgphoto2/Makefile
parent0c92b1096252f7366b9f29b402d9dc873721a074 (diff)
downloadports-083a10266df68790e0686817d36babb3068fb68b.tar.gz
ports-083a10266df68790e0686817d36babb3068fb68b.zip
Notes
Diffstat (limited to 'graphics/libgphoto2/Makefile')
-rw-r--r--graphics/libgphoto2/Makefile13
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>