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

    cextract  most recent diff


    version 1.7

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


      The cextract Portfile 59062 2009-10-09 05:15:41Z blb macports.org $

      PortSystem 1.0
      Name: cextract
      Version: 1.7
      Category: devel
      Maintainers: jameskyle
      Description: C prototype extractor
      Long Description: cextract is ideal for generating header files for large multi-file C programs, and will provide an automated method for generating all of the prototypes for all of the functions in such a program. cextract also functions as a rudimentary documentation extractor, generating a sorted list of all functions and their locations.

      Platform: darwin

      Homepage: http://www.cs.bu.edu/pub/adb/
      Master Sites: ${homepage}
      distname ${name}
      dist_subdir ${name}/${version}
      extract.suffix .tar.Z

      Checksums: md5 c3afd8f535fa23000d35fc1ab37d1bf3 sha1 798033c7128d811ab63767cd1e8fd10536cd74b6 rmd160 f0087686b7f648fd97889e4f78767faa262af53a

      # No uncompress option for distfiles, so extract manually
      extract {
      system "cd ${workpath} && uncompress -c ${distpath}/${distfiles} | tar xf -"
      }

      Patch Files: patch-xtract.h.diff patch-io.c.diff

      use_configure no

      set sysrc SYSRC=${prefix}/etc/cext.config

      build.target-append ${sysrc}

      destroot.target-append install.man
      destroot.destdir-append BINDIR=${prefix}/bin MANDIR=${prefix}/share/man/man ${sysrc}

      post-activate {
      system "${prefix}/bin/cextract -B"
      }

      platform darwin {
      patchfiles-append patch-Makefile_darwin.diff
      }

      livecheck.type none


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.