Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= urjtag |
4 |
PORTNAME= urjtag |
5 |
PORTVERSION= 0.10 |
5 |
PORTVERSION= 0.10 |
6 |
PORTREVISION= 3 |
6 |
PORTREVISION= 4 |
7 |
CATEGORIES= devel |
7 |
CATEGORIES= devel |
8 |
MASTER_SITES= SF |
8 |
MASTER_SITES= SF |
9 |
|
9 |
|
Lines 12-37
Link Here
|
12 |
|
12 |
|
13 |
LICENSE= GPLv2 |
13 |
LICENSE= GPLv2 |
14 |
|
14 |
|
15 |
BUILD_DEPENDS= flex:${PORTSDIR}/textproc/flex |
15 |
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash |
16 |
|
16 |
|
17 |
USE_BZIP2= yes |
17 |
USE_BZIP2= yes |
18 |
USE_GMAKE= yes |
18 |
USES= gmake readline shebangfix |
|
|
19 |
SHEBANG_FILES= src/bsdl2jtag |
20 |
USE_CSTD= c99 |
19 |
GNU_CONFIGURE= yes |
21 |
GNU_CONFIGURE= yes |
20 |
CONFIGURE_ENV= LEX=${LOCALBASE}/bin/flex |
|
|
21 |
|
22 |
|
22 |
CPPFLAGS+= -I${LOCALBASE}/include |
23 |
CPPFLAGS+= -I${LOCALBASE}/include |
23 |
LDFLAGS+= -L${LOCALBASE}/lib |
24 |
LDFLAGS+= -L${LOCALBASE}/lib |
24 |
CFLAGS+= --std=c99 |
|
|
25 |
|
26 |
MAN1= jtag.1 bsdl2jtag.1 |
27 |
|
25 |
|
28 |
OPTIONS_DEFINE= USB FTDI JEDEC NLS |
26 |
OPTIONS_DEFINE= USB FTDI JEDEC NLS |
29 |
OPTIONS_DEFAULT= USB FTDI |
27 |
OPTIONS_DEFAULT= USB FTDI |
|
|
28 |
OPTIONS_SUB= yes |
30 |
USB_DESC= Build support for USB JTAG adapters |
29 |
USB_DESC= Build support for USB JTAG adapters |
31 |
FTDI_DESC= Build support for FTDI-based USB JTAG adapters |
30 |
FTDI_DESC= Build support for FTDI-based USB JTAG adapters |
32 |
JEDEC_DESC= Enable experimental JEDEC flash detection |
31 |
JEDEC_DESC= Enable experimental JEDEC flash detection |
33 |
|
32 |
|
34 |
NO_STAGE= yes |
|
|
35 |
.include <bsd.port.options.mk> |
33 |
.include <bsd.port.options.mk> |
36 |
|
34 |
|
37 |
.if ${PORT_OPTIONS:MJEDEC} |
35 |
.if ${PORT_OPTIONS:MJEDEC} |
Lines 39-67
Link Here
|
39 |
.endif |
37 |
.endif |
40 |
|
38 |
|
41 |
.if ${PORT_OPTIONS:MUSB} |
39 |
.if ${PORT_OPTIONS:MUSB} |
42 |
CONFIGURE_ARGS+= --with-libusb |
40 |
CONFIGURE_ARGS+= --with-libusb=/usr |
43 |
EXTRA_PATCHES= ${FILESDIR}/extra-patch-usb |
|
|
44 |
.endif |
45 |
|
46 |
.if ${PORT_OPTIONS:MFTDI} |
47 |
CONFIGURE_ARGS+= --with-libftdi |
48 |
LIB_DEPENDS+= ftdi:${PORTSDIR}/devel/libftdi |
49 |
.endif |
41 |
.endif |
50 |
|
42 |
|
51 |
.if exists(${LOCALBASE}/lib/libreadline.so.6) |
43 |
.if ! ${PORT_OPTIONS:MFTDI} |
52 |
LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline |
44 |
CONFIGURE_ARGS+= --without-libftdi |
|
|
45 |
.else |
46 |
LIB_DEPENDS+= libftdi.so:${PORTSDIR}/devel/libftdi |
53 |
.endif |
47 |
.endif |
54 |
|
48 |
|
55 |
.if ${PORT_OPTIONS:MNLS} |
49 |
.if ${PORT_OPTIONS:MNLS} |
56 |
USES+= gettext |
50 |
USES+= gettext |
57 |
PLIST_SUB+= NLS="" |
|
|
58 |
.else |
51 |
.else |
59 |
PLIST_SUB+= NLS="@comment " |
|
|
60 |
CONFIGURE_ARGS+=--disable-nls |
52 |
CONFIGURE_ARGS+=--disable-nls |
61 |
.endif |
53 |
.endif |
62 |
|
54 |
|
|
|
55 |
.include <bsd.port.pre.mk> |
56 |
|
57 |
.if ${OSVERSION} < 1000033 |
58 |
BUILD_DEPENDS+= flex>0:${PORTSDIR}/textproc/flex |
59 |
CONFIGURE_ENV+= LEX=${LOCALBASE}/bin/flex |
60 |
.endif |
61 |
|
63 |
post-patch: |
62 |
post-patch: |
64 |
# Suppress svn(1) binary detection |
63 |
# Suppress svn(1) binary detection |
65 |
@${REINPLACE_CMD} -e 's|^SVN=.*|SVN=''|' ${WRKSRC}/configure |
64 |
@${REINPLACE_CMD} -e \ |
|
|
65 |
's|^SVN=.*|SVN=''| ; \ |
66 |
s|-Lwith_libusb |-L$$with_libusb/lib | ; \ |
67 |
s|-I$$with_libusb"|-I$$with_libusb/include"|' \ |
68 |
${WRKSRC}/configure |
66 |
|
69 |
|
67 |
.include <bsd.port.mk> |
70 |
.include <bsd.port.post.mk> |