aboutsummaryrefslogtreecommitdiff
path: root/textproc/dwdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-02-20 17:58:56 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-02-20 17:58:56 +0000
commitd1b382746d529fd76e8251ac46650fa5076bc21a (patch)
tree2774c351325153b8aa5669166fb39c54bbeec823 /textproc/dwdiff
parent4485b96c87f55749a425c0f6fd6769b68b9b1669 (diff)
downloadports-d1b382746d529fd76e8251ac46650fa5076bc21a.tar.gz
ports-d1b382746d529fd76e8251ac46650fa5076bc21a.zip
Convert to new options framework
Notes
Notes: svn path=/head/; revision=312640
Diffstat (limited to 'textproc/dwdiff')
-rw-r--r--textproc/dwdiff/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/textproc/dwdiff/Makefile b/textproc/dwdiff/Makefile
index ff50ad28c68e..a6bda96dd66e 100644
--- a/textproc/dwdiff/Makefile
+++ b/textproc/dwdiff/Makefile
@@ -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