freebsd-ports/math/amath/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

52 lines
1.5 KiB
Makefile

PORTNAME= amath
PORTVERSION= 1.8.5
CATEGORIES= math
MASTER_SITES= http://dist1.innolan.net/ \
http://dist2.innolan.net/ \
https://amath.innolan.net/
MAINTAINER= cs@innolan.net
COMMENT= Simple command line calculator
WWW= https://amath.innolan.net/
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_riscv64= fails to compile: ./prim.h:117:2: Must define endianness
USES= gmake
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} --pkgconfig=libdata/pkgconfig \
--mandir=man LDFLAGS="-L${LOCALBASE}/lib"
MAKE_ARGS= CC=${CC} CXX=${CXX}
OPTIONS_DEFINE= TESTS
OPTIONS_DEFAULT=APPLIBM
OPTIONS_RADIO= LIBM
OPTIONS_RADIO_LIBM= APPLIBM OPENLIBM SYSLIBM
OPTIONS_SUB= yes
APPLIBM_DESC= Build and install application libraries
LIBM_DESC= Math libraries
OPENLIBM_DESC= Build with OpenLibm
SYSLIBM_DESC= System (-lm)
TESTS_DESC= Build with regression tests
OPENLIBM_CONFIGURE_WITH= openlibm
OPENLIBM_LIB_DEPENDS= libopenlibm.so:math/openlibm
SYSLIBM_CONFIGURE_WITH= libm
TESTS_CONFIGURE_ENABLE= test
TEST_TARGET= test
post-install-APPLIBM-on:
${LN} -sf libamathapp.so ${STAGEDIR}${PREFIX}/lib/amath/libamathapp.so.1
${LN} -sf libamathcplex.so ${STAGEDIR}${PREFIX}/lib/amath/libamathcplex.so.1
${LN} -sf libamathc.so ${STAGEDIR}${PREFIX}/lib/amath/libamathc.so.1
${LN} -sf libamath.so ${STAGEDIR}${PREFIX}/lib/amath/libamath.so.1
do-install-APPLIBM-off:
${INSTALL_PROGRAM} ${WRKSRC}/amath ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/amath.1 ${STAGEDIR}${PREFIX}/man/man1/
.include <bsd.port.mk>