svn commit: r325635 - head/archivers/lzo2

Matthias Andree mandree at FreeBSD.org
Thu Aug 29 21:58:50 UTC 2013


Author: mandree
Date: Thu Aug 29 21:58:49 2013
New Revision: 325635
URL: http://svnweb.freebsd.org/changeset/ports/325635

Log:
  Adjust NOPORTDOCS to OptionsNG.
  Trim header.
  
  PR:		ports/181644
  Submitted by:	Takefu <takefu at airport.fm>

Modified:
  head/archivers/lzo2/Makefile   (contents, props changed)

Modified: head/archivers/lzo2/Makefile
==============================================================================
--- head/archivers/lzo2/Makefile	Thu Aug 29 21:24:04 2013	(r325634)
+++ head/archivers/lzo2/Makefile	Thu Aug 29 21:58:49 2013	(r325635)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	lzo
-# Date created:				21 Feb 1998
-# Whom:					giffunip at asme.org
-#
+# Created by: giffunip at asme.org
 # $FreeBSD$
-#
 
 PORTNAME=	lzo2
 PORTVERSION=	2.06
@@ -22,7 +18,9 @@ GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--enable-shared --docdir=${DOCSDIR}
 USE_LDCONFIG=	yes
 
-.if defined(NOPORTDOCS)
+.include <bsd.port.options.mk>
+
+.if !${PORT_OPTIONS:MDOCS}
 INSTALL_TARGET=	install-exec install-pkgincludeHEADERS
 .endif
 
@@ -34,7 +32,7 @@ post-build:
 .endif
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
 	cd ${WRKSRC} && ${REINPLACE_CMD} -e 's,doc/,,' NEWS README
 .for i in AUTHORS BUGS COPYING NEWS README THANKS
@@ -42,7 +40,7 @@ post-install:
 .endfor
 	${INSTALL_DATA}	${WRKSRC}/doc/* ${DOCSDIR}/
 .endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
 	${MKDIR} ${EXAMPLESDIR}
 	${INSTALL_DATA}	${WRKSRC}/examples/[a-z]*.[ch] ${EXAMPLESDIR}/
 .endif


More information about the svn-ports-head mailing list