diff options
author | eadler <eadler@FreeBSD.org> | 2013-06-06 06:22:32 +0800 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-06-06 06:22:32 +0800 |
commit | e2a0aafa98221e414ae0999d97199d609a96a0b5 (patch) | |
tree | 79d64e8fc4a833f19a5d5c0cfc4fded7524f2b5e /math/givaro/Makefile | |
parent | f354246b4a80e28927cbb2ace713b57821f38c17 (diff) | |
download | freebsd-ports-gnome-e2a0aafa98221e414ae0999d97199d609a96a0b5.tar.gz freebsd-ports-gnome-e2a0aafa98221e414ae0999d97199d609a96a0b5.tar.zst freebsd-ports-gnome-e2a0aafa98221e414ae0999d97199d609a96a0b5.zip |
Convert to OptionsNG
Reviewed by: kwm, jgh
Approved by: bapt
Diffstat (limited to 'math/givaro/Makefile')
-rw-r--r-- | math/givaro/Makefile | 14 |
1 files changed, 5 insertions, 9 deletions
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 <bsd.port.pre.mk> -.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 |