Opened 15 years ago

Closed 15 years ago

#5425 closed defect (fixed)

NEW: ntl

Reported by: ralf@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:


This port is a C++ library implementing (amongst other things) polynomial and bignum arithmetic. It provides efficient algorithms for lattice reduction, polynomial factorization and for basic linear algebra. Unfortunately Apple's gcc 4.0 gives up with an internal error when compiling it, thus we use gcc 3.3 on the Darwin 8/MacOS X 10.4 platform.


# $Id$

PortSystem 1.0 name ntl version 5.4 categories math maintainers 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.

depends_build bin:perl:perl5.8

master_sites checksums md5 1d2a683ecbc12cdf03bf92dbc97c0dd4

configure.env LDFLAGS="-L${prefix}/lib" \

CPPFLAGS="-I${prefix}/include" no

configure.pre_args "PREFIX=${prefix} DOCDIR=${prefix}/share/doc" configure.args "NTL_STD_CXX=on"

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

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

platform darwin 8 {

build.env-append CC=gcc-3.3 CXX=g++-3.3


variant gmp {

depends_lib-append lib:libgmp.4: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 \


xinstall -m 0644 ${worksrcpath}/../doc/copying.txt \



Change History (1)

comment:1 Changed 15 years ago by mww@…

Resolution: fixed
Status: newclosed
Summary: NEW: ntl NEW: ntl

thanks, commited with changes: -replaced build.env-append with build.args-append -changed g++-3.3 etc. to full path -added missing homepage key -made dep on gmp in gmp lib definitiv

Note: See TracTickets for help on using tickets.