svn commit: r309746 - head/astro/pp3

Baptiste Daroussin bapt at FreeBSD.org
Mon Dec 31 14:14:55 UTC 2012


Author: bapt
Date: Mon Dec 31 14:14:55 2012
New Revision: 309746
URL: http://svnweb.freebsd.org/changeset/ports/309746

Log:
  Use PORT_OPTIONS for both EXAMPLES and DOCS
  Trim headers

Modified:
  head/astro/pp3/Makefile

Modified: head/astro/pp3/Makefile
==============================================================================
--- head/astro/pp3/Makefile	Mon Dec 31 14:12:01 2012	(r309745)
+++ head/astro/pp3/Makefile	Mon Dec 31 14:14:55 2012	(r309746)
@@ -1,10 +1,5 @@
-# ex:ts=8
-# Ports collection makefile for:	pp3
-# Date created:			Dec 24, 2003
-# Whom:				ijliao
-#
+# Created by: ijliao
 # $FreeBSD$
-#
 
 PORTNAME=	pp3
 PORTVERSION=	1.3.3
@@ -19,6 +14,8 @@ RUN_DEPENDS=	latex:${PORTSDIR}/print/teT
 
 USE_BZIP2=	yes
 
+.include <bsd.port.options.mk>
+
 do-build:
 	cd ${WRKSRC} \
 		&& ${CXX} ${CXXFLAGS} -DPP3DATA=\"${DATADIR}\" pp3.cc -o pp3
@@ -27,12 +24,12 @@ do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/pp3 ${PREFIX}/bin
 	@${MKDIR} ${DATADIR}
 	${INSTALL_DATA} ${WRKSRC}/*.dat ${DATADIR}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/WHATSNEW ${DOCSDIR}
 .endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
 .endif


More information about the svn-ports-all mailing list