[46283] trunk/dports/math/mapm/Portfile

jmpp at macports.org jmpp at macports.org
Sun Feb 1 19:03:21 PST 2009


Revision: 46283
          http://trac.macports.org/changeset/46283
Author:   jmpp at macports.org
Date:     2009-02-01 19:03:21 -0800 (Sun, 01 Feb 2009)
Log Message:
-----------

Incorporate recommendations on macports-dev@:

 * use use_parallel_build since the port seems to support it;
 * switch to build.args from build.cmd and pass ${configure.cc} as the compiler to use for better abstraction;
 * rework the destroot stage to be more efficient;
 * increase revision since the installation layout does change a bit.

Modified Paths:
--------------
    trunk/dports/math/mapm/Portfile

Modified: trunk/dports/math/mapm/Portfile
===================================================================
--- trunk/dports/math/mapm/Portfile	2009-02-02 02:53:07 UTC (rev 46282)
+++ trunk/dports/math/mapm/Portfile	2009-02-02 03:03:21 UTC (rev 46283)
@@ -4,12 +4,13 @@
 
 name    mapm
 version    4.9.5
+revision   1
 categories    math science
 platforms	darwin
 maintainers	jmpp openmaintainer
 
 description    A Portable Arbitrary Precision Math Library in C.
-long_description    MAMP is a set of functions that allow the user \
+long_description    MAPM is a set of functions that allow the user \
                     to perform math to any level of accuracy that is desired. \
                     The precision of a number is only limited by 'INT_MAX' \
                     and available memory.
@@ -21,19 +22,23 @@
              rmd160 f4e39962410ea4f9a0d85a3e07b7421e9795d6cb
 
 use_configure    no
+use_parallel_build  yes
 
 worksrcdir   ${name}_${version}
-build.cmd    make -f makefile.osx
+build.args   -f makefile.osx \
+             CC=${configure.cc}
 
 destroot {
-    copy ${worksrcpath}/m_apm.h ${destroot}${prefix}/include
-    copy ${worksrcpath}/libmapm.a ${destroot}${prefix}/lib
-    xinstall -d -m 755 ${destroot}${prefix}/share/${name}
-    copy ${worksrcpath}/DOCS ${destroot}${prefix}/share/${name}/
-    copy ${worksrcpath}/MULTI_THREAD ${destroot}${prefix}/share/${name}/
-    copy ${worksrcpath}/PI_DEMO ${destroot}${prefix}/share/${name}/
-    copy ${worksrcpath}/README ${destroot}${prefix}/share/${name}
-    foreach prog  {calc primenum validate} {
-        copy ${worksrcpath}/$prog ${destroot}${prefix}/bin
+    xinstall -m 755 -W ${worksrcpath} \
+        calc primenum validate \
+        ${destroot}${prefix}/bin
+    xinstall -m 644 ${worksrcpath}/m_apm.h ${destroot}${prefix}/include
+    xinstall -m 644 ${worksrcpath}/libmapm.a ${destroot}${prefix}/lib
+    xinstall -d -m 755 \
+        ${destroot}${prefix}/share/${name} \
+        ${destroot}${prefix}/share/doc/${name}
+    foreach item {DOCS MULTI_THREAD PI_DEMO README} {
+        copy ${worksrcpath}/${item} ${destroot}${prefix}/share/${name}
     }
+    ln -s ../${name}/DOCS ${destroot}${prefix}/share/doc/${name}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090201/0b813e80/attachment.html>


More information about the macports-changes mailing list