Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jul 2012 22:25:22 +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: r301260 - head/textproc/senna
Message-ID:  <201207202225.q6KMPMmg045738@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Jul 20 22:25:22 2012
New Revision: 301260
URL: http://svn.freebsd.org/changeset/ports/301260

Log:
  Convert to new options framework

Modified:
  head/textproc/senna/Makefile

Modified: head/textproc/senna/Makefile
==============================================================================
--- head/textproc/senna/Makefile	Fri Jul 20 22:20:15 2012	(r301259)
+++ head/textproc/senna/Makefile	Fri Jul 20 22:25:22 2012	(r301260)
@@ -25,24 +25,26 @@ WRKSRC=		${WRKDIR}/${DISTNAME}
 
 SENNA_HOME?=	/var/senna
 
-OPTIONS=	MECAB	"use mecab for morphological analysis" on \
-		NFKC	"use nfkc based utf8 normalization" on
+OPTIONS_DEFINE=	MECAB NFKC
+OPTIONS_DEFAULT=	MECAB NFKC
+MECAB_DESC=	use mecab for morphological analysis
+NFKC_DESC=	use nfkc based utf8 normalization
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 .if ${ARCH} == "ia64" || ${ARCH} == "sparc64"
 BROKEN=		Does not compile on ${ARCH}
 .endif
 
-.if defined(WITH_MECAB)
+.if ${PORT_OPTIONS:MMECAB}
 CONFIGURE_ARGS+=	--with-mecab
 LIB_DEPENDS+=	mecab:${PORTSDIR}/japanese/mecab
 .else
 CONFIGURE_ARGS+=	--without-mecab
 .endif
 
-.if !defined(WITH_NFKC)
+.if ${PORT_OPTIONS:MNFKC}
 CONFIGURE_ARGS+=	--disable-nfkc
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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