Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Sep 2015 21:19:55 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r397766 - head/net/udt
Message-ID:  <201509242119.t8OLJtFg045679@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Sep 24 21:19:54 2015
New Revision: 397766
URL: https://svnweb.freebsd.org/changeset/ports/397766

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

Modified:
  head/net/udt/Makefile

Modified: head/net/udt/Makefile
==============================================================================
--- head/net/udt/Makefile	Thu Sep 24 21:19:41 2015	(r397765)
+++ head/net/udt/Makefile	Thu Sep 24 21:19:54 2015	(r397766)
@@ -12,7 +12,7 @@ MAINTAINER=	mi@aldan.algebra.com
 COMMENT=	C++ library containing the UDT API implementation
 
 PATCH_WRKSRC=	${WRKDIR}/udt${PORTVERSION:R}
-WRKSRC=	${PATCH_WRKSRC}/src
+WRKSRC=		${PATCH_WRKSRC}/src
 MAKEFILE=	${FILESDIR}/BSDmakefile
 EXTRACT_AFTER_ARGS=	--exclude '*md5*'	\
 		--exclude udt${PORTVERSION:R}/win
@@ -22,6 +22,8 @@ USES=		uidfix
 
 OPTIONS_DEFINE=	DOCS
 
+DOCS_VARS_OFF=	EXTRACT_AFTER_ARGS+="--exclude udt${PORTVERSION:R}/doc"
+
 post-build:
 	# Building sample applications:
 .for a in ${UDT_APPS}
@@ -29,17 +31,13 @@ post-build:
 	    -I${WRKSRC} -L${WRKSRC} -ludt -pthread
 .endfor
 
-.include <bsd.port.options.mk>
-
 post-install:
 	# Installing sample applications:
 	${INSTALL_PROGRAM} ${UDT_APPS:S|^|${WRKSRC:H}/app/udt-|} ${STAGEDIR}${PREFIX}/bin/
-.if ${PORT_OPTIONS:MDOCS}
+
+post-install-DOCS-on:
 	# Installing documentation tree into ${DOCSDIR}
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC:H}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
-.else
-EXTRACT_AFTER_ARGS+=	--exclude udt${PORTVERSION:R}/doc
-.endif
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509242119.t8OLJtFg045679>