1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

Update to 7.3.8.

PR:		205895
Submitted by:	tkato432 yahoo com
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2016-03-08 16:03:59 +00:00
parent 0583db668d
commit aa0ac7a449
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=410626
3 changed files with 41 additions and 39 deletions

View File

@ -2,62 +2,63 @@
# $FreeBSD$
PORTNAME= sdpa
PORTVERSION= 7.3.1
PORTREVISION= 4
PORTVERSION= 7.3.8
CATEGORIES= math
MASTER_SITES= SF/${PORTNAME}/archive/${PORTNAME}/${PORTVERSION}
DISTNAME= ${PORTNAME}.${PORTVERSION}.src-${SRCDATE}
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
SRCDATE= 20090729
MANUALFILE= sdpa7-manual.pdf
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}.${PORTVERSION}.src
OPTIONS_DEFINE= DOCS
CONFIGURE_ARGS= --with-blas="-L${LOCALBASE}/lib ${BLASLIB}" \
--with-lapack="-L${LOCALBASE}/lib ${LAPACKLIB}"
.if exists(${LOCALBASE}/lib/libgoto2.so)
WITH_BLAS?= gotoblas
.elif exists(${LOCALBASE}/lib/libatlas.so)
WITH_BLAS?= atlas
.else
WITH_BLAS?= reference
.endif
PORTDOCS= ${MANUALFILE}
PLIST_FILES= bin/sdpa %%DATADIR%%/param.sdpa
. if ${WITH_BLAS} == reference
LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas
LIB_DEPENDS+= liblapack.so:${PORTSDIR}/math/lapack
BLAS= -lblas
LAPACK= -llapack
.elif ${WITH_BLAS} == gotoblas
LIB_DEPENDS+= libgoto2.so:${PORTSDIR}/math/gotoblas
LIB_DEPENDS+= liblapack.so:${PORTSDIR}/math/lapack
BLAS= -lgoto2p
LAPACK=
.elif ${WITH_BLAS} == atlas
LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas
BLAS= -lptf77blas
LAPACK= -lalapack -lptcblas
.endif
OPTIONS_DEFINE= DOCS
OPTIONS_SINGLE= BLAS
OPTIONS_SINGLE_BLAS= ATLAS GOTOBLAS REFERENCE
OPTIONS_DEFAULT= REFERENCE
CONFIGURE_ARGS+=--with-blas="-L${LOCALBASE}/lib ${BLAS}" --with-lapack="-L${LOCALBASE}/lib ${LAPACK}"
ATLAS_USES= blaslapack:atlas
DOCS_DISTFILES= ${MANUALFILE}
GOTOBLAS_DESC= GotoBLAS blas implementation
GOTOBLAS_USES= blaslapack:gotoblas
REFERENCE_DESC= Reference blas implementation
REFERENCE_USES= blaslapack
PLIST_SUB+= MANUALFILE=${MANUALFILE}
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} ${WRKSRC}/doc/${MANUALFILE} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${MANUALFILE} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,2 +1,6 @@
SHA256 (sdpa/sdpa.7.3.1.src-20090729.tar.gz) = 7a8795eebbdd2f16278426cdcd82698590208f0a2f1f8b960c28d09806260191
SIZE (sdpa/sdpa.7.3.1.src-20090729.tar.gz) = 2512666
SHA256 (sdpa/sdpa_7.3.8.tar.gz) = c7541333da2f0bb2d18e90dbf758ac7cc099f3f7da3f256b284b0725f96d4117
SIZE (sdpa/sdpa_7.3.8.tar.gz) = 229465
SHA256 (sdpa/mumps_4.10.0.dfsg.orig.tar.gz) = c76339bba516b96a3021af93d9a31b0fbf5a68cfcd02c9578d665ba8018e4b11
SIZE (sdpa/mumps_4.10.0.dfsg.orig.tar.gz) = 1785786
SHA256 (sdpa/sdpa.7.1.1.manual.20080618.pdf) = 906cf1f7a9bdb4c0eccb402baf7799be14ece6553e1dbd3cd81354c6e1362e35
SIZE (sdpa/sdpa.7.1.1.manual.20080618.pdf) = 324130

View File

@ -1,3 +0,0 @@
bin/sdpa
%%DATADIR%%/param.sdpa
%%PORTDOCS%%%%DOCSDIR%%/%%MANUALFILE%%