Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jan 2014 00:01:38 +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: r339878 - head/devel/gindent
Message-ID:  <201401160001.s0G01cA4096358@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Jan 16 00:01:37 2014
New Revision: 339878
URL: http://svnweb.freebsd.org/changeset/ports/339878
QAT: https://qat.redports.org/buildarchive/r339878/

Log:
  Reduce over inclusion of bsd.port.mk
  Use options helpers

Modified:
  head/devel/gindent/Makefile

Modified: head/devel/gindent/Makefile
==============================================================================
--- head/devel/gindent/Makefile	Thu Jan 16 00:00:04 2014	(r339877)
+++ head/devel/gindent/Makefile	Thu Jan 16 00:01:37 2014	(r339878)
@@ -12,34 +12,26 @@ DISTNAME=	indent-${PORTVERSION}
 MAINTAINER=	johans@FreeBSD.org
 COMMENT=	GNU indent
 
+OPTIONS_DEFINE=	DOCS NLS
+
 GNU_CONFIGURE=	yes
 CPPFLAGS+=	-I${LOCALBASE}/include -DBERKELEY_DEFAULTS=1
 LDFLAGS+=	-L${LOCALBASE}/lib
 CONFIGURE_ARGS=	--program-prefix=g
 MAKE_JOBS_UNSAFE=	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
+NLS_USES=	gettext
+OPTIONS_SUB=	yes
+NLS_CONFIGURE_OFF=	--disable-nls
 
 INFO=		indent
 
-.include <bsd.port.pre.mk>
-
 post-patch:
 	@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
 		's|malloc\.h|stdlib.h|g'
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/doc/indent.html ${STAGEDIR}${DOCSDIR}
-.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?201401160001.s0G01cA4096358>