svn commit: r396935 - head/x11/lxrandr

Dmitry Marakasov amdmi3 at FreeBSD.org
Mon Sep 14 21:45:24 UTC 2015


Author: amdmi3
Date: Mon Sep 14 21:45:23 2015
New Revision: 396935
URL: https://svnweb.freebsd.org/changeset/ports/396935

Log:
  - Switch to options helpers
  - Fix build without NLS
  
  Approved by:	portmgr blanket

Modified:
  head/x11/lxrandr/Makefile

Modified: head/x11/lxrandr/Makefile
==============================================================================
--- head/x11/lxrandr/Makefile	Mon Sep 14 21:44:48 2015	(r396934)
+++ head/x11/lxrandr/Makefile	Mon Sep 14 21:45:23 2015	(r396935)
@@ -23,24 +23,16 @@ OPTIONS_DEFINE=	DOCS NLS
 OPTIONS_SUB=	yes
 
 NLS_USES=	gettext
+NLS_USES_OFF=	gettext-tools
+NLS_CPPFLAGS=	-I${LOCALBASE}/include
+NLS_LDFLAGS=	-L${LOCALBASE}/lib
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
-.endif
-
-post-patch:
-.if ! ${PORT_OPTIONS:MNLS}
+post-patch-NLS-off:
 	@${REINPLACE_CMD} -e 's|po man|man|' \
 		${WRKSRC}/Makefile.in
-.endif
 
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
-.endif
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list