aboutsummaryrefslogtreecommitdiffstats
path: root/audio/libmtp
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2009-04-14 06:49:17 +0800
committerrnoland <rnoland@FreeBSD.org>2009-04-14 06:49:17 +0800
commit0f323f15fc2a53609c18b71248b2ba0564cd3324 (patch)
tree3ac380b5587b9bbdee3f7e990f0706953dcea882 /audio/libmtp
parent2c77c5e710e62fc8287239d251a9deda7ddf280d (diff)
downloadfreebsd-ports-gnome-0f323f15fc2a53609c18b71248b2ba0564cd3324.tar.gz
freebsd-ports-gnome-0f323f15fc2a53609c18b71248b2ba0564cd3324.tar.zst
freebsd-ports-gnome-0f323f15fc2a53609c18b71248b2ba0564cd3324.zip
Fix libmtp.pc to work with usb2 systems.
Approved by: portmgr (pav)
Diffstat (limited to 'audio/libmtp')
-rw-r--r--audio/libmtp/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/audio/libmtp/Makefile b/audio/libmtp/Makefile
index 8636bb2b16ff..f8116bc2dd5d 100644
--- a/audio/libmtp/Makefile
+++ b/audio/libmtp/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libmtp
PORTVERSION= 0.3.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -28,9 +28,13 @@ LDFLAGS= -L${LOCALBASE}/lib -liconv
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800069
LIB_DEPENDS+= usb:${PORTSDIR}/devel/libusb
+LIBUSB= libusb
+.else
+LIBUSB=
.endif
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc||' ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e '/libusb/s//${LIBUSB}/' ${WRKSRC}/libmtp.pc.in
.include <bsd.port.post.mk>