Ticket #27093: libtommath-0.42.0.2.diff
File libtommath-0.42.0.2.diff, 2.3 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago) |
---|
-
Portfile
3 3 PortSystem 1.0 4 4 5 5 name libtommath 6 version 0.4 06 version 0.42.0 7 7 categories math 8 8 platforms darwin 9 9 maintainers mww 10 license Public-Domain 11 10 12 description Comprehensive, modular and portable mathematical routines 11 13 long_description LibTomMath provides highly optimized and portable routines \ 12 14 for a vast majority of integer based number theoretic \ 13 15 applications (including public key cryptography). 14 16 15 homepage http://math.libtomcrypt.com/ 16 master_sites http://libtom.org/files/ \ 17 http://www.atarininja.org/~wxs/distfiles/ \ 17 homepage http://www.libtom.org/?page=features&whatfile=ltm 18 master_sites http://www.libtom.org/files/ \ 18 19 freebsd 19 20 distname ltm-${version} 20 checksums sha1 439899c06444c363eee527f75447d189ee4f93ba 21 22 checksums sha1 9b192701cf62b85e9bd65fbb4d622d04cfa5ee0d \ 23 rmd160 9994d60d7e847a066715d8c644ce9b125932bf92 24 21 25 use_bzip2 yes 22 26 patchfiles patch-makefile 23 27 … … 25 29 26 30 use_configure no 27 31 28 build.args LIBDIR=${prefix}/lib 32 variant universal {} 33 if {[variant_isset universal]} { 34 set archflags ${configure.universal_cflags} 35 } else { 36 set archflags ${configure.cc_archflags} 37 } 29 38 39 build.args LIBPATH=${prefix}/lib \ 40 CC="${configure.cc} ${archflags}" 41 30 42 destroot { 31 43 xinstall -m 755 -d ${destroot}${prefix}/include/${name} 32 44 xinstall -m 644 -W ${worksrcpath} tommath.h tommath_class.h \ 33 45 tommath_superclass.h ${destroot}${prefix}/include/${name} 34 46 xinstall -m 644 -W ${worksrcpath} libtommath.a libtommath.${version}.dylib \ 35 47 ${destroot}${prefix}/lib 36 system "cd ${destroot}${prefix}/lib \ 37 && ln -s libtommath.${version}.dylib libtommath.0.dylib \ 38 && ln -s libtommath.${version}.dylib libtommath.dylib" 48 ln -s libtommath.${version}.dylib ${destroot}${prefix}/lib/libtommath.0.dylib 49 ln -s libtommath.${version}.dylib ${destroot}${prefix}/lib/libtommath.dylib 50 51 set docdir ${destroot}${prefix}/share/doc/${name} 52 xinstall -d ${docdir} 53 xinstall -m 644 -W ${worksrcpath} \ 54 LICENSE \ 55 changes.txt \ 56 ${docdir} 39 57 } 40 58 41 platform darwin 8 { 42 build.args-append CC=/usr/bin/gcc-4.0 43 } 44 59 livecheck.type regex 60 livecheck.url ${homepage} 61 livecheck.regex ltm-(\[0-9.\]+)${extract.suffix}