Llvm-devel version 53722 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    llvm-devel  most recent diff


    version 53722

      View the most recent changes for the llvm-devel port at: llvm-devel.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for llvm-devel.
      The raw portfile for llvm-devel 53722 is located here:
      http://llvm-devel.darwinports.com/dports/lang/llvm-devel/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-devel


      The llvm-devel Portfile 50984 2009-05-14 21:08:43Z and.damore macports.org $

      PortSystem 1.0

      Name: llvm-devel
      Version: 53722
      Revision: 1
      set checker-version 62
      Category: lang
      Platform: darwin
      use_parallel_build yes
      Maintainers: erickt kallisys.net:pguyot openmaintainer
      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: macports:pguyot

      distname llvm-${version}

      Checksums: ${distname}${extract.suffix} md5 2572a3e6bc2d2356942dbae1929621c8 sha1 be776f49fe15c7599631eff0e6a4db575593f480 rmd160 efa4833664a2ff5b017645b13ce642d3fa1f1167 checker-${checker-version}${extract.suffix} md5 a04f5c35a65556b73e56c28f766e3750 sha1 85dcdc6a592fa4000b3314c55320dad7065f2522 rmd160 243bb4e053c2b435ac0af137d49ab5be4011e292

      depends_build bin:flex:flex bin:bison:bison

      configure.dir ${workpath}/build
      build.dir ${configure.dir}
      destroot.dir ${configure.dir}

      post-extract {
      file mkdir ${configure.dir}
      }

      Patch Files: patch-Makefile.config.in.diff

      configure.cppflags
      configure.ldflags
      configure.cmd ${worksrcpath}/configure
      configure.args --enable-optimized --enable-jit

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

      file copy ${worksrcpath}/include ${destroot}${prefix}/lib/llvm/src
      file copy ${configure.dir}/include ${destroot}${prefix}/lib/llvm/obj
      file copy ${configure.dir}/Release ${destroot}${prefix}/lib/llvm/obj

      reinplace "s|${worksrcpath}|${prefix}/lib/llvm/src|g" ${destroot}${prefix}/bin/llvm-config ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
      reinplace "s|${configure.dir}|${prefix}/lib/llvm/obj|g" ${destroot}${prefix}/bin/llvm-config ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config

      fs-traverse item ${destroot} {
      if {[file isfile ${item}] && ".dir" == [file tail ${item}]} {
      delete ${item}
      }
      }
      }

      Variant: clang description {Install clang (with checker tools)} {
      distfiles-append checker-${checker-version}${extract.suffix}
      post-extract {
      move ${workpath}/checker-${checker-version} ${worksrcpath}/tools/clang
      }
      patchfiles-append patch-tools-Makefile.diff
      depends_lib-append port:python25
      post-destroot {
      reinplace "s|/usr/bin/env python|${prefix}/bin/python2.5|g" ${worksrcpath}/tools/clang/utils/ccc-analyzer
      xinstall -W ${worksrcpath}/tools/clang/utils ccc ccc-analyzer scan-build sorttable.js ${destroot}${prefix}/bin
      }
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.