1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/math/sdpa/Makefile
Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00

66 lines
1.8 KiB
Makefile

# Created by: NAKATA, Maho <maho@FreeBSD.org>
# $FreeBSD$
PORTNAME= sdpa
PORTVERSION= 7.3.8
PORTREVISION= 6
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= ports@FreeBSD.org
COMMENT= Very efficient SDP (semidefinite programming) solver
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
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.mk>