Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2013 17:58:56 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r312640 - head/textproc/dwdiff
Message-ID:  <201302201758.r1KHwuLx069351@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Wed Feb 20 17:58:56 2013
New Revision: 312640
URL: http://svnweb.freebsd.org/changeset/ports/312640

Log:
  Convert to new options framework

Modified:
  head/textproc/dwdiff/Makefile

Modified: head/textproc/dwdiff/Makefile
==============================================================================
--- head/textproc/dwdiff/Makefile	Wed Feb 20 17:55:06 2013	(r312639)
+++ head/textproc/dwdiff/Makefile	Wed Feb 20 17:58:56 2013	(r312640)
@@ -1,7 +1,4 @@
-# New ports collection makefile for:	dwdiff
-# Date created:		30 September 2006
-# Whom:			Alexander Logvinov <ports@logvinov.com>
-#
+# Created by: Alexander Logvinov <ports@logvinov.com>
 # $FreeBSD$
 
 PORTNAME=	dwdiff
@@ -16,7 +13,9 @@ EXTRACT_SUFX=	.tgz
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A delimited word diff program
 
-OPTIONS=	UNICODE	"Build with Unicode support"	on
+OPTIONS_DEFINE=	UNICODE NLS DOCS
+OPTIONS_DEFAULT=	UNICODE
+UNICODE_DESC=	Unicode support
 
 MAKE_JOBS_SAFE=	yes
 
@@ -33,7 +32,7 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 .include <bsd.port.options.mk>
 
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
 USE_GETTEXT=	yes
 PLIST_SUB+=	NLS=""
 MANLANG=	"" nl nl.UTF-8
@@ -42,14 +41,14 @@ CONFIGURE_ARGS+=	--without-gettext
 PLIST_SUB+=	NLS="@comment "
 .endif
 
-.if defined(WITH_UNICODE)
+.if ${PORT_OPTIONS:MUNICODE}
 LIB_DEPENDS+=	icudata:${PORTSDIR}/devel/icu
 .else
 CONFIGURE_ARGS+=	--without-unicode
 .endif
 
 post-patch:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${REINPLACE_CMD} -e 's|share/doc/${PORTNAME}-${PORTVERSION}|${DOCSDIR_REL}|' \
 		${WRKSRC}/Makefile.in
 .else



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