1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
This commit is contained in:
Vanilla I. Shu 2014-08-08 03:47:26 +00:00
parent 2a46f8afcc
commit c12b81001e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364344
2 changed files with 11 additions and 15 deletions

View File

@ -14,18 +14,16 @@ COMMENT= Very efficient SDP (semidefinite programming) solver
USES= fortran gmake
NO_STAGE= yes
.include <bsd.port.pre.mk>
SRCDATE= 20090729
MANUALFILE= sdpa7-manual.pdf
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}.${PORTVERSION}.src
OPTIONS_DEFINE= DOCS
.if exists(${LOCALBASE}/lib/libgoto2.so)
WITH_BLAS?= gotoblas
WITH_BLAS?= gotoblas
.elif exists(${LOCALBASE}/lib/libatlas.so)
WITH_BLAS?= atlas
WITH_BLAS?= atlas
.else
WITH_BLAS?= reference
.endif
@ -56,12 +54,10 @@ post-patch:
${WRKSRC}/Makefile.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sdpa ${PREFIX}/bin
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/param.sdpa ${DATADIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/${MANUALFILE} ${DOCSDIR}
.endif
${INSTALL_PROGRAM} ${WRKSRC}/sdpa ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/param.sdpa ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/${MANUALFILE} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
bin/sdpa
share/sdpa/param.sdpa
@dirrm share/sdpa
%%DATADIR%%/param.sdpa
@dirrm %%DATADIR%%
%%PORTDOCS%%%%DOCSDIR%%/%%MANUALFILE%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%