svn commit: r320950 - head/sysutils/fvcool

Boris Samorodov bsam at FreeBSD.org
Fri Jun 14 16:06:45 UTC 2013


Author: bsam
Date: Fri Jun 14 16:06:45 2013
New Revision: 320950
URL: http://svnweb.freebsd.org/changeset/ports/320950

Log:
  .NOPORTDOCS -> PORT_OPTIONS:MDOCS;                                                                                        pts/4 20:04
  371> . remove unneeded PLIST_SUB;
  . trim Makefile headers.

Modified:
  head/sysutils/fvcool/Makefile

Modified: head/sysutils/fvcool/Makefile
==============================================================================
--- head/sysutils/fvcool/Makefile	Fri Jun 14 16:05:09 2013	(r320949)
+++ head/sysutils/fvcool/Makefile	Fri Jun 14 16:06:45 2013	(r320950)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	fvcool
-# Date created:				5 October 2002
-# Whom:				Frerich Raabe <frerich.raabe at gmx.de>
-#
+# Created by: Frerich Raabe <frerich.raabe at gmx.de>
 # $FreeBSD$
-#
 
 PORTNAME=	fvcool
 PORTVERSION=	1.0.4
@@ -20,11 +16,12 @@ USE_RC_SUBR=	fvcool
 SUB_FILES=	pkg-message
 SUB_LIST+=	"PORTNAME=${PORTNAME}"
 ALL_TARGET=	fvcool
-PLIST_SUB+=	DOCSDIR=${DOCSDIR:S,^${PREFIX}/,,}
 
 PORTDOCS=	ReadMe ReadMe.jp ReadMe.tech_KT133
 PLIST_FILES=	sbin/fvcool
 
+OPTIONS_DEFINE=	DOCS
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|@CC@|& ${CFLAGS}|; \
 		s|-O3||g ; s| -s | |g' ${BUILD_WRKSRC}/Makefile.in
@@ -35,12 +32,12 @@ do-install: install-doc
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
+.include <bsd.port.options.mk>
+
 install-doc:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-.for file in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list