1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Use staging; strip; provide documentation distinfo; correct options [1]

PR:		188790 [1]
Submitted by:	ohauer [1]
This commit is contained in:
Brendan Fabeny 2014-07-02 05:39:55 +00:00
parent 6005ae27d4
commit 4630b16f45
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360134
3 changed files with 21 additions and 24 deletions

View File

@ -7,11 +7,8 @@ PORTREVISION= 2
CATEGORIES= math CATEGORIES= math
MASTER_SITES= http://www.cs.utexas.edu/users/%SUBDIR%/:1,2 LOCAL/bf:3 MASTER_SITES= http://www.cs.utexas.edu/users/%SUBDIR%/:1,2 LOCAL/bf:3
MASTER_SITE_SUBDIR= flame/snapshots/:1 field/docs/:2 MASTER_SITE_SUBDIR= flame/snapshots/:1 field/docs/:2
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:1,3 DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:3 libflame.pdf:3
.if !defined(NOPORTDOCS) || make(makesum)
DISTFILES+= libflame.pdf:2,3
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
.endif
MAINTAINER= bf@FreeBSD.org MAINTAINER= bf@FreeBSD.org
COMMENT= FLAME dense linear algebra library COMMENT= FLAME dense linear algebra library
@ -26,8 +23,6 @@ USES= gmake
CONFIGURE_ARGS = --enable-dynamic-build --enable-static-build CONFIGURE_ARGS = --enable-dynamic-build --enable-static-build
BROKEN= no distinfo provided for some of the distfiles
OPTIONS_DEFINE= BLAS3_CNTL BUILTIN_BLAS CBLAS EXTERNAL_LAPACK GOTOBLAS \ OPTIONS_DEFINE= BLAS3_CNTL BUILTIN_BLAS CBLAS EXTERNAL_LAPACK GOTOBLAS \
LAPACK2FLAME LAPACK_SUBPROBLEMS OPENMP SHARED STATIC \ LAPACK2FLAME LAPACK_SUBPROBLEMS OPENMP SHARED STATIC \
SUPERMATRIX THREADS SUPERMATRIX THREADS
@ -44,7 +39,6 @@ SHARED_DESC= Build a shared library and PIC archive
STATIC_DESC= Build a non-PIC archive STATIC_DESC= Build a non-PIC archive
SUPERMATRIX_DESC= Task scheduling and parallel execution SUPERMATRIX_DESC= Task scheduling and parallel execution
NO_STAGE= yes
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MBLAS3_CNTL} .if ${PORT_OPTIONS:MBLAS3_CNTL}
@ -54,9 +48,9 @@ CONFIGURE_ARGS+= --disable-blas3-front-end-cntl-trees
.endif .endif
.if ${PORT_OPTIONS:MBUILTIN_BLAS} .if ${PORT_OPTIONS:MBUILTIN_BLAS}
IGNORE = : WITH_BUILTIN_BLAS is an experimental option, for testing purposes only IGNORE = : BUILTIN_BLAS is an experimental option, for testing purposes only
.if ${PORT_OPTIONS:MCBLAS} || ${PORT_OPTIONS:MGOTOBLAS} .if ${PORT_OPTIONS:MCBLAS} || ${PORT_OPTIONS:MGOTOBLAS}
IGNORE = : WITH_BUILTIN_BLAS is incompatible with WITH_CBLAS and WITH_GOTOBLAS IGNORE = : BUILTIN_BLAS is incompatible with CBLAS and GOTOBLAS
.endif .endif
CONFIGURE_ARGS+= --enable-builtin-blas CONFIGURE_ARGS+= --enable-builtin-blas
.else .else
@ -64,9 +58,9 @@ CONFIGURE_ARGS+= --disable-builtin-blas
.endif .endif
.if ${PORT_OPTIONS:MCBLAS} .if ${PORT_OPTIONS:MCBLAS}
IGNORE = : WITH_CBLAS yields an incomplete library, and is for testing purposes only IGNORE = : CBLAS yields an incomplete library, and is for testing purposes only
.if ${PORT_OPTIONS:MGOTOBLAS} .if ${PORT_OPTIONS:MGOTOBLAS}
IGNORE = : WITH_CBLAS is incompatible with WITH_GOTOBLAS IGNORE = : CBLAS is incompatible with GOTOBLAS
.endif .endif
CONFIGURE_ARGS+= --enable-cblas-interfaces CONFIGURE_ARGS+= --enable-cblas-interfaces
.else .else
@ -93,7 +87,7 @@ CONFIGURE_ARGS+= --enable-default-${b:tl}-blocksize=${${b}_BLOCKSIZE}
.if ${PORT_OPTIONS:MLAPACK2FLAME} .if ${PORT_OPTIONS:MLAPACK2FLAME}
.if ${PORT_OPTIONS:MLAPACK_SUBPROBLEMS} .if ${PORT_OPTIONS:MLAPACK_SUBPROBLEMS}
IGNORE = : WITH_LAPACK2FLAME is incompatible with WITH_LAPACK_SUBPROBLEMS IGNORE = : LAPACK2FLAME is incompatible with LAPACK_SUBPROBLEMS
.endif .endif
CONFIGURE_ARGS+= --enable-lapack2flame CONFIGURE_ARGS+= --enable-lapack2flame
.else .else
@ -102,14 +96,14 @@ CONFIGURE_ARGS+= --disable-lapack2flame
.if ${PORT_OPTIONS:MLAPACK_SUBPROBLEMS} .if ${PORT_OPTIONS:MLAPACK_SUBPROBLEMS}
.if ! ${PORT_OPTIONS:MEXTERNAL_LAPACK} .if ! ${PORT_OPTIONS:MEXTERNAL_LAPACK}
IGNORE = : WITH_LAPACK_SUBPROBLEMS requires WITH_EXTERNAL_LAPACK IGNORE = : LAPACK_SUBPROBLEMS requires EXTERNAL_LAPACK
.endif .endif
CONFIGURE_ARGS+= --enable-external-lapack-for-subproblems CONFIGURE_ARGS+= --enable-external-lapack-for-subproblems
.else .else
CONFIGURE_ARGS+= --disable-external-lapack-for-subproblems CONFIGURE_ARGS+= --disable-external-lapack-for-subproblems
.endif .endif
.if ${PORT_OPTIONS:MEXTERNAL_LAPACK} || ! ${PORT_OPTIONS:MBLAS} .if ${PORT_OPTIONS:MEXTERNAL_LAPACK} || ! ${PORT_OPTIONS:MBUILTIN_BLAS}
.if ${PORT_OPTIONS:MCBLAS} .if ${PORT_OPTIONS:MCBLAS}
.if exists(${LOCALBASE}/lib/libatlas.so) .if exists(${LOCALBASE}/lib/libatlas.so)
WITH_BLAS?= atlas_c WITH_BLAS?= atlas_c
@ -117,7 +111,7 @@ WITH_BLAS?= atlas_c
WITH_BLAS?= reference_c WITH_BLAS?= reference_c
.endif .endif
.if !(${WITH_BLAS} == "atlas_c" || ${WITH_BLAS} == "reference_c") .if !(${WITH_BLAS} == "atlas_c" || ${WITH_BLAS} == "reference_c")
IGNORE= : WITH_CBLAS is incompatible with WITH_BLAS = ${WITH_BLAS} IGNORE= : CBLAS is incompatible with WITH_BLAS = ${WITH_BLAS}
.endif .endif
.elif exists(${LOCALBASE}/lib/libgoto2.so) .elif exists(${LOCALBASE}/lib/libgoto2.so)
WITH_BLAS?= gotoblas WITH_BLAS?= gotoblas
@ -170,10 +164,10 @@ LAPACK+= -lblas
.if ${PORT_OPTIONS:MOPENMP} .if ${PORT_OPTIONS:MOPENMP}
.if ${PORT_OPTIONS:MTHREADS} .if ${PORT_OPTIONS:MTHREADS}
IGNORE = WITH_OPENMP is incompatible with WITH_THREADS IGNORE = OPENMP is incompatible with THREADS
.endif .endif
.if !empty(CC:M*clang*) .if !empty(CC:M*clang*)
IGNORE = clang does not support WITH_OPENMP, use WITH_THREADS instead IGNORE = clang does not support OPENMP, use THREADS instead
.endif .endif
OPENMP_CFLAGS ?= -fopenmp OPENMP_CFLAGS ?= -fopenmp
CFLAGS+= ${OPENMP_CFLAGS} CFLAGS+= ${OPENMP_CFLAGS}
@ -199,7 +193,7 @@ PLIST_SUB+= ${o}="@comment "
.endif .endif
.endfor .endfor
.if ${PORT_OPTIONS:MWITH_SUPERMATRIX} .if ${PORT_OPTIONS:MSUPERMATRIX}
CONFIGURE_ARGS+= --enable-supermatrix CONFIGURE_ARGS+= --enable-supermatrix
.else .else
CONFIGURE_ARGS+= --disable-supermatrix CONFIGURE_ARGS+= --disable-supermatrix
@ -305,20 +299,22 @@ do-install:
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${_MAKE_JOBS} \ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${_MAKE_JOBS} \
${MAKE_ARGS} install-headers ${MAKE_ARGS} install-headers
.if ${PORT_OPTIONS:MSHARED} .if ${PORT_OPTIONS:MSHARED}
@cd ${WRKSRC}/lib; ${STRIP_CMD} */libflame.so */libflame.a
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${_MAKE_JOBS} \ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${_MAKE_JOBS} \
${MAKE_ARGS} install-libs install-lib-symlinks ${MAKE_ARGS} install-libs install-lib-symlinks
.endif .endif
.if ${PORT_OPTIONS:MSTATIC} .if ${PORT_OPTIONS:MSTATIC}
@cd ${WRKSRC}_STATIC/lib; ${STRIP_CMD} */libflame.a
@cd ${WRKSRC}_STATIC; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${_MAKE_JOBS} \ @cd ${WRKSRC}_STATIC; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${_MAKE_JOBS} \
${MAKE_ARGS} install-libs ${MAKE_ARGS} install-libs
.endif .endif
.if ${PORT_OPTIONS:MDOCS} .if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${_DISTDIR}/${PORTDOCS} ${DOCSDIR} @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif .endif
.if ${PORT_OPTIONS:MEXAMPLES} .if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@cd ${WRKSRC}/examples; ${COPYTREE_SHARE} \* ${EXAMPLESDIR} @cd ${WRKSRC}/examples; ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
.endif .endif
.if defined(MAINTAINER_MODE) .if defined(MAINTAINER_MODE)

View File

@ -1,3 +1,4 @@
SHA256 (libflame-r7421.tar.gz) = 5c42ffe69f40fb46aa9bcf289a3d124700f31cfa231587207c568dd0274e01bb SHA256 (libflame-r7421.tar.gz) = 5c42ffe69f40fb46aa9bcf289a3d124700f31cfa231587207c568dd0274e01bb
SIZE (libflame-r7421.tar.gz) = 3953831 SIZE (libflame-r7421.tar.gz) = 3953831
SHA256 (libflame.pdf) = IGNORE SHA256 (libflame.pdf) = 8f628171d4778144a7732bacf4dfa3dc35098b9f4238c29dc8bc9b3b05e8718f
SIZE (libflame.pdf) = 1290721

View File

@ -10,4 +10,4 @@ Interfaces (APIs) for representing the algorithms in code, and tools for
mechanical derivation, implementation and analysis of algorithms and mechanical derivation, implementation and analysis of algorithms and
implementations. implementations.
WWW: http://z.cs.utexas.edu/wiki/flame.wiki/FrontPage WWW: http://z.cs.utexas.edu/wiki/flame.wiki/FrontPage