Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jan 2014 12:06:04 +0000 (UTC)
From:      Ruslan Makhmatkhanov <rm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340602 - head/deskutils/xchm
Message-ID:  <201401211206.s0LC643E045506@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rm
Date: Tue Jan 21 12:06:04 2014
New Revision: 340602
URL: http://svnweb.freebsd.org/changeset/ports/340602
QAT: https://qat.redports.org/buildarchive/r340602/

Log:
  - use options helpers, add NLS to available options list
  - add stage support

Modified:
  head/deskutils/xchm/Makefile

Modified: head/deskutils/xchm/Makefile
==============================================================================
--- head/deskutils/xchm/Makefile	Tue Jan 21 11:52:07 2014	(r340601)
+++ head/deskutils/xchm/Makefile	Tue Jan 21 12:06:04 2014	(r340602)
@@ -13,6 +13,10 @@ LICENSE=	GPLv2
 
 LIB_DEPENDS=	libchm.so:${PORTSDIR}/misc/chmlib
 
+OPTIONS_DEFINE=	NLS
+OPTIONS_SUB=	yes
+NLS_USES=	gettext
+
 GNU_CONFIGURE=	yes
 USE_WX=		2.6+
 WX_UNICODE=	yes
@@ -20,15 +24,4 @@ WX_CONF_ARGS=	absolute
 LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
 CPPFLAGS+=	-I${LOCALBASE}/include
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext
-PLIST_SUB+=	NLS=""
-.else
-CONFIGURE_ARGS+=	--disable-nls
-PLIST_SUB+=	NLS="@comment "
-.endif
-
 .include <bsd.port.mk>



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