- Use two-line Makefile header

- Utilize PORT_OPTIONS for docs and examples
- Drop article from COMMENT

Approved by:	maintainer (implicit)
This commit is contained in:
Alexey Dokuchaev 2012-12-18 04:14:22 +00:00
parent b6995ca223
commit 354ffdd731
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=309142

View file

@ -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/xmilltest bin/xmillexample \
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>