svn commit: r309142 - head/archivers/xmill

Alexey Dokuchaev danfe at FreeBSD.org
Tue Dec 18 04:14:23 UTC 2012


Author: danfe
Date: Tue Dec 18 04:14:22 2012
New Revision: 309142
URL: http://svnweb.freebsd.org/changeset/ports/309142

Log:
  - Use two-line Makefile header
  - Utilize PORT_OPTIONS for docs and examples
  - Drop article from COMMENT
  
  Approved by:	maintainer (implicit)

Modified:
  head/archivers/xmill/Makefile

Modified: head/archivers/xmill/Makefile
==============================================================================
--- head/archivers/xmill/Makefile	Tue Dec 18 03:42:33 2012	(r309141)
+++ head/archivers/xmill/Makefile	Tue Dec 18 04:14:22 2012	(r309142)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	XMill
-# Date created:				09 May 2003
-# Whom:					Alexey Dokuchaev <danfe at regency.nsu.ru>
-#
+# Created by: Alexey Dokuchaev <danfe at regency.nsu.ru>
 # $FreeBSD$
-#
 
 PORTNAME=	xmill
 DISTVERSION=	0.8
@@ -11,7 +7,7 @@ CATEGORIES=	archivers
 MASTER_SITES=	SF
 
 MAINTAINER=	sylvio at FreeBSD.org
-COMMENT=	An efficient compressor for XML
+COMMENT=	Efficient compressor for XML
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 MAKEFILE=	makefile
@@ -25,7 +21,9 @@ PLIST_FILES=	bin/xcmill bin/xdemill bin/
 PORTDOCS=	*
 PORTEXAMPLES=	*
 
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
+.include <bsd.port.options.mk>
 
 post-patch:
 # Allow to build with modern GCC
@@ -36,13 +34,13 @@ do-install:
 .for p in ${PLIST_FILES:T}
 	${INSTALL_PROGRAM} ${WRKSRC}/unix/${p} ${PREFIX}/bin
 .endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/documentation/* ${DOCSDIR}
 .endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-all mailing list