aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-02-21 01:58:56 +0800
committerbapt <bapt@FreeBSD.org>2013-02-21 01:58:56 +0800
commitf6088e2224be35a437985fe07d19a5d856b0c4e1 (patch)
tree2774c351325153b8aa5669166fb39c54bbeec823 /textproc
parentcbb527aea6180b299753593e793f8e62c17f1ea6 (diff)
downloadfreebsd-ports-gnome-f6088e2224be35a437985fe07d19a5d856b0c4e1.tar.gz
freebsd-ports-gnome-f6088e2224be35a437985fe07d19a5d856b0c4e1.tar.zst
freebsd-ports-gnome-f6088e2224be35a437985fe07d19a5d856b0c4e1.zip
Convert to new options framework
Diffstat (limited to 'textproc')
-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