source: trunk/dports/math/libtommath/Portfile

Last change on this file was 137213, checked in by khindenburg@…, 2 years ago

libtommath: fix homepage and master_sites

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 137213 2015-06-06 20:40:22Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    libtommath
6version                 0.42.0
7categories              math
8platforms               darwin
9maintainers             mww
10license                 Public-Domain
11
12description             Comprehensive, modular and portable mathematical routines
13long_description        LibTomMath provides highly optimized and portable routines \
14                        for a vast majority of integer based number theoretic \
15                        applications (including public key cryptography).
16
17homepage                http://www.libtom.net/?page=features&newsitems=5&whatfile=ltm
18master_sites    http://www.libtom.net/files/ \
19                                freebsd
20distname                ltm-${version}
21
22checksums               sha1    9b192701cf62b85e9bd65fbb4d622d04cfa5ee0d \
23                                rmd160  9994d60d7e847a066715d8c644ce9b125932bf92
24
25use_bzip2               yes
26patchfiles              patch-makefile
27
28worksrcdir              ${name}-${version}
29
30use_configure   no
31
32variant universal {}
33if {[variant_isset universal]} {
34        set archflags ${configure.universal_cflags}
35} else {
36        set archflags ${configure.cc_archflags}
37}
38
39build.args              LIBPATH=${prefix}/lib \
40                                CC="${configure.cc} ${archflags}"
41
42destroot {
43        xinstall -m 755 -d ${destroot}${prefix}/include/${name}
44        xinstall -m 644 -W ${worksrcpath} tommath.h tommath_class.h \
45                tommath_superclass.h ${destroot}${prefix}/include/${name}
46        xinstall -m 644 -W ${worksrcpath} libtommath.a libtommath.${version}.dylib \
47                ${destroot}${prefix}/lib
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}
57}
58
59livecheck.type  regex
60livecheck.url   ${homepage}
61livecheck.regex ltm-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.