ports/171985: devel/jtag: Support USE_READLINE
KATO Tsuguru
tkato432 at yahoo.com
Tue Sep 25 18:10:18 UTC 2012
>Number: 171985
>Category: ports
>Synopsis: devel/jtag: Support USE_READLINE
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 25 18:10:18 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Support USE_READLINE
- Add LICENSE
- Add MAKE_JOBS_SAFE
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/devel/jtag/Makefile devel/jtag/Makefile
--- /usr/ports/devel/jtag/Makefile 2012-01-22 02:37:10.000000000 +0900
+++ devel/jtag/Makefile 2012-09-25 03:20:23.000000000 +0900
@@ -1,10 +1,5 @@
-# New ports collection makefile for: jtag
-# Date created: 2006-08-05
-# Whom: Stanislav Sedov <ssedov at mbsd.msk.ru>
-#
-# $MBSDlabs$
+# Created by: Stanislav Sedov <ssedov at mbsd.msk.ru>
# $FreeBSD: ports/devel/jtag/Makefile,v 1.11 2012/01/21 17:37:10 eadler Exp $
-#
PORTNAME= jtag
PORTVERSION= 0.5.1
@@ -15,25 +10,36 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= Utility to work with JTAG-aware boards
+LICENSE= GPLv2 # (or later)
+
BUILD_DEPENDS= ${OPENWINCE_INCLUDE_DEP}:${PORTSDIR}/devel/openwince-include
RUN_DEPENDS:= ${BUILD_DEPENDS}
+OPTIONS_DEFINE= NLS DOCS
+OPTIONS_DEFAULT=NLS
+
USE_BZIP2= yes
-USE_GETTEXT= yes
+USE_READLINE= yes
GNU_CONFIGURE= yes
+MAKE_JOBS_SAFE= yes
+
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+PORTDOCS= *
ONLY_FOR_ARCHS= i386
OPENWINCE_INCLUDE=${LOCALBASE}/include/openwince
OPENWINCE_INCLUDE_DEP=${OPENWINCE_INCLUDE}/common.h
-.if !defined(NOPORTDOCS)
-PORTDOCS= *
-.endif
+.include <bsd.port.options.mk>
-.include <bsd.port.pre.mk>
-
-.if exists(${LOCALBASE}/lib/libreadline.so.6)
-LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline
+.if ${PORT_OPTIONS:MNLS}
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
.endif
post-extract:
@@ -42,10 +48,11 @@
${WRKSRC}/configure
post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/TODO \
- ${WRKSRC}/doc/internals.xml ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+.for f in README TODO doc/internals.xml
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+.endfor
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/devel/jtag/pkg-plist devel/jtag/pkg-plist
--- /usr/ports/devel/jtag/pkg-plist 2007-05-20 05:02:56.000000000 +0900
+++ devel/jtag/pkg-plist 2012-09-08 23:45:42.000000000 +0900
@@ -41,7 +41,7 @@
%%DATADIR%%/xilinx/xcr3128xl-cs144/xcr3128xl-cs144
%%DATADIR%%/xilinx/xcr3256xl-ft256/STEPPINGS
%%DATADIR%%/xilinx/xcr3256xl-ft256/xcr3256xl-ft256
-share/locale/sk/LC_MESSAGES/jtag.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/jtag.mo
@dirrm %%DATADIR%%/xilinx/xcr3256xl-ft256
@dirrm %%DATADIR%%/xilinx/xcr3128xl-cs144
@dirrm %%DATADIR%%/xilinx/xc2c256-tq144
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list