You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
hpl: general improvements, install more files
man pages/headers/lib
This commit is contained in:
+30
-14
@@ -6,9 +6,8 @@ PortGroup linear_algebra 1.0
|
||||
|
||||
name hpl
|
||||
version 2.3
|
||||
revision 1
|
||||
categories science
|
||||
platforms darwin
|
||||
revision 2
|
||||
categories science benchmarks
|
||||
license BSD
|
||||
maintainers {dstrubbe @dstrubbe}
|
||||
|
||||
@@ -42,21 +41,34 @@ pre-build {
|
||||
file copy ${worksrcpath}/setup/Make.FreeBSD_PIV_CBLAS ${worksrcpath}/Make.${archname}
|
||||
}
|
||||
|
||||
build.args ARCH=${archname} TOPdir=${worksrcpath} MPlib=
|
||||
build.args ARCH=${archname} \
|
||||
TOPdir=${worksrcpath} \
|
||||
MPlib=
|
||||
build.target all-j arch=${archname}
|
||||
use_parallel_build yes
|
||||
|
||||
pre-build {
|
||||
build.args-append \
|
||||
CC=${mpi.cc} \
|
||||
LINKER=${mpi.cc} \
|
||||
LAlib="${linalglib}"
|
||||
}
|
||||
|
||||
test.run yes
|
||||
|
||||
destroot {
|
||||
xinstall ${worksrcpath}/bin/${archname}/xhpl ${destroot}${prefix}/bin/
|
||||
xinstall -d ${destroot}${prefix}/share/hpl
|
||||
xinstall ${worksrcpath}/bin/${archname}/HPL.dat ${destroot}${prefix}/share/hpl/
|
||||
xinstall ${worksrcpath}/TUNING ${destroot}${prefix}/share/hpl/
|
||||
xinstall -m 755 ${worksrcpath}/bin/${archname}/xhpl ${destroot}${prefix}/bin/
|
||||
xinstall -m 644 ${worksrcpath}/lib/${archname}/lib${name}.a ${destroot}${prefix}/lib/
|
||||
xinstall -m 644 {*}[glob -type f ${worksrcpath}/include/*.h] ${destroot}${prefix}/include/
|
||||
xinstall -d ${destroot}${prefix}/share/${name}
|
||||
xinstall -m 644 ${worksrcpath}/bin/${archname}/HPL.dat ${destroot}${prefix}/share/${name}/HPL.dat.example
|
||||
xinstall -m 644 ${worksrcpath}/TUNING ${destroot}${prefix}/share/${name}/
|
||||
xinstall -m 644 {*}[glob -type f ${worksrcpath}/man/man3/*] ${destroot}${prefix}/share/man/man3
|
||||
}
|
||||
|
||||
pre-build {
|
||||
build.args-append CC=${mpi.cc} LINKER=${mpi.cc} LAlib="${linalglib}"
|
||||
post-activate {
|
||||
if {![file exists ${prefix}/share/hpl/HPL.dat]} {
|
||||
file copy ${prefix}/share/hpl/HPL.dat.example ${prefix}/share/hpl/HPL.dat
|
||||
}
|
||||
}
|
||||
|
||||
pre-test {
|
||||
@@ -64,9 +76,13 @@ pre-test {
|
||||
test.cmd ${mpi.exec} -n ${build.jobs} ./xhpl
|
||||
}
|
||||
|
||||
pre-fetch {
|
||||
notes "Execute as: cd ${prefix}/share/hpl && ${mpi.exec} -n ${build.jobs} xhpl"
|
||||
}
|
||||
|
||||
notes-append "
|
||||
Execute as: \"cd ${prefix}/share/hpl && ${mpi.exec} -n ${build.jobs} xhpl\",\
|
||||
or copy ${prefix}/share/hpl/HPL.dat to the working directory.\
|
||||
See ${prefix}/share/hpl/TUNING on how to change benchmark settings.\
|
||||
Changes to ${prefix}/share/hpl/HPL.dat will be preserved across upgrades.
|
||||
"
|
||||
|
||||
livecheck.type regex
|
||||
livecheck.url [lindex ${master_sites} 0]
|
||||
|
||||
Reference in New Issue
Block a user