svn commit: r339878 - head/devel/gindent

Baptiste Daroussin bapt at FreeBSD.org
Thu Jan 16 00:01:38 UTC 2014


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 at 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>


More information about the svn-ports-all mailing list