freebsd-ports/math/sdpa/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
2.0 KiB
Makefile

PORTNAME= sdpa
PORTVERSION= 7.3.8
PORTREVISION= 9
CATEGORIES= math
MASTER_SITES= SF/${PORTNAME}/${PORTNAME} \
DEBIAN/pool/main/m/mumps:mumps
DISTFILES= ${PORTNAME}_${PORTVERSION}${EXTRACT_SUFX} \
mumps_4.10.0.dfsg.orig.tar.gz:mumps
DIST_SUBDIR= sdpa
EXTRACT_ONLY= ${PORTNAME}_${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Very efficient SDP (semidefinite programming) solver
WWW= http://sdpa.sourceforge.net/
LICENSE= GPLv2 # (or later)
LICENSE_FILE= ${WRKSRC}/COPYING
USES= fortran gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-blas="-L${LOCALBASE}/lib ${BLASLIB}" \
--with-lapack="-L${LOCALBASE}/lib ${LAPACKLIB}"
PORTDOCS= ${MANUALFILE}
PLIST_FILES= bin/sdpa %%DATADIR%%/param.sdpa
OPTIONS_DEFINE= DOCS
OPTIONS_SINGLE= BLAS
OPTIONS_SINGLE_BLAS= ATLAS GOTOBLAS REFERENCE
OPTIONS_DEFAULT= REFERENCE
ATLAS_USES= blaslapack:atlas
DOCS_DISTFILES= ${MANUALFILE}
GOTOBLAS_DESC= GotoBLAS blas implementation
GOTOBLAS_USES= blaslapack:gotoblas
REFERENCE_DESC= Reference blas implementation
REFERENCE_USES= blaslapack
MANUALFILE= sdpa.7.1.1.manual.20080618.pdf
.include <bsd.port.pre.mk>
.if ${GCC_DEFAULT} >= 10
# workaround for Type mismatch in argument 's' at (1); passed INTEGER(4) to LOGICAL(4)
CONFIGURE_ARGS+= FCFLAGS=-fallow-argument-mismatch
.endif
post-extract:
@(cd ${DISTDIR}/${DIST_SUBDIR} && ${PAX} -rw \
mumps_4.10.0.dfsg.orig.tar.gz ${WRKSRC}/mumps)
post-patch:
# Register missing target dependency to unbreak parallel builds
@${REINPLACE_CMD} -e 's,^sdpa_DEPENDENCIES =,& $$(lib_LIBRARIES),' \
${WRKSRC}/Makefile.in
.for i in sdpa.1 sdpa_exe.cpp
@${REINPLACE_CMD} -e \
's|/usr/share/sdpa/|${DATADIR}/|' ${WRKSRC}/${i}
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sdpa ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/param.sdpa ${STAGEDIR}${DATADIR}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${MANUALFILE} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>