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

71 lines
1.4 KiB
Makefile

PORTNAME= blis
PORTVERSION= 0.8.1
PORTREVISION= 1
CATEGORIES= math
MAINTAINER= jmd@FreeBSD.org
COMMENT= Software framework for high-performance BLAS-like libraries
WWW= https://github.com/flame/blis
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= bash:shells/bash
USES= compiler gmake perl5 python shebangfix
USE_GITHUB= yes
GH_ACCOUNT= flame
USE_LDCONFIG= yes
USE_PERL5= build
SHEBANG_FILES= build/flatten-headers.py
OPTIONS_DEFINE= PARA CBLAS
PARA_DESC= use pthread parallelization
CBLAS_DESC= build the CBLAS compatibility layer
OPTIONS_DEFAULT= PARA CBLAS
OPTIONS_SUB= yes
CFLAGS_riscv64= -mno-relax
HAS_CONFIGURE= yes
TEST_TARGET= test
.include <bsd.port.options.mk>
# enable BLAS and static/shared libs by default
CONFIGURE_ARGS+= --enable-blas \
--prefix=${PREFIX} \
--enable-shared \
--enable-static
#--prefix=PREFIX
.if ${PORT_OPTIONS:MPARA}
CONFIGURE_ARGS+= -t pthreads
.endif
.if ${PORT_OPTIONS:MCBLAS}
CONFIGURE_ARGS+= --enable-cblas
.endif
.if ${ARCH} == amd64
CONFIGURE_ARGS+= x86_64
PLIST_SUB+= ARCH="x86_64"
.elif ${ARCH} == powerpc64
CONFIGURE_ARGS+= power9
PLIST_SUB+= ARCH="power9"
USE_GCC= yes
.else
CONFIGURE_ARGS+= generic
PLIST_SUB+= ARCH="generic"
.endif
.include <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE} == gcc
USE_GCC= yes
.endif
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libblis.so.3.0.0
.include <bsd.port.post.mk>