- 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 # Created by: Alexey Dokuchaev <danfe@regency.nsu.ru>
# Date created: 09 May 2003
# Whom: Alexey Dokuchaev <danfe@regency.nsu.ru>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= xmill PORTNAME= xmill
DISTVERSION= 0.8 DISTVERSION= 0.8
@ -11,7 +7,7 @@ CATEGORIES= archivers
MASTER_SITES= SF MASTER_SITES= SF
MAINTAINER= sylvio@FreeBSD.org MAINTAINER= sylvio@FreeBSD.org
COMMENT= An efficient compressor for XML COMMENT= Efficient compressor for XML
WRKSRC= ${WRKDIR}/${PORTNAME} WRKSRC= ${WRKDIR}/${PORTNAME}
MAKEFILE= makefile MAKEFILE= makefile
@ -25,7 +21,9 @@ PLIST_FILES= bin/xcmill bin/xdemill bin/xmilltest bin/xmillexample \
PORTDOCS= * PORTDOCS= *
PORTEXAMPLES= * PORTEXAMPLES= *
.include <bsd.port.pre.mk> OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-patch: post-patch:
# Allow to build with modern GCC # Allow to build with modern GCC
@ -36,13 +34,13 @@ do-install:
.for p in ${PLIST_FILES:T} .for p in ${PLIST_FILES:T}
${INSTALL_PROGRAM} ${WRKSRC}/unix/${p} ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/unix/${p} ${PREFIX}/bin
.endfor .endfor
.if !defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR} @${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/documentation/* ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/documentation/* ${DOCSDIR}
.endif .endif
.if !defined(NOPORTEXAMPLES) .if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR} @${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.mk>