Prune devel/py-EnthoughtBase
[dports.git] / devel / urjtag / Makefile
1 # Created by: Bruce M. Simpson <bms@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       urjtag
5 PORTVERSION=    0.10
6 PORTREVISION=   5
7 CATEGORIES=     devel
8 MASTER_SITES=   SF
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        Extended utility to work with JTAG-aware boards
12
13 LICENSE=        GPLv2
14
15 RUN_DEPENDS=    bash:${PORTSDIR}/shells/bash
16
17 USES=           gmake readline shebangfix tar:bzip2
18 SHEBANG_FILES=  src/bsdl2jtag
19 USE_CSTD=       c99
20 GNU_CONFIGURE=  yes
21
22 CPPFLAGS+=      -I${LOCALBASE}/include
23 LDFLAGS+=       -L${LOCALBASE}/lib
24
25 OPTIONS_DEFINE=         FTDI JEDEC NLS USB
26 OPTIONS_DEFAULT=        FTDI USB
27 OPTIONS_SUB=            yes
28
29 FTDI_DESC=              FTDI-based USB JTAG adapters support
30 FTDI_LIB_DEPENDS=       libftdi.so:${PORTSDIR}/devel/libftdi
31 FTDI_CONFIGURE_WITH=    libftdi
32
33 JEDEC_DESC=             Experimental JEDEC flash detection
34 JEDEC_CONFIGURE_ENABLE= jedec
35
36 NLS_USES=               gettext
37 NLS_CONFIGURE_ENABLE=   nls
38
39 USB_DESC=               USB JTAG adapters support
40 USB_CONFIGURE_ON=       --with-libusb=/usr
41
42 .include <bsd.port.pre.mk>
43
44 .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000033
45 BUILD_DEPENDS+= flex>0:${PORTSDIR}/textproc/flex
46 CONFIGURE_ENV+= LEX=${LOCALBASE}/bin/flex
47 .endif
48
49 post-patch:
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"|' \
55                 ${WRKSRC}/configure
56
57 .include <bsd.port.post.mk>