Use PORT_OPTIONS:MDOCS instead of NOPORTDOCS

Trim headers
This commit is contained in:
Baptiste Daroussin 2012-12-31 14:06:45 +00:00
parent debf89329c
commit 7afade04e5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=309741

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: aolserver-nszlib
# Date created: 12 Oct 2006
# Whom: Martin Matuska <mm@FreeBSD.org>
#
# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= nszlib
PORTVERSION= 1.1
@ -35,17 +31,16 @@ PLIST_FILES= ${AOLSERVERBASE}/bin/nszlib.so \
${AOLSERVERBASE}/lib/libnszlib.a \
${AOLSERVERBASE}/lib/libnszlib.so
.if !defined(NOPORTDOCS)
PORTDOCS= ChangeLog README example.tcl
.endif
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's/^MODLIBS =/MODLIBS +=/g' \
-e '/^OBJS =.*/{n;s/.*/MODOBJS = $$(OBJS)/g;G;}' \
${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@ ${MKDIR} ${DOCSDIR}
.for FILE in ${PORTDOCS}
@ ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}