Use PORT_OPTIONS:MDOCS instead of NOPORTDOCS

Remove useless use of pre.mk/post.mk
Trim headers
This commit is contained in:
Baptiste Daroussin 2012-12-31 14:10:52 +00:00
parent b33a2cddff
commit ef3fc44bb3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=309744

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: tclmkziplib
# Date created: 4 Jan 2007
# Whom: Martin Matuska <mm@FreeBSD.org>
#
# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= tclmkziplib
PORTVERSION= 1.0
@ -22,7 +18,7 @@ USE_TCL= 84+
WRKSRC= ${WRKDIR}/mkZiplib${PORTVERSION}
USE_ZIP= yes
.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>
TCLCONFIG?= ${LOCALBASE}/lib/tcl${TCL_VER}/tclConfig.sh
@ -42,9 +38,9 @@ do-install:
@${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl ${PREFIX}/lib/mkZiplib
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@ ${MKDIR} ${DOCSDIR}
@ ${INSTALL_DATA} ${WRKSRC}/mkZiplib${PORTVERSION:S/.//}.htm ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>