[68220] trunk/dports/science/vis5d/Portfile
takeshi at macports.org
takeshi at macports.org
Fri May 28 20:16:20 PDT 2010
Revision: 68220
http://trac.macports.org/changeset/68220
Author: takeshi at macports.org
Date: 2010-05-28 20:16:16 -0700 (Fri, 28 May 2010)
Log Message:
-----------
vis5d: enabled build on ppc64
Modified Paths:
--------------
trunk/dports/science/vis5d/Portfile
Modified: trunk/dports/science/vis5d/Portfile
===================================================================
--- trunk/dports/science/vis5d/Portfile 2010-05-29 02:47:52 UTC (rev 68219)
+++ trunk/dports/science/vis5d/Portfile 2010-05-29 03:16:16 UTC (rev 68220)
@@ -27,7 +27,8 @@
sha1 14d673f533521ea402cf7bee14b6ebda54466ef8 \
rmd160 d8390deea19ec8bc1da0f27c779afd25dfa1a42a
-depends_build port:pkgconfig
+depends_build port:pkgconfig \
+ port:libtool
depends_lib port:netcdf \
port:ImageMagick \
port:gettext \
@@ -44,6 +45,7 @@
${worksrcpath}/configure
reinplace "s|^ac_save_positional|#ac_save_positional|" \
${worksrcpath}/configure
+ reinplace "s|LIBTOOL='\$\(SHELL\) \$\(top_builddir\)/libtool'|LIBTOOL=${prefix}/bin/glibtool|" ${worksrcpath}/configure
reinplace "s|round|roundv5d|" ${worksrcpath}/src/misc.h
reinplace "s|round|roundv5d|" ${worksrcpath}/src/misc.c
reinplace "s| round| roundv5d|" ${worksrcpath}/src/work.c
@@ -55,11 +57,6 @@
reinplace "s|NULL/'80808080'X/|NULL/X'80808080'/|" ${worksrcpath}/util/igg3d.f
}
-# netcdf4
-#pre-configure {
-# reinplace "s|-lnetcdf \$V5D_LIBS_AUX|-lnetcdf -lhdf5_hl -lhdf5 -lz -lcurl \$V5D_LIBS_AUX|" \
-# ${worksrcpath}/configure
-#}
post-configure {
reinplace -E {s|-arch [^ ]+||g} ${worksrcpath}/vis5d+.pc
if {[variant_isset universal]} {
@@ -74,6 +71,9 @@
-disable-dependency-tracing \
--x-includes=${prefix}/include \
--x-libraries=${prefix}/lib
+if {![variant_isset universal]} {
+ configure.ldflags-append ${configure.cc_archflags}
+}
# seems to use up CPU all the time
# -enable-threads
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100528/b772b598/attachment-0001.html>
More information about the macports-changes
mailing list