diff options
author | jadawin <jadawin@FreeBSD.org> | 2013-12-24 17:51:50 +0800 |
---|---|---|
committer | jadawin <jadawin@FreeBSD.org> | 2013-12-24 17:51:50 +0800 |
commit | 63d51de6c32b41bba9573e7ad839b298c192e747 (patch) | |
tree | 7f46f37c1e8e4c08816fdda5e578bd94e0f64d3a | |
parent | 2f5fbf2dc004349803600ef0c02b5e727103bb42 (diff) | |
download | freebsd-ports-gnome-63d51de6c32b41bba9573e7ad839b298c192e747.tar.gz freebsd-ports-gnome-63d51de6c32b41bba9573e7ad839b298c192e747.tar.zst freebsd-ports-gnome-63d51de6c32b41bba9573e7ad839b298c192e747.zip |
- Fix build on current
- Support STAGE
PR: ports/184810
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
-rw-r--r-- | devel/urjtag/Makefile | 47 | ||||
-rw-r--r-- | devel/urjtag/files/extra-patch-usb | 14 | ||||
-rw-r--r-- | devel/urjtag/pkg-plist | 2 |
3 files changed, 27 insertions, 36 deletions
diff --git a/devel/urjtag/Makefile b/devel/urjtag/Makefile index a509ed45183f..15d975d23720 100644 --- a/devel/urjtag/Makefile +++ b/devel/urjtag/Makefile @@ -3,7 +3,7 @@ PORTNAME= urjtag PORTVERSION= 0.10 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= devel MASTER_SITES= SF @@ -12,26 +12,24 @@ COMMENT= Extended utility to work with JTAG-aware boards LICENSE= GPLv2 -BUILD_DEPENDS= flex:${PORTSDIR}/textproc/flex +RUN_DEPENDS= bash:${PORTSDIR}/shells/bash USE_BZIP2= yes -USE_GMAKE= yes +USES= gmake readline shebangfix +SHEBANG_FILES= src/bsdl2jtag +USE_CSTD= c99 GNU_CONFIGURE= yes -CONFIGURE_ENV= LEX=${LOCALBASE}/bin/flex CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -CFLAGS+= --std=c99 - -MAN1= jtag.1 bsdl2jtag.1 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 -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MJEDEC} @@ -39,29 +37,34 @@ CONFIGURE_ARGS+= --enable-jedec .endif .if ${PORT_OPTIONS:MUSB} -CONFIGURE_ARGS+= --with-libusb -EXTRA_PATCHES= ${FILESDIR}/extra-patch-usb -.endif - -.if ${PORT_OPTIONS:MFTDI} -CONFIGURE_ARGS+= --with-libftdi -LIB_DEPENDS+= ftdi:${PORTSDIR}/devel/libftdi +CONFIGURE_ARGS+= --with-libusb=/usr .endif -.if exists(${LOCALBASE}/lib/libreadline.so.6) -LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline +.if ! ${PORT_OPTIONS:MFTDI} +CONFIGURE_ARGS+= --without-libftdi +.else +LIB_DEPENDS+= libftdi.so:${PORTSDIR}/devel/libftdi .endif .if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" +USES+= gettext .else -PLIST_SUB+= NLS="@comment " CONFIGURE_ARGS+=--disable-nls .endif +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 1000033 +BUILD_DEPENDS+= flex>0:${PORTSDIR}/textproc/flex +CONFIGURE_ENV+= LEX=${LOCALBASE}/bin/flex +.endif + post-patch: # Suppress svn(1) binary detection - @${REINPLACE_CMD} -e 's|^SVN=.*|SVN=''|' ${WRKSRC}/configure + @${REINPLACE_CMD} -e \ + 's|^SVN=.*|SVN=''| ; \ + s|-Lwith_libusb |-L$$with_libusb/lib | ; \ + s|-I$$with_libusb"|-I$$with_libusb/include"|' \ + ${WRKSRC}/configure -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/devel/urjtag/files/extra-patch-usb b/devel/urjtag/files/extra-patch-usb deleted file mode 100644 index 995df925a764..000000000000 --- a/devel/urjtag/files/extra-patch-usb +++ /dev/null @@ -1,14 +0,0 @@ ---- configure.orig 2008-09-14 14:51:22.000000000 +0400 -+++ configure 2009-03-07 20:52:56.000000000 +0300 -@@ -8604,6 +8604,10 @@ - USBLIBS="-L$with_libusb/lib/gcc -lusb" - USBCLAGS="-I$with_libusb/include" - ;; -+ *-*-freebsd*) -+ USBLIBS="-lusb" -+ USBCLAGS="" -+ ;; - *) - USBLIBS="-Lwith_libusb -lusb" - USBCFLAGS="-I$with_libusb" - # check for lex/flex diff --git a/devel/urjtag/pkg-plist b/devel/urjtag/pkg-plist index 5f92a5278961..7fd3b1403ee4 100644 --- a/devel/urjtag/pkg-plist +++ b/devel/urjtag/pkg-plist @@ -1,5 +1,7 @@ bin/bsdl2jtag bin/jtag +man/man1/bsdl2jtag.1.gz +man/man1/jtag.1.gz %%NLS%%share/locale/fr/LC_MESSAGES/urjtag.mo %%NLS%%share/locale/rw/LC_MESSAGES/urjtag.mo %%NLS%%share/locale/sk/LC_MESSAGES/urjtag.mo |