Commits
Joshua Root authored 38c82c300de
17 17 | homepage http://shoup.net/ntl/ |
18 18 | master_sites ${homepage} |
19 19 | checksums md5 0aac5c680eee09a19732e1601b237a0b \ |
20 20 | sha1 0250461a5e205663f7e446211c9571b6aad249e9 \ |
21 21 | rmd160 5657f4f3b18281787b85f561b184c757254f656f |
22 22 | |
23 23 | depends_build path:bin/perl:perl5 |
24 24 | |
25 25 | test.run no |
26 26 | |
27 - | configure.pre_args "PREFIX=${prefix} DOCDIR=${prefix}/share/doc" |
28 - | configure.args "NTL_STD_CXX=on" |
29 - | configure.args-append "CC=\$CC CXX=\$CXX CFLAGS=\$CFLAGS CXXFLAGS=\$CXXFLAGS" |
27 + | configure.pre_args PREFIX=\"${prefix}\" DOCDIR=\"${prefix}/share/doc\" |
28 + | configure.args NTL_STD_CXX=on \ |
29 + | CC=\"\$CC\" CXX=\"\$CXX\" CFLAGS=\"\$CFLAGS\" CXXFLAGS=\"\$CXXFLAGS\" |
30 30 | |
31 31 | worksrcdir ${name}-${version}/src |
32 32 | |
33 - | destroot.destdir "PREFIX=${destroot}${prefix} DOCDIR=${destroot}${prefix}/share/doc" |
33 + | destroot.destdir PREFIX=\"${destroot}${prefix}\" DOCDIR=\"${destroot}${prefix}/share/doc\" |
34 34 | |
35 35 | post-patch { |
36 36 | # Ensure that the correct perl is used |
37 37 | reinplace "s|perl DoConfig|${prefix}/bin/perl DoConfig|g" ${worksrcpath}/configure |
38 38 | } |
39 39 | |
40 40 | variant gmp { |
41 41 | depends_lib-append port:gmp |
42 - | configure.args-append "NTL_GMP_LIP=on GMP_PREFIX=${prefix}" |
42 + | configure.args-append NTL_GMP_LIP=on GMP_PREFIX=\"${prefix}\" |
43 43 | } |
44 44 | |
45 45 | post-destroot { |
46 46 | system "cd ${destroot}${prefix}/share/doc && mv NTL tmp && mv tmp ntl" |
47 47 | xinstall -m 0644 ${worksrcpath}/../README \ |
48 48 | ${destroot}${prefix}/share/doc/${name} |
49 49 | xinstall -m 0644 ${worksrcpath}/../doc/copying.txt \ |
50 50 | ${destroot}${prefix}/share/doc/${name}/LICENSE |
51 51 | } |
52 52 | |