llvm version 2.1 for Mac OS X 10.5 Leopard
Friday the 16th of May, 2008

    llvm  most recent diff


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



      # $Id: Portfile 32515 2008-01-06 05:22:43Z erickt macports.org $

      PortSystem 1.0

      Name: llvm
      Version: 2.1
      Category: lang
      Platform: darwin
      Maintainers: erickt macports.org
      Description: llvm is a next generation compiler infrastructure
      Long Description: llvm brings tools to work on the llvm intermediate language incl. a C and C++ frontend.

      Homepage: http://llvm.org/
      master_sites http://llvm.org/releases/${version}/

      checksums md5 b930e7213b37acc934d0d163cf13af18 sha1 e57081e1bc7c2cb168859f534c08b579276c3398 rmd160 df28ee93be79b8d436deb7c0e1cff1c21e1328be

      depends_build bin:flex:flex bin:bison:bison

      worksrcdir build

      pre-configure {
      file mkdir ${workpath}/build
      }

      configure.cmd ../llvm-${version}/configure --enable-optimized

      build.target tools-only

      destroot.destdir PROJ_prefix=${destroot}${prefix} PROJ_bindir=${destroot}${prefix}/bin PROJ_libdir=${destroot}${prefix}/lib PROJ_datadir=${destroot}${prefix}/share/llvm PROJ_docsdir=${destroot}${prefix}/share/llvm/docs PROJ_etcdir=${destroot}${prefix}/etc/llvm PROJ_includedir=${destroot}${prefix}/include PROJ_infodir=${destroot}${prefix}/share/info PROJ_mandir=${destroot}${prefix}/share/man

      post-destroot {
      file mkdir ${destroot}${prefix}/lib/llvm
      file mkdir ${destroot}${prefix}/lib/llvm/src
      file mkdir ${destroot}${prefix}/lib/llvm/obj

      file copy ${workpath}/llvm-${version}/include ${destroot}${prefix}/lib/llvm/src
      file copy ${workpath}/build/include ${destroot}${prefix}/lib/llvm/obj
      file copy ${workpath}/build/Release ${destroot}${prefix}/lib/llvm/obj

      reinplace "s|${workpath}/build/\.\./llvm-${version}|${prefix}/lib/llvm/src|g" ${destroot}${prefix}/bin/llvm-config
      reinplace "s|${workpath}/build|${prefix}/lib/llvm/obj|g" ${destroot}${prefix}/bin/llvm-config

      reinplace "s|${workpath}/build/\.\./llvm-${version}|${prefix}/lib/llvm/src|g" ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
      reinplace "s|${workpath}/build|${prefix}/lib/llvm/obj|g" ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
      }

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

     Where to find more information:

    Darwin Ports



    image test