[55783] trunk/dports/math

blb at macports.org blb at macports.org
Tue Aug 18 16:04:57 PDT 2009


Revision: 55783
          http://trac.macports.org/changeset/55783
Author:   blb at macports.org
Date:     2009-08-18 16:04:54 -0700 (Tue, 18 Aug 2009)
Log Message:
-----------
New port - math/msieve, A library for factoring large integers

Added Paths:
-----------
    trunk/dports/math/msieve/
    trunk/dports/math/msieve/Portfile

Added: trunk/dports/math/msieve/Portfile
===================================================================
--- trunk/dports/math/msieve/Portfile	                        (rev 0)
+++ trunk/dports/math/msieve/Portfile	2009-08-18 23:04:54 UTC (rev 55783)
@@ -0,0 +1,56 @@
+# $Id$
+
+PortSystem          1.0
+name                msieve
+version             1.42
+categories          math
+maintainers         blb openmaintainer
+description         A library for factoring large integers
+long_description    ${description}
+
+platforms           darwin
+
+homepage            http://www.boo.net/~jasonp/qs.html
+master_sites        sourceforge
+distname            ${name}142
+worksrcdir          ${name}-${version}
+
+checksums           md5     f9039b436aa022277d1ca44162348648 \
+                    sha1    ccc474144e4b93439531b6617726200884472a8d \
+                    rmd160  a86af36032c91f18e7302ccf5afbdd48ed6a145d
+
+depends_lib         port:gmp
+
+use_configure       no
+
+set msieve_build_arch generic
+set msieve_opt_flags  "-O3 -fomit-frame-pointer -DNDEBUG"
+pre-build {
+   if {[info exists build_arch]} {
+      if {${build_arch} eq "i386"} {
+         set msieve_build_arch x86
+      } elseif {${build_arch} eq "x86_64"} {
+         set msieve_build_arch x86_64
+         set msieve_opt_flags "-O3 -fomit-frame-pointer -m64 -DNDEBUG"
+      }
+   }
+   build.target   ${msieve_build_arch}
+   build.args     GMP=1 OPT_FLAGS="${msieve_opt_flags}" \
+                  LDFLAGS=${configure.ldflags}
+}
+
+destroot {
+   xinstall -m 755 -d ${destroot}${prefix}/include/msieve \
+      ${destroot}${prefix}/share/doc/${name}
+   xinstall -m 755 ${worksrcpath}/msieve ${destroot}${prefix}/bin
+   xinstall -m 644 ${worksrcpath}/libmsieve.a ${destroot}${prefix}/lib
+   eval xinstall -m 644 [glob ${worksrcpath}/include/*] \
+      ${destroot}${prefix}/include/msieve
+   xinstall -m 644 -W ${worksrcpath} Readme Readme.qs Readme.nfs \
+      ${destroot}${prefix}/share/doc/${name}
+}
+
+platform darwin i386 {
+   set msieve_build_arch x86
+}
+


Property changes on: trunk/dports/math/msieve/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090818/cd6e7ed7/attachment-0001.html>


More information about the macports-changes mailing list