svn commit: r397243 - head/x11-wm/obconf

Dmitry Marakasov amdmi3 at FreeBSD.org
Fri Sep 18 14:01:15 UTC 2015


Author: amdmi3
Date: Fri Sep 18 14:01:14 2015
New Revision: 397243
URL: https://svnweb.freebsd.org/changeset/ports/397243

Log:
  - Switch to options helpers
  
  Approved by:	portmgr blanket

Modified:
  head/x11-wm/obconf/Makefile

Modified: head/x11-wm/obconf/Makefile
==============================================================================
--- head/x11-wm/obconf/Makefile	Fri Sep 18 14:01:06 2015	(r397242)
+++ head/x11-wm/obconf/Makefile	Fri Sep 18 14:01:14 2015	(r397243)
@@ -27,23 +27,15 @@ LDFLAGS+=	-L${LOCALBASE}/lib
 PORTDOCS=	ABOUT-NLS AUTHORS README TODO
 
 OPTIONS_DEFINE=	DOCS NLS
+OPTIONS_SUB=	yes
 
-.include <bsd.port.options.mk>
+NLS_USES=		gettext
+NLS_CONFIGURE_ENABLE=	nls
 
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext
-PLIST_SUB+=		NLS=""
-.else
-CONFIGURE_ARGS+=	--disable-nls
-PLIST_SUB+=		NLS="@comment "
-.endif
-
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for file in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list