source: trunk/dports/math/ntl/Portfile

Last change on this file was 95164, checked in by mww@…, 5 years ago

ntl: add license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 95164 2012-07-06 07:06:20Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            ntl
6version         5.4.2
7categories      math
8platforms       darwin
9license         GPL-2+
10maintainers     fimaluka.org:ralf
11description     NTL: A Library for doing Number Theory
12long_description NTL is a high-performance, portable C++ library providing\
13                 data structures and algorithms for arbitrary length\
14                 integers\; for vectors, matrices, and polynomials over the\
15                 integers and over finite fields\; and for arbitrary\
16                 precision floating point arithmetic.
17
18homepage                http://shoup.net/ntl/
19master_sites    ${homepage}
20checksums       md5 0aac5c680eee09a19732e1601b237a0b \
21                sha1 0250461a5e205663f7e446211c9571b6aad249e9 \
22                rmd160 5657f4f3b18281787b85f561b184c757254f656f
23
24depends_build   path:bin/perl:perl5
25
26test.run        no
27
28configure.pre_args      PREFIX=\"${prefix}\" DOCDIR=\"${prefix}/share/doc\"
29configure.args          NTL_STD_CXX=on \
30                        CC=\"\$CC\" CXX=\"\$CXX\" CFLAGS=\"\$CFLAGS\" CXXFLAGS=\"\$CXXFLAGS\"
31
32worksrcdir      ${name}-${version}/src
33
34destroot.destdir PREFIX=\"${destroot}${prefix}\" DOCDIR=\"${destroot}${prefix}/share/doc\"
35
36post-patch {
37        # Ensure that the correct perl is used
38        reinplace "s|perl DoConfig|${prefix}/bin/perl DoConfig|g" ${worksrcpath}/configure
39}
40
41variant gmp {
42        depends_lib-append      port:gmp
43        configure.args-append   NTL_GMP_LIP=on GMP_PREFIX=\"${prefix}\"
44}
45
46post-destroot {
47        system "cd ${destroot}${prefix}/share/doc && mv NTL tmp && mv tmp ntl"
48        xinstall -m 0644 ${worksrcpath}/../README \
49                         ${destroot}${prefix}/share/doc/${name}
50        xinstall -m 0644 ${worksrcpath}/../doc/copying.txt \
51                         ${destroot}${prefix}/share/doc/${name}/LICENSE
52}
53
54livecheck.url    http://shoup.net/ntl/download.html
55livecheck.regex  "Download NTL (\\d(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.