1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

Use staging; use gcc for spblas

This commit is contained in:
Brendan Fabeny 2014-07-07 18:54:17 +00:00
parent e7b69ac104
commit 975e6d3af4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361117
3 changed files with 14 additions and 15 deletions

View File

@ -33,7 +33,6 @@ WRKSRC_PROFILE = ${WRKSRC}_PROFILE
WRKSRC_SHARED= ${WRKSRC}_SHARED
WRKSRC_STATIC= ${WRKSRC}
NO_STAGE= yes
.include <bsd.port.options.mk>
.if make(makesum) || ${PORT_OPTIONS:MDOCS}
@ -119,17 +118,17 @@ test-${o:tl}: build-${o:tl}
.endif
do-install:
@${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/include
@${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include
.if ${PORT_OPTIONS:MSTATIC}
@${INSTALL_DATA} ${WRKSRC}/lib/libcblas.a ${PREFIX}/lib
@${INSTALL_LIB} ${WRKSRC}/lib/libcblas.a ${STAGEDIR}${PREFIX}/lib
.endif
.if ${PORT_OPTIONS:MSHARED}
@${INSTALL_DATA} ${WRKSRC_SHARED}/lib/libcblas.a ${PREFIX}/lib/libcblas_pic.a
@${INSTALL_DATA} ${WRKSRC_SHARED}/lib/libcblas.so.${SVERSION} ${PREFIX}/lib
@${LN} -sf libcblas.so.${SVERSION} ${PREFIX}/lib/libcblas.so
@${INSTALL_LIB} ${WRKSRC_SHARED}/lib/libcblas.a ${STAGEDIR}${PREFIX}/lib/libcblas_pic.a
@${INSTALL_LIB} ${WRKSRC_SHARED}/lib/libcblas.so.${SVERSION} ${STAGEDIR}${PREFIX}/lib
@${LN} -sf libcblas.so.${SVERSION} ${STAGEDIR}${PREFIX}/lib/libcblas.so
.endif
.if ${PORT_OPTIONS:MPROFILE}
@${INSTALL_DATA} ${WRKSRC_PROFILE}/lib/libcblas.a ${PREFIX}/lib/libcblas_p.a
@${INSTALL_LIB} ${WRKSRC_PROFILE}/lib/libcblas.a ${STAGEDIR}${PREFIX}/lib/libcblas_p.a
.endif
.include <bsd.port.mk>

View File

@ -2,4 +2,4 @@ This is a reference implementation of the C interface to the legacy
Fortran Basic Linear Algebra Subprograms (BLAS), as described in
Annex B of the BLAS Technical Forum (BLAST) Standard.
WWW: http://www.netlib.org/blas/blast-forum/
WWW: http://www.netlib.org/blas/blast-forum/

View File

@ -11,6 +11,7 @@ MAINTAINER= bf@FreeBSD.org
COMMENT= NIST Sparse Basic Linear Algebra Subprograms (BLAS)
USES= dos2unix zip
USE_GCC= yes
USE_LDCONFIG= yes
HEADERS= blas_enum.h blas_sparse.h blas_sparse_proto.h
@ -28,7 +29,6 @@ PLIST_FILES= ${HEADERS:S|^|${HDIR}/|} lib/libspblas.a lib/libspblas.so \
SHLIB_MAJOR= 1
SRCS= nist_spblas.cc
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPROFILE}
@ -62,15 +62,15 @@ post-extract:
${WRKSRC}/Makefile
post-install:
@${MKDIR} ${PREFIX}/${HDIR}
@cd ${WRKSRC}; ${INSTALL_DATA} ${HEADERS} ${PREFIX}/${HDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/${HDIR}
@cd ${WRKSRC}; ${INSTALL_DATA} ${HEADERS} ${STAGEDIR}${PREFIX}/${HDIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${_DISTDIR}/${PORTDOCS} ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@cd ${WRKSRC}; ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@cd ${WRKSRC}; ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>