Files
ports/math/givaro/Makefile
T
Po-Chuan Hsieh f7d5a6658e math/givaro: Add DOXYGEN option
- Sort PLIST
- Bump PORTREVISION for package change

Documentation built with Doxygen should be added to DOXYGEN option
rather than DOCS option.

PR:	295149
2026-05-11 20:13:25 +02:00

50 lines
1.4 KiB
Makefile

PORTNAME= givaro
PORTVERSION= 4.2.1
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= math
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= ed91ee0dc2d41f3ceb72abc375ad5c0fec62ed56.patch:-p1 # Add libc++ support for macOS and Linux
MAINTAINER= pi@FreeBSD.org
COMMENT= C++ library for computer algebra
WWW= https://casys.gricad-pages.univ-grenoble-alpes.fr/givaro
LICENSE= CeCILL-Bv1-en.txt
LICENSE_NAME= Ce[a] C[nrs] I[nria] L[ogiciel] L[ibre] B license, version 1
LICENSE_FILE= ${WRKSRC}/Licence_CeCILL-B_V1-en.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LIB_DEPENDS= libgmp.so:math/gmp
USES= autoreconf compiler:c++11-lang gmake libtool localbase \
pathfix pkgconfig
USE_CXXSTD= c++11
USE_GITHUB= yes
GH_ACCOUNT= linbox-team
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-gmp="${LOCALBASE}"
INSTALL_TARGET= install-strip
TEST_TARGET= check
OPTIONS_DEFINE= DOCS DOXYGEN
DOXYGEN_IMPLIES=DOCS
OPTIONS_SUB= yes
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \
dot:graphics/graphviz
DOXYGEN_USE= TEX=base:build,dvipsk:build,latex:build,pdftex:build
DOXYGEN_CONFIGURE_ON= --enable-doc \
--with-docdir=${DOCSDIR}
post-install-DOXYGEN-on:
${RMDIR} ${STAGEDIR}${DOCSDIR}/givaro-dev-html
${FIND} ${WRKSRC}/docs/givaro-html -not -type d \
| ${SED} -ne 's,^${WRKSRC}/docs/givaro-html,${DOCSDIR}/givaro-html,p' >> ${TMPPLIST}
.include <bsd.port.mk>