Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Dec 2012 04:14:22 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r309142 - head/archivers/xmill
Message-ID:  <201212180414.qBI4EMKA051180@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@regency.nsu.ru>
-#
+# Created by: Alexey Dokuchaev <danfe@regency.nsu.ru>
 # $FreeBSD$
-#
 
 PORTNAME=	xmill
 DISTVERSION=	0.8
@@ -11,7 +7,7 @@ CATEGORIES=	archivers
 MASTER_SITES=	SF
 
 MAINTAINER=	sylvio@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>



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