6 MASTER_SITES= https://forge.imag.fr/frs/download.php/592/ LOCAL/bf
8 MAINTAINER= bf@FreeBSD.org
9 COMMENT= C++ library for computer algebra
11 LICENSE= CeCILL-Bv1-en.txt
12 LICENSE_NAME= Ce[a] C[nrs] I[nria] L[ogiciel] L[ibre] B license, version 1
13 LICENSE_FILE= ${WRKSRC}/Licence_CeCILL-B_V1-en.txt
14 LICENSE_PERMS= auto-accept
16 LIB_DEPENDS= libgmp.so.10:${PORTSDIR}/math/gmp
20 CONFIGURE_ARGS = --with-gmp="${LOCALBASE}"
22 INSTALL_TARGET= install-strip
24 OPTIONS_DEFINE= DOXYGEN
26 .include <bsd.port.options.mk>
28 .if ${PORT_OPTIONS:MDOXYGEN}
29 BUILD_DEPENDS += doxygen:${PORTSDIR}/devel/doxygen \
30 dot:${PORTSDIR}/graphics/graphviz
31 CONFIGURE_ARGS+= --enable-doc --with-docdir=${DOCSDIR}
32 PLIST_SUB+= PORTDOCS=""
34 PLIST_SUB+= PORTDOCS="@comment "
37 CPPFLAGS+= -I${LOCALBASE}/include
38 LDFLAGS+= -L${LOCALBASE}/lib
41 @${REINPLACE_CMD} -e '/DEFAULT_CFLAGS=/{s/-O2 //;s/-pipe//;}' \
42 -e '/DEBUG_CFLAGS=.*-DNDEBUG/s/$${DEBUG_CFLAGS} //' \
43 -e '/^WARN_CFLAGS="-Wall"/d' \
44 -e '/if test "x$$WARN" = "xyes"/s/$$/ WARN_CFLAGS="-Wall" ;/' \
46 .if ${PORT_OPTIONS:MDOXYGEN}
47 @${REINPLACE_CMD} -e 's/sed -i/& ""/' ${WRKSRC}/docs/Makefile.in
51 .if ${PORT_OPTIONS:MDOXYGEN}
52 ${RMDIR} ${STAGEDIR}${DOCSDIR}/givaro-dev-html
53 ${FIND} ${WRKSRC}/docs/givaro-html -not -type d \
54 | ${SED} -ne 's,^${WRKSRC}/docs/givaro-html,${DOCSDIR}/givaro-html,p' >> ${TMPPLIST}
57 check regression-test test: build
58 @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} \
61 .include <bsd.port.mk>