aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorjhale <jhale@FreeBSD.org>2014-10-12 05:17:40 +0800
committerjhale <jhale@FreeBSD.org>2014-10-12 05:17:40 +0800
commit1aa9991eaf78da9cc79d03c29ed982661fa1b0e6 (patch)
tree34212b3bde157885d9e2af8cff662a6c58ce5129 /devel
parentc8167a6a1cbd2dc418a6495006c8cad3fab47ed0 (diff)
downloadfreebsd-ports-gnome-1aa9991eaf78da9cc79d03c29ed982661fa1b0e6.tar.gz
freebsd-ports-gnome-1aa9991eaf78da9cc79d03c29ed982661fa1b0e6.tar.zst
freebsd-ports-gnome-1aa9991eaf78da9cc79d03c29ed982661fa1b0e6.zip
- Convert USE_BZIP2 to USES
- Use options helpers - Whitespace cleanup
Diffstat (limited to 'devel')
-rw-r--r--devel/urjtag/Makefile41
1 files changed, 14 insertions, 27 deletions
diff --git a/devel/urjtag/Makefile b/devel/urjtag/Makefile
index 5bee47a99ff9..1c5a81a96783 100644
--- a/devel/urjtag/Makefile
+++ b/devel/urjtag/Makefile
@@ -14,8 +14,7 @@ LICENSE= GPLv2
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
-USE_BZIP2= yes
-USES= gmake readline shebangfix
+USES= gmake readline shebangfix tar:bzip2
SHEBANG_FILES= src/bsdl2jtag
USE_CSTD= c99
GNU_CONFIGURE= yes
@@ -23,34 +22,22 @@ GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-OPTIONS_DEFINE= USB FTDI JEDEC NLS
-OPTIONS_DEFAULT= USB FTDI
-OPTIONS_SUB= yes
-USB_DESC= Build support for USB JTAG adapters
-FTDI_DESC= Build support for FTDI-based USB JTAG adapters
-JEDEC_DESC= Enable experimental JEDEC flash detection
+OPTIONS_DEFINE= FTDI JEDEC NLS USB
+OPTIONS_DEFAULT= FTDI USB
+OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
+FTDI_DESC= FTDI-based USB JTAG adapters support
+FTDI_LIB_DEPENDS= libftdi.so:${PORTSDIR}/devel/libftdi
+FTDI_CONFIGURE_WITH= libftdi
-.if ${PORT_OPTIONS:MJEDEC}
-CONFIGURE_ARGS+= --enable-jedec
-.endif
+JEDEC_DESC= Experimental JEDEC flash detection
+JEDEC_CONFIGURE_ENABLE= jedec
-.if ${PORT_OPTIONS:MUSB}
-CONFIGURE_ARGS+= --with-libusb=/usr
-.endif
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
-.if ! ${PORT_OPTIONS:MFTDI}
-CONFIGURE_ARGS+= --without-libftdi
-.else
-LIB_DEPENDS+= libftdi.so:${PORTSDIR}/devel/libftdi
-.endif
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-.else
-CONFIGURE_ARGS+=--disable-nls
-.endif
+USB_DESC= USB JTAG adapters support
+USB_CONFIGURE_ON= --with-libusb=/usr
.include <bsd.port.pre.mk>
@@ -63,7 +50,7 @@ post-patch:
# Suppress svn(1) binary detection
@${REINPLACE_CMD} -e \
's|^SVN=.*|SVN=''| ; \
- s|-Lwith_libusb |-L$$with_libusb/lib | ; \
+ s|-Lwith_libusb |-L$$with_libusb/lib | ; \
s|-I$$with_libusb"|-I$$with_libusb/include"|' \
${WRKSRC}/configure