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

    version 5.4.2

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


      The ntl Portfile 56061 2009-08-24 00:33:19Z ryandesign macports.org $

      PortSystem 1.0

      Name: ntl
      Version: 5.4.2
      Category: math
      Platform: darwin
      Maintainers: fimaluka.org:ralf
      Description: NTL: A Library for doing Number Theory
      Long Description: NTL is a high-performance, portable C++ library providing data structures and algorithms for arbitrary length integers\; for vectors, matrices, and polynomials over the integers and over finite fields\; and for arbitrary precision floating point arithmetic.

      Homepage: http://shoup.net/ntl/
      Master Sites: ${homepage}
      Checksums: md5 0aac5c680eee09a19732e1601b237a0b sha1 0250461a5e205663f7e446211c9571b6aad249e9 rmd160 5657f4f3b18281787b85f561b184c757254f656f

      depends_build path:bin/perl:perl5

      test.run no

      configure.pre_args "PREFIX=${prefix} DOCDIR=${prefix}/share/doc"
      configure.args "NTL_STD_CXX=on"
      configure.args-append "CC=\$CC CXX=\$CXX CFLAGS=\$CFLAGS CXXFLAGS=\$CXXFLAGS"

      worksrcdir ${name}-${version}/src

      destroot.destdir "PREFIX=${destroot}${prefix} DOCDIR=${destroot}${prefix}/share/doc"

      post-patch {
      # Ensure that the correct perl is used
      reinplace "s|perl DoConfig|${prefix}/bin/perl DoConfig|g" ${worksrcpath}/configure
      }

      Variant: gmp {
      depends_lib-append port:gmp
      configure.args-append "NTL_GMP_LIP=on GMP_PREFIX=${prefix}"
      }

      post-destroot {
      system "cd ${destroot}${prefix}/share/doc && mv NTL tmp && mv tmp ntl"
      xinstall -m 0644 ${worksrcpath}/../README ${destroot}${prefix}/share/doc/${name}
      xinstall -m 0644 ${worksrcpath}/../doc/copying.txt ${destroot}${prefix}/share/doc/${name}/LICENSE
      }

      livecheck.url http://shoup.net/ntl/download.html
      livecheck.regex "Download NTL (\\d(?:\\.\\d+)*)"

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.