Gmp-cxx-wrappers version 4.2.1 - How to Download and Install on Mac OS X
Saturday the 13th of March, 2010

    gmp-cxx-wrappers  most recent diff


    version 4.2.1

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


      The gmp-cxx-wrappers Portfile 30224 2007-10-22 22:49:14Z jmpp macports.org $

      PortSystem 1.0
      Name: gmp-cxx-wrappers
      Version: 4.2.1
      Revision: 2
      Category: devel math
      Maintainers: nomaintainer
      Platform: darwin freebsd
      Description: C++ wrappers for the GNU multiple precision arithmetic library
      Long Description: The C++ wrappers for gmp. To build them requires that gmp be installed, hence this portfile, which rebuilds gmp, but only installs the C++ wrappers.

      Homepage: http://www.swox.com/gmp/

      Master Sites: gnu:gmp

      use_bzip2 yes
      distfiles gmp-${version}${extract.suffix}
      Checksums: gmp-${version}${extract.suffix} md5 091c56e0e1cca6b09b17b69d47ef18e3

      depends_run port:gmp

      worksrcdir gmp-${version}

      configure.env ABI=32
      configure.cflags-append -force_cpusubtype_ALL
      configure.args --infodir=\\\${prefix}/share/info --enable-shared --enable-cxx

      test.run yes
      test.target check

      post-destroot {
      ui_msg "$UI_PREFIX Running ranlib on static libraries"
      system "ranlib ${destroot}${prefix}/lib/libgmpxx.a"

      delete ${destroot}${prefix}/include/gmp.h

      delete ${destroot}${prefix}/lib/libgmp.a
      delete ${destroot}${prefix}/lib/libgmp.la
      delete ${destroot}${prefix}/lib/libgmp.dylib
      delete ${destroot}${prefix}/lib/libgmp.3.dylib
      delete ${destroot}${prefix}/lib/libgmp.3.4.1.dylib

      delete ${destroot}${prefix}/share
      }

      platform darwin i386 {
      configure.env-delete ABI=32
      configure.args-append --host=none-apple-darwin
      configure.cflags-delete -force_cpusubtype_ALL
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.