1 # Created by: Bruce M. Simpson <bms@FreeBSD.org>
10 MAINTAINER= ports@FreeBSD.org
11 COMMENT= Extended utility to work with JTAG-aware boards
15 RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
17 USES= gmake readline shebangfix tar:bzip2
18 SHEBANG_FILES= src/bsdl2jtag
22 CPPFLAGS+= -I${LOCALBASE}/include
23 LDFLAGS+= -L${LOCALBASE}/lib
25 OPTIONS_DEFINE= FTDI JEDEC NLS USB
26 OPTIONS_DEFAULT= FTDI USB
29 FTDI_DESC= FTDI-based USB JTAG adapters support
30 FTDI_LIB_DEPENDS= libftdi.so:${PORTSDIR}/devel/libftdi
31 FTDI_CONFIGURE_WITH= libftdi
33 JEDEC_DESC= Experimental JEDEC flash detection
34 JEDEC_CONFIGURE_ENABLE= jedec
37 NLS_CONFIGURE_ENABLE= nls
39 USB_DESC= USB JTAG adapters support
40 USB_CONFIGURE_ON= --with-libusb=/usr
42 .include <bsd.port.pre.mk>
44 .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000033
45 BUILD_DEPENDS+= flex>0:${PORTSDIR}/textproc/flex
46 CONFIGURE_ENV+= LEX=${LOCALBASE}/bin/flex
50 # Suppress svn(1) binary detection
51 @${REINPLACE_CMD} -e \
52 's|^SVN=.*|SVN=''| ; \
53 s|-Lwith_libusb |-L$$with_libusb/lib | ; \
54 s|-I$$with_libusb"|-I$$with_libusb/include"|' \
57 .include <bsd.port.post.mk>