aboutsummaryrefslogtreecommitdiff
path: root/math/givaro
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2013-06-05 22:22:32 +0000
committerEitan Adler <eadler@FreeBSD.org>2013-06-05 22:22:32 +0000
commitfb0a0b16e9bfa4b39fd5f599942566865996629e (patch)
tree79d64e8fc4a833f19a5d5c0cfc4fded7524f2b5e /math/givaro
parente9dd2fa24f1c624343da02c7e15e2318a8b74de9 (diff)
downloadports-fb0a0b16e9bfa4b39fd5f599942566865996629e.tar.gz
ports-fb0a0b16e9bfa4b39fd5f599942566865996629e.zip
Convert to OptionsNG
Reviewed by: kwm, jgh Approved by: bapt
Notes
Notes: svn path=/head/; revision=320033
Diffstat (limited to 'math/givaro')
-rw-r--r--math/givaro/Makefile14
-rw-r--r--math/givaro/pkg-descr2
2 files changed, 6 insertions, 10 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
diff --git a/math/givaro/pkg-descr b/math/givaro/pkg-descr
index 1cca9cd0c3fc..496c066c964f 100644
--- a/math/givaro/pkg-descr
+++ b/math/givaro/pkg-descr
@@ -7,4 +7,4 @@ classes for the manipulation of basic algebraic objects, such as vectors,
matrices (dense, sparse, and structured), univariate polynomials, and recursive
multivariate polynomials.
-WWW: http://ljk.imag.fr/CASYS/LOGICIELS/givaro/
+WWW: http://ljk.imag.fr/CASYS/LOGICIELS/givaro/