From e2a0aafa98221e414ae0999d97199d609a96a0b5 Mon Sep 17 00:00:00 2001 From: eadler Date: Wed, 5 Jun 2013 22:22:32 +0000 Subject: Convert to OptionsNG Reviewed by: kwm, jgh Approved by: bapt --- math/givaro/Makefile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'math/givaro/Makefile') diff --git a/math/givaro/Makefile b/math/givaro/Makefile index 5cd15234b673..629a041320b7 100644 --- a/math/givaro/Makefile +++ b/math/givaro/Makefile @@ -16,25 +16,21 @@ LICENSE_PERMS= auto-accept LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp -OPTIONS= DOCS "build HTML documents (requires doxygen)" off - GNU_CONFIGURE= yes CONFIGURE_ARGS = --with-gmp="${LOCALBASE}" USE_LDCONFIG= yes +OPTIONS_DEFINE= DOXYGEN + .include -.if ${PORT_OPTIONS:MDOCS) && !defined(NOPORTDOCS} +.if ${PORT_OPTIONS:MDOXYGEN} BUILD_DEPENDS += doxygen:${PORTSDIR}/devel/doxygen CONFIGURE_ARGS+= --enable-doc --with-docdir="${DOCSDIR}" -.elifndef(NOPORTDOCS) -NOPORTDOCS= yes .endif -.if ${LOCALBASE} == "/usr/local" CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -.endif post-patch: @${REINPLACE_CMD} -e '/DEFAULT_CFLAGS=/{s/-O2 //;s/-pipe//;}' \ @@ -42,11 +38,11 @@ post-patch: -e '/^WARN_CFLAGS="-Wall"/d' \ -e '/if test "x$$WARN" = "xyes"/s/$$/ WARN_CFLAGS="-Wall" ;/' \ ${WRKSRC}/configure -.if ${PORT_OPTIONS:MDOCS) && !defined(NOPORTDOCS} +.if ${PORT_OPTIONS:MDOXYGEN) @${REINPLACE_CMD} -e 's/sed -i/& ""/' ${WRKSRC}/docs/Makefile.in .endif -.if ${PORT_OPTIONS:MDOCS) && !defined(NOPORTDOCS} +.if ${PORT_OPTIONS:MDOXYGEN} post-install: @${TOUCH} ${DOCSDIR}/givaro-dev-html/.keep-me -- cgit