- Mark BROKEN when base libusb is older than 1.0.4.

Reported by:	pointyhat via pav
This commit is contained in:
Alberto Villa 2011-03-02 02:56:31 +00:00
parent ed20927f56
commit e738604a7f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=270099

View file

@ -23,8 +23,17 @@ PORTDOCS= AUTHORS README README.devel
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800069
BROKEN= requires libusb 1.0
.if ${OSVERSION} == 800107 || ${OSVERSION} == 900002
HAVE_LIBUSB104!= ${GREP} --quiet "libusb_fill_bulk_transfer" \
/usr/include/libusb.h \
&& ${ECHO} yes || ${ECHO} no
.elif ${OSVERSION} > 800107 && ${OSVERSION} < 900000 || ${OSVERSION} > 900002
HAVE_LIBUSB104= yes
.else
HAVE_LIBUSB104= no
.endif
.if ${HAVE_LIBUSB104} == "no"
BROKEN= requires libusb 1.0.4
.endif
pre-configure: