source: trunk/dports/math/pfft/Portfile @ 146620

Last change on this file since 146620 was 144662, checked in by dstrubbe@…, 4 years ago

pfft: Enable shared library. (ticket #50327)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- 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
2# $Id: Portfile 144662 2016-01-14 22:51:56Z dstrubbe@macports.org $
3
4PortSystem      1.0
5PortGroup       mpi 1.0
6PortGroup       active_variants 1.1
7
8name            pfft
9version         1.0.8-alpha
10revision        1
11categories      math
12license         GPL-3
13platforms       darwin
14maintainers     dstrubbe
15homepage        https://www-user.tu-chemnitz.de/~potts/workgroup/pippig/software.php.en#pfft
16
17master_sites    http://www.tu-chemnitz.de/~potts/workgroup/pippig/software
18
19description     An extension of FFTW to massively parallel architectures
20
21long_description \
22PFFT is a parallel FFT software library based on MPI.
23
24checksums       rmd160  afb6d254b2b517e4c39c8eb1e73166c5736b8087 \
25                sha256  6c43960ad72fcff7e49b87c604c5f471fb5890f1bd11ce750ab52f035e7c5317
26
27mpi.setup       require require_fortran
28
29depends_lib     port:fftw-3
30mpi.enforce_variant fftw-3
31
32test.run        yes
33test.target     check
34# strangely, "make check" only builds the test executables but does not run them.
35post-test {
36    reinplace -W ${worksrcpath}/tests "s|mpirun|${mpi.exec}|g" run_checks.sh
37    system -W ${worksrcpath}/tests ./run_checks.sh
38}
39
40use_parallel_build yes
41
42pre-configure {
43    if {![active_variants fftw-3 pfft_patches]} {
44        ui_warn "You are recommended to install fftw-3 with variant +pfft_patches."
45    }
46
47    configure.args-append  MPICC=${mpi.cc} MPIFC=${mpi.f90} \
48        CPPFLAGS=-I${prefix}/include LDFLAGS="-L${prefix} -lfftw3 -lfftw3_mpi"
49}
50
51livecheck.type  regex
52# [sic], it is really pnfft in the URL even though that refers to a different piece of software
53livecheck.url   https://www-user.tu-chemnitz.de/~potts/workgroup/pippig/software.php.en#pnfftDownloads
54livecheck.regex ${name}-(\[0-9\\-a-z\.\]+).tar.gz
Note: See TracBrowser for help on using the repository browser.