From f0a27c9d1e21708adb37dacd3ab2eedc42f8de41 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Wed, 5 Jun 2013 14:11:19 +0000 Subject: Convert to new options framework --- math/givaro/Makefile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'math/givaro') diff --git a/math/givaro/Makefile b/math/givaro/Makefile index 678396b47eaa..5cd15234b673 100644 --- a/math/givaro/Makefile +++ b/math/givaro/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: givaro -# Date created: 5 Oct 2011 -# Whom: b.f. -# +# Created by: b.f. # $FreeBSD$ -# PORTNAME= givaro PORTVERSION= 3.5.0 @@ -28,7 +24,7 @@ USE_LDCONFIG= yes .include -.if defined(WITH_DOCS) && !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS) && !defined(NOPORTDOCS} BUILD_DEPENDS += doxygen:${PORTSDIR}/devel/doxygen CONFIGURE_ARGS+= --enable-doc --with-docdir="${DOCSDIR}" .elifndef(NOPORTDOCS) @@ -46,11 +42,11 @@ post-patch: -e '/^WARN_CFLAGS="-Wall"/d' \ -e '/if test "x$$WARN" = "xyes"/s/$$/ WARN_CFLAGS="-Wall" ;/' \ ${WRKSRC}/configure -.if defined(WITH_DOCS) && !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS) && !defined(NOPORTDOCS} @${REINPLACE_CMD} -e 's/sed -i/& ""/' ${WRKSRC}/docs/Makefile.in .endif -.if defined(WITH_DOCS) && !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS) && !defined(NOPORTDOCS} post-install: @${TOUCH} ${DOCSDIR}/givaro-dev-html/.keep-me -- cgit v1.2.3