freebsd-ports/math/linbox/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

77 lines
2.2 KiB
Makefile

PORTNAME= linbox
PORTVERSION= 1.6.3
DISTVERSIONPREFIX= v
PORTREVISION= 10
CATEGORIES= math
PATCH_SITES= https://github.com/linbox-team/linbox/commit/
PATCHFILES= b79fb13522fceef79e291922ca9c7af0a09b65ae.diff:-p1
MAINTAINER= thierry@FreeBSD.org
COMMENT= C++ library for exact, high-performance linear algebra
WWW= https://linalg.org/
LICENSE= GPLv2 LGPL21
LICENSE_COMB= dual
BUILD_DEPENDS= fflas-ffpack-config:math/fflas-ffpack
LIB_DEPENDS= libgmp.so:math/gmp \
libgivaro.so:math/givaro
RUN_DEPENDS= bash:shells/bash
USE_GITHUB= yes
GH_ACCOUNT= linbox-team
USES= autoreconf blaslapack:openblas compiler:c++11-lang gmake libtool localbase pkgconfig shebangfix
SHEBANG_FILES= benchmarks/perfpublisher.sh examples/test.sh \
linbox-auto-install.sh linbox-config.in tests/jenkins-maker.sh \
tests/perfpublisher.sh tests/test_leak.sh
OPTIONS_DEFINE= DOXYGEN
OPTIONS_RADIO= SIZE
OPTIONS_RADIO_SIZE= FULL MIN
OPTIONS_DEFAULT= FULL
OPTIONS_SUB= yes
MIN_DESC= Lightweight package, with less dependencies
MIN_CONFIGURE_ON= --without-saclib
FULL_DESC= Complete package with all its dependencies
FULL_BUILD_DEPENDS= gnuplot:math/gnuplot
FULL_LIB_DEPENDS= libflint.so:math/flint2 \
libfplll.so:math/fplll \
libiml.so:math/iml \
libm4ri.so:math/m4ri \
libm4rie.so:math/m4rie \
libmpfr.so:math/mpfr \
libntl.so:math/ntl \
libtinyxml2.so:textproc/tinyxml2
FULL_RUN_DEPENDS= gnuplot:math/gnuplot
FULL_USES= ghostscript
FULL_CONFIGURE_WITH= flint fplll ghostscript gnuplot iml m4ri m4rie mpfr ntl
DOXYGEN_VARS= BINARY_ALIAS=sed=${LOCALBASE}/bin/gsed
DOXYGEN_CONFIGURE_ENABLE=doc
DOXYGEN_CONFIGURE_WITH= docdir=${DOCSDIR}
DOXYGEN_BUILD_DEPENDS= gsed:textproc/gsed \
dot:graphics/graphviz \
doxygen:devel/doxygen
GNU_CONFIGURE= yes
# ATM expat and drivers are broken
CONFIGURE_ARGS= --without-expat
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check
.if defined(PACKAGE_BUILDING)
CONFIGURE_ARGS+=--disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 \
--disable-sse41 --disable-sse42 --disable-fma --disable-fma4 \
--disable-avx --disable-avx2
.endif
pre-configure:
${REINPLACE_CMD} -e 's|@LINBOXSAGE_LIBS@||' ${WRKSRC}/linbox.pc.in
.include <bsd.port.mk>