From ea9be90bac2538c364668bd8e7aac10fc05648ac Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 31 Dec 2012 14:14:55 +0000 Subject: [PATCH] Use PORT_OPTIONS for both EXAMPLES and DOCS Trim headers --- astro/pp3/Makefile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/astro/pp3/Makefile b/astro/pp3/Makefile index f9abaec89d86..cda097192437 100644 --- a/astro/pp3/Makefile +++ b/astro/pp3/Makefile @@ -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/teTeX-base USE_BZIP2= yes +.include + 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