source: trunk/dports/devel/fortrancl/Portfile

Last change on this file was 130949, checked in by sean@…, 3 years ago

compilers-1.0: set default fortran variant in the portgroup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 130949 2015-01-04 06:00:49Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6PortGroup           compilers 1.0
7
8compilers.choose    fc f77 f90
9compilers.setup     require_fortran -dragonegg
10
11name                fortrancl
12version             0.1alpha4
13revision            1
14categories          devel parallel science
15platforms           darwin
16license             LGPL
17maintainers         takeshi openmaintainer
18description         OpenCL Fortran 90 interface
19long_description    \
20   FortranCL is an OpenCL interface for Fortran 90. \
21   It allows programmers to call the OpenCL parallel programming framework \
22   directly from Fortran, so developers can accelerate their Fortran code \
23   using graphical processing units (GPU) and other accelerators.
24homepage            http://code.google.com/p/fortrancl/
25master_sites        googlecode
26
27checksums           rmd160  a709df9ffb914e9e37605dd5a800a58d1567f800 \
28                    sha256  55d604a8659edbb0bc6fe9318c1bf04898c93fefcd0bbd03c62ddb778e167581
29
30pre-fetch {
31    if {${os.major} < 10} {
32        return -code error "OpenCL is not available. Snow Leopard or newer is required."
33    }
34}
35
36configure.cppflags-append   -framework OpenCL
37configure.args              --enable-shared
38
39use_parallel_build  no
40
41post-destroot {
42    xinstall -d -m 755 ${destroot}${prefix}/share/${name}/examples
43    xinstall -m 644 -W ${worksrcpath}/examples \
44        devices.f90 sum.cl sum.f90 \
45        ${destroot}${prefix}/share/${name}/examples/
46}
47
48# They differ when universal due to gcc multilib being messy non-universal
49destroot.delete_la_files yes
Note: See TracBrowser for help on using the repository browser.