erlang version R12B-0 for Mac OS X 10.5 Leopard
Friday the 16th of May, 2008

    erlang  most recent diff


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



      # $Id: Portfile 32028 2007-12-14 07:15:42Z bfulgham macports.org $

      PortSystem 1.0
      Name: erlang
      Version: R12B-0
      revision 0
      Category: lang erlang
      Maintainers: bfulgham macports.org
      Platform: darwin
      Description: The Erlang Programming Language
      Long Description: Erlang is a programming language designed at the Ericsson Computer Science Laboratory. Open-source Erlang is being released to help encourage the spread of Erlang outside Ericsson. We are releasing free of charge: The entire source code of the current Erlang system. Extensive libraries of code for building robust fault-tolerant distributed applications. All with documentation. All the above software has been battle tested in a number of Ericsson products, for example the new Ericsson ATM switch.

      Homepage: http://www.erlang.org/
      master_sites http://www.erlang.org/download/

      distfiles otp_src_${version}${extract.suffix} otp_doc_man_${version}${extract.suffix} otp_doc_html_${version}${extract.suffix}

      checksums otp_src_${version}.tar.gz md5 54cd5a83697c515f571e44d4ea99c8d3 otp_doc_man_${version}.tar.gz md5 aa3a12a16e03d1aadec40e265f51e7c6 otp_doc_html_${version}.tar.gz md5 ddbb484ebe97a837640e51305cc7557a

      extract.only otp_src_${version}${extract.suffix}

      pre-patch { file rename ${workpath}/otp_src_${version} ${workpath}/${name}-${version} }

      patchfiles patch-toolbar.erl otp_src_R12B-0-osp1.patch patch-erts_emulator_hipe_hipe_x86_signal.c

      configure.args --prefix=${destroot}${prefix} --enable-threads --enable-kernel-poll --enable-hipe --disable-smp-support

      Variant: smp {
      configure.args-delete --disable-smp-support
      }

      Variant: ssl {
      configure.args-append --with-ssl=${prefix}
      depends_build-append port:openssl
      depends_run-append port:openssl
      }


      platform i386 {
      pre-configure {
      file copy ${filespath}/mach_override.h ${workpath}/${name}-${version}/erts/emulator/hipe
      file copy ${filespath}/mach_override.c ${workpath}/${name}-${version}/erts/emulator/hipe
      }
      }



      depends_build port:gawk
      depends_run port:tk

      post-destroot {
      system "tar -C ${destroot}${prefix}/lib/erlang -zxvf ${distpath}/otp_doc_html_${version}${extract.suffix}"
      system "tar -C ${destroot}${prefix}/lib/erlang -zxvf ${distpath}/otp_doc_man_${version}${extract.suffix}"

      set erts_dir erts-5.6

      reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/bin/erl
      reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/bin/start
      reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/${erts_dir}/bin/erl
      reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/${erts_dir}/bin/start

      foreach x {dialyzer ear ecc elink epmd erl erlc escript run_erl start to_erl typer} { file delete -force ${destroot}${prefix}/bin/${x} }
      foreach x {dialyzer erl erlc escript run_erl start to_erl typer} { system "ln -s ../lib/erlang/bin/${x} ${destroot}${prefix}/bin/${x}" }

      file delete -force ${destroot}${prefix}/lib/erlang/bin/epmd
      system "ln -s ../${erts_dir}/bin/epmd ${destroot}${prefix}/lib/erlang/bin/epmd"
      }

    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/erlang
      % sudo port install erlang
      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 erlang
      ---> Verifying checksum for erlang
      ---> Extracting erlang
      ---> Configuring erlang
      ---> Building erlang with target all
      ---> Staging erlang into destroot
      ---> Installing erlang
    - 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 erlang with these commands:
      %  man erlang
      % apropos erlang
      % which erlang
      % locate erlang

     Where to find more information:

    Darwin Ports



    image test