Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Dec 2012 07:02:23 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308822 - head/devel/jtag
Message-ID:  <201212130702.qBD72NFR069848@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Thu Dec 13 07:02:23 2012
New Revision: 308822
URL: http://svnweb.freebsd.org/changeset/ports/308822

Log:
  - Add LICENSE.
  - Add MAKE_JOBS_SAFE.
  - Support USE_READLINE.
  - Trim header.
  
  PR:		ports/171985
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/devel/jtag/Makefile
  head/devel/jtag/pkg-plist

Modified: head/devel/jtag/Makefile
==============================================================================
--- head/devel/jtag/Makefile	Thu Dec 13 06:46:02 2012	(r308821)
+++ head/devel/jtag/Makefile	Thu Dec 13 07:02:23 2012	(r308822)
@@ -1,10 +1,5 @@
-# New ports collection makefile for:	jtag
-# Date created:		2006-08-05
-# Whom:			Stanislav Sedov <ssedov@mbsd.msk.ru>
-#
-# $MBSDlabs$
+# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
 # $FreeBSD$
-#
 
 PORTNAME=	jtag
 PORTVERSION=	0.5.1
@@ -15,25 +10,36 @@ MASTER_SITES=	SF/openwince/${PORTNAME}/$
 MAINTAINER=	ports@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 @@ post-extract:
 		${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>

Modified: head/devel/jtag/pkg-plist
==============================================================================
--- head/devel/jtag/pkg-plist	Thu Dec 13 06:46:02 2012	(r308821)
+++ head/devel/jtag/pkg-plist	Thu Dec 13 07:02:23 2012	(r308822)
@@ -41,7 +41,7 @@ bin/jtag
 %%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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212130702.qBD72NFR069848>