source: trunk/dports/math/msieve/Portfile

Last change on this file was 110713, checked in by jmr@…, 4 years ago

msieve: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 110713 2013-09-04 14:24:51Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                msieve
7version             1.51
8categories          math
9license             public-domain Apache-2 zlib BSD
10maintainers         nomaintainer
11description         A library for factoring large integers
12long_description    ${description}
13
14platforms           darwin
15
16homepage            http://www.boo.net/~jasonp/qs.html
17master_sites        sourceforge:project/msieve/msieve/Msieve%20v${version}
18distname            ${name}[strsed ${version} {g/\.//}]
19worksrcdir          ${name}-${version}
20
21checksums           sha1    91288b1b016938a4167f83b012deaaf773f1ea99 \
22                    rmd160  cca48291f5e439b469989c4ad2631a09a3c067bb
23
24depends_lib         port:gmp
25
26patchfiles          patch-Makefile.diff
27
28post-patch {
29    reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Makefile
30    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
31}
32
33use_configure       no
34
35build.env           CFLAGS="${configure.cflags}" \
36                    CPATH="${compiler.cpath}" \
37                    LIBRARY_PATH="${compiler.library_path}" \
38                    MACHINE_FLAGS="${configure.cc_archflags}"
39
40destroot {
41    xinstall -m 755 -d ${destroot}${prefix}/include/msieve \
42        ${destroot}${prefix}/share/doc/${name} \
43        ${destroot}${prefix}/share/${name}/demo
44    xinstall -m 755 ${worksrcpath}/msieve ${destroot}${prefix}/bin
45    eval xinstall -m 644 [glob ${worksrcpath}/libmsieve.*] ${destroot}${prefix}/lib
46    ln -s ${prefix}/lib/libsieve.${version}.dylib ${destroot}${prefix}/lib/libsieve.1.dylib
47    ln -s ${prefix}/lib/libsieve.${version}.dylib ${destroot}${prefix}/lib/libsieve.dylib
48    eval xinstall -m 644 [glob ${worksrcpath}/include/*] \
49        ${destroot}${prefix}/include/msieve
50    xinstall -m 644 -W ${worksrcpath} Readme Readme.qs Readme.nfs \
51        ${destroot}${prefix}/share/doc/${name}
52    xinstall -m 644 -W ${worksrcpath} demo.c \
53        ${destroot}${prefix}/share/${name}/demo
54}
55
56livecheck.type      regex
57livecheck.url       http://sourceforge.net/projects/${name}/files/
58livecheck.regex     {Msieve v([0-9.]+)}
Note: See TracBrowser for help on using the repository browser.