[68409] trunk/dports/math/msieve/Portfile
ryandesign at macports.org
ryandesign at macports.org
Wed Jun 2 19:41:15 PDT 2010
Revision: 68409
http://trac.macports.org/changeset/68409
Author: ryandesign at macports.org
Date: 2010-06-02 19:41:12 -0700 (Wed, 02 Jun 2010)
Log Message:
-----------
msieve: update to 1.45; fix inability to find gmp.h (#25105); use build_arch; ensure we're UsingTheRightCompiler
Modified Paths:
--------------
trunk/dports/math/msieve/Portfile
Modified: trunk/dports/math/msieve/Portfile
===================================================================
--- trunk/dports/math/msieve/Portfile 2010-06-03 02:28:14 UTC (rev 68408)
+++ trunk/dports/math/msieve/Portfile 2010-06-03 02:41:12 UTC (rev 68409)
@@ -2,7 +2,7 @@
PortSystem 1.0
name msieve
-version 1.42
+version 1.45
categories math
maintainers nomaintainer
description A library for factoring large integers
@@ -12,31 +12,38 @@
homepage http://www.boo.net/~jasonp/qs.html
master_sites sourceforge
-distname ${name}142
+distname ${name}[strsed ${version} {g/\.//}]
worksrcdir ${name}-${version}
-checksums md5 f9039b436aa022277d1ca44162348648 \
- sha1 ccc474144e4b93439531b6617726200884472a8d \
- rmd160 a86af36032c91f18e7302ccf5afbdd48ed6a145d
+checksums md5 12fdbc862ca53550763b87d6f0956a87 \
+ sha1 0059e518371f8127415ff664a30845ad60388232 \
+ rmd160 7f0456d992a58670c345e3e8daf751b1a80025f0
depends_lib port:gmp
+patchfiles patch-Makefile
+
+post-patch {
+ reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Makefile
+}
+
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}
+build.args CPPFLAGS="${configure.cppflags}" \
+ LDFLAGS="${configure.ldflags}" \
+ MACHINE_FLAGS="${configure.cc_archflags}"
+
+switch ${build_arch} {
+ i386 {
+ build.target x86
+ }
+ x86_64 {
+ build.target x86_64
+# build.args-append MACHINE_FLAGS="-m64"
+ }
+ default {
+ build.target generic
+ }
}
destroot {
@@ -50,10 +57,6 @@
${destroot}${prefix}/share/doc/${name}
}
-platform darwin i386 {
- set msieve_build_arch x86
-}
-
livecheck.type regex
livecheck.url http://sourceforge.net/projects/${name}/files/
livecheck.regex {Msieve v([0-9.]+)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100602/a6559714/attachment.html>
More information about the macports-changes
mailing list