svn commit: r360156 - head/www/tinytinyhttpd

Vanilla I. Shu vanilla at FreeBSD.org
Wed Jul 2 08:25:07 UTC 2014


Author: vanilla
Date: Wed Jul  2 08:25:06 2014
New Revision: 360156
URL: http://svnweb.freebsd.org/changeset/ports/360156
QAT: https://qat.redports.org/buildarchive/r360156/

Log:
  1: Stagify.
  2: use options helper.
  
  Approved by:	portmgr@ (blanket approval)

Modified:
  head/www/tinytinyhttpd/Makefile

Modified: head/www/tinytinyhttpd/Makefile
==============================================================================
--- head/www/tinytinyhttpd/Makefile	Wed Jul  2 08:16:28 2014	(r360155)
+++ head/www/tinytinyhttpd/Makefile	Wed Jul  2 08:25:06 2014	(r360156)
@@ -15,16 +15,18 @@ HAS_CONFIGURE=	yes
 PLIST_FILES=	bin/tthttpd
 SUB_FILES=	example.conf
 PORTDOCS=	README example.conf ChangeLog
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
 
-NO_STAGE=	yes
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/tthttpd ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/tthttpd ${STAGEDIR}${PREFIX}/bin
 
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKDIR}/example.conf ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKDIR}/example.conf ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list