svn commit: r362805 - head/deskutils/calcurse

Adam Weinberger adamw at FreeBSD.org
Thu Jul 24 15:22:00 UTC 2014


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


More information about the svn-ports-all mailing list