Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2014 15:21:59 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r362805 - head/deskutils/calcurse
Message-ID:  <201407241521.s6OFLxhA096021@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Thu Jul 24 15:21:59 2014
New Revision: 362805
URL: http://svnweb.freebsd.org/changeset/ports/362805
QAT: https://qat.redports.org/buildarchive/r362805/

Log:
  Fix build with NLS enabled by removing unnecessary gcc-ism.
  
  While here, use OPTIONS helpers to avoid including bsd.port.options.mk.

Modified:
  head/deskutils/calcurse/Makefile

Modified: head/deskutils/calcurse/Makefile
==============================================================================
--- head/deskutils/calcurse/Makefile	Thu Jul 24 15:15:41 2014	(r362804)
+++ head/deskutils/calcurse/Makefile	Thu Jul 24 15:21:59 2014	(r362805)
@@ -12,29 +12,19 @@ COMMENT=	Text-based calendar and schedul
 LICENSE=	BSD2CLAUSE
 
 OPTIONS_DEFINE=	DOCS NLS
+OPTIONS_SUB=	yes
 
 USES=		gmake
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--without-asciidoc
 
-.include <bsd.port.options.mk>
-
-.if empty(PORT_OPTIONS:MDOCS)
-CONFIGURE_ARGS+=	--disable-docs
-.endif
-
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext
-PLIST_SUB+=	NLS=""
-.else
-CONFIGURE_ARGS+=	--disable-nls
-PLIST_SUB+=	NLS="@comment "
-.endif
+DOCS_CONFIGURE_ENABLE=	docs
+NLS_CONFIGURE_ENABLE=	nls
+NLS_USES=	gettext
 
 post-patch:
-.if ${PORT_OPTIONS:MDOCS}
 	@${REINPLACE_CMD} -e 's|^docdir = .*|docdir = ${DOCSDIR}|' ${WRKSRC}/doc/Makefile.in
-.endif
+	@${REINPLACE_CMD} -e 's|-R$$found_dir||' ${WRKSRC}/configure
 
 post-install:
 	${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}.1



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