Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
79 lines (63 sloc) 2.2 KB
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
PortGroup mpi 1.0
PortGroup linear_algebra 1.0
PortGroup muniversal 1.0
github.setup cburstedde p4est 2.2 v
revision 1
categories science math
platforms darwin
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
license GPL-2+
homepage http://www.p4est.org/
master_sites http://p4est.github.io/release/
description A graph coloring algorithm package
long_description ${description}
checksums rmd160 0dd0b2d94b426c7e4858b87581e08df4da58602e \
sha256 1549cbeba29bee2c35e7cc50a90a04961da5f23b6eada9c8047f511b90a8e438 \
size 2628510
mpi.setup require require_fortran
# do not attempt to use la files from libsc
patchfiles-append patch-libsc-lib.diff
depends_lib-append \
port:lua \
port:zlib \
port:metis \
port:libsc
mpi.enforce_variant libsc
configure.args-append \
--enable-mpi \
--with-metis \
--with-petsc=no \
--with-sc=${prefix}
pre-configure {
configure.args-append \
--with-blas="-L${prefix}/lib ${linalglib}" \
--with-lapack=""
}
variant petsc description {build with PETSc support} {
depends_lib-append \
port:petsc
configure.args-replace \
--with-petsc=no \
--with-petsc=yes
configure.env-append \
PETSC_DIR=${prefix}/lib/petsc
mpi.enforce_variant petsc
}
if {![variant_isset universal]} {
# remove arch flags
post-destroot {
reinplace -E {s|-arch [a-z0-9_]+||g} ${destroot}${prefix}/etc/Makefile.p4est.mk
#reinplace -E {s|-m[0-9]+||g} ${destroot}${prefix}/etc/Makefile.p4est.mk
}
} else {
# remove arch flags
merger-post-destroot {
foreach arch ${configure.universal_archs} {
reinplace -E {s|-arch [a-z0-9_]+||g} ${destroot}-${arch}${prefix}/etc/Makefile.p4est.mk
#reinplace -E {s|-m[0-9]+||g} ${destroot}-${arch}${prefix}/etc/Makefile.p4est.mk
}
}
}
You can’t perform that action at this time.