Skip to content
Browse files


Submitted by:
Reviewed by:    mww@

new port math/ntl

git-svn-id: d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Oct 19, 2005
1 parent 4f45a90 commit 50017f0c889fc73819651dafd692ae4d4febdaa6
Showing with 48 additions and 0 deletions.
  1. +48 −0 math/ntl/Portfile
@@ -0,0 +1,48 @@
# $Id: Portfile,v 1.1 2005/10/19 21:17:23 mww Exp $

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

master_sites ${homepage}
checksums md5 1d2a683ecbc12cdf03bf92dbc97c0dd4

depends_build bin:perl:perl5.8

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.args-append CC=/usr/bin/gcc-3.3 CPP=/usr/bin/cpp-3.3 CXX=/usr/bin/g++-3.3

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 \
xinstall -m 0644 ${worksrcpath}/../doc/copying.txt \

0 comments on commit 50017f0

Please sign in to comment.
You can’t perform that action at this time.