svn commit: r359517 - head/net/rtptools

Pawel Pekala pawel at FreeBSD.org
Fri Jun 27 13:05:36 UTC 2014


Author: pawel
Date: Fri Jun 27 13:05:35 2014
New Revision: 359517
URL: http://svnweb.freebsd.org/changeset/ports/359517
QAT: https://qat.redports.org/buildarchive/r359517/

Log:
  - Add staging support
  - Convert to new options framework

Modified:
  head/net/rtptools/Makefile

Modified: head/net/rtptools/Makefile
==============================================================================
--- head/net/rtptools/Makefile	Fri Jun 27 12:56:42 2014	(r359516)
+++ head/net/rtptools/Makefile	Fri Jun 27 13:05:35 2014	(r359517)
@@ -12,16 +12,12 @@ COMMENT=	Set of tools to record, playbac
 GNU_CONFIGURE=	yes
 
 PLIST_FILES=	bin/rtpdump bin/rtpplay bin/rtpsend bin/rtptrans
-DOCFILES=	README ChangeLog.html rtptools.html
-PORTDOCS=	${DOCSFILES}
+PORTDOCS=	README ChangeLog.html rtptools.html
+
+OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
 post-install:
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-.for i in ${DOCFILES}
-	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
-.endfor
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list