svn commit: r320033 - head/math/givaro
Eitan Adler
eadler at FreeBSD.org
Wed Jun 5 22:22:32 UTC 2013
Author: eadler
Date: Wed Jun 5 22:22:32 2013
New Revision: 320033
URL: http://svnweb.freebsd.org/changeset/ports/320033
Log:
Convert to OptionsNG
Reviewed by: kwm, jgh
Approved by: bapt
Modified:
head/math/givaro/Makefile
head/math/givaro/pkg-descr
Modified: head/math/givaro/Makefile
==============================================================================
--- head/math/givaro/Makefile Wed Jun 5 22:02:13 2013 (r320032)
+++ head/math/givaro/Makefile Wed Jun 5 22:22:32 2013 (r320033)
@@ -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
Modified: head/math/givaro/pkg-descr
==============================================================================
--- head/math/givaro/pkg-descr Wed Jun 5 22:02:13 2013 (r320032)
+++ head/math/givaro/pkg-descr Wed Jun 5 22:22:32 2013 (r320033)
@@ -7,4 +7,4 @@ classes for the manipulation of basic al
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/
More information about the svn-ports-head
mailing list