Adaptor version 12.0 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    adaptor  most recent diff


    version 12.0

      View the most recent changes for the adaptor port at: adaptor.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for adaptor.
      The raw portfile for adaptor 12.0 is located here:
      http://adaptor.darwinports.com/dports/lang/adaptor/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/adaptor


      The adaptor Portfile 59160 2009-10-10 19:39:41Z takeshi macports.org $

      PortSystem 1.0

      Name: adaptor
      Version: 12.0
      Revision: 2
      Platform: darwin
      Category: lang
      Maintainers: takeshi
      Description: Parallel Fortran compiliation system
      Long Description: ADAPTOR is a Fortran Compilation System that supports the analysis, translation and optimization of Fortran 90 programs with parallel and/or optimization directives. It generates new Fortran sources that will be linked with runtime libraries supporting the needed functionality.
      Homepage: http://www.scai.fraunhofer.de/EP-CACHE/adaptor/www/adaptor_home.html
      Master Sites: http://www.scai.fraunhofer.de/EP-CACHE/adaptor/www/
      distfiles adp_${version}.tar.gz
      Checksums: md5 5cd6677f7f66a1f33246d5ed4bdface2 sha1 6bbcb22e32afbc26a1f3f59ef963a8213c377180 rmd160 97cb37a397f68bae98853b11413b867b3d400efa

      depends_lib port:gcc43 port:openmpi port:libtool
      configure.f77 ${prefix}/bin/gfortran-mp-4.3
      configure.f90 ${prefix}/bin/gfortran-mp-4.3
      configure.env F77_OPT=-O3 F77_MP="" THR_LIB=-lpthread F77_OPENMP=-fopenmp THR_LIB=-lpthread MPI_INC="-I${prefix}/include -I${prefix}/include/openmpi" MPI_LIB="-L${prefix}/lib -lmpi_f90 -lmpi_f77 -lmpi"
      configure.args --prefix=${prefix}/lib/${name}

      extract.mkdir yes

      pre-configure {
      reinplace "s|NAME|FILE|g" ${worksrcpath}/config_tools/fmpi.f
      file copy -force ${prefix}/share/libtool/config/config.guess ${worksrcpath}/config_tools
      }

      post-configure {
      if {![variant_isset g95]} {
      reinplace "s|FFUNCTION(iargc)|_gfortran_iargc|g" ${worksrcpath}/dalib/finit.m4
      reinplace "s|FFUNCTION(getarg)|_gfortran_getarg_i4|g" ${worksrcpath}/dalib/finit.m4
      } else {
      reinplace "s|FFUNCTION(iargc)|iargc_|g" ${worksrcpath}/dalib/finit.m4
      reinplace "s|FFUNCTION(getarg)|getarg_|g" ${worksrcpath}/dalib/finit.m4
      }
      }

      pre-destroot {
      file mkdir ${destroot}${prefix}/lib/${name}
      file mkdir ${destroot}${prefix}/share/${name}
      file mkdir ${destroot}${prefix}/share/doc/${name}
      }

      post-destroot {
      file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
      file copy ${worksrcpath}/hpf_examples ${destroot}${prefix}/share/${name}/
      file copy ${worksrcpath}/test_examples ${destroot}${prefix}/share/${name}/
      puts stdout "Set PHOME to ${prefix}/lib/${name} and add \$PHOME/bin to PATH."
      }

      destroot.destdir PREFIX=${destroot}${prefix}/lib/${name}

      Variant: g95 description {build with g95} {
      depends_lib-delete port:gcc43
      depends_lib-append port:g95
      configure.f77 ${prefix}/bin/g95
      configure.f90 ${prefix}/bin/g95
      configure.env-delete F77_OPENMP=-fopenmp
      configure.env-append F77_OPENMP="" F77_MP=-fstatic

      }


    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/adaptor
      % sudo port install adaptor
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching adaptor
      ---> Verifying checksum for adaptor
      ---> Extracting adaptor
      ---> Configuring adaptor
      ---> Building adaptor with target all
      ---> Staging adaptor into destroot
      ---> Installing adaptor
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using adaptor with these commands:
      %  man adaptor
      % apropos adaptor
      % which adaptor
      % locate adaptor

     Where to find more information:

    Darwin Ports



    Lightbox this page.