mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
- Rework the checks to allow running in crossbuilding environment.
Reported by: pointyhat via pav
This commit is contained in:
parent
723f989728
commit
f084cf7c2a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=270394
@ -23,16 +23,7 @@ PORTDOCS= AUTHORS README README.devel
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} == 800107 || ${OSVERSION} == 900002
|
||||
HAVE_LIBUSB104!= ${GREP} --quiet "libusb_fill_bulk_transfer" \
|
||||
/usr/include/libusb.h \
|
||||
&& ${ECHO_CMD} yes || ${ECHO_CMD} no
|
||||
.elif ${OSVERSION} > 800107 && ${OSVERSION} < 900000 || ${OSVERSION} > 900002
|
||||
HAVE_LIBUSB104= yes
|
||||
.else
|
||||
HAVE_LIBUSB104= no
|
||||
.endif
|
||||
.if ${HAVE_LIBUSB104} == "no"
|
||||
.if ${OSVERSION} <= 800107 || ${OSVERSION} >= 900000 && ${OSVERSION} <= 900002
|
||||
BROKEN= requires libusb 1.0.4
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user