[71116] trunk/dports/math/octave-devel/Portfile

michaelld at macports.org michaelld at macports.org
Wed Sep 1 12:14:54 PDT 2010


Revision: 71116
          http://trac.macports.org/changeset/71116
Author:   michaelld at macports.org
Date:     2010-09-01 12:14:53 -0700 (Wed, 01 Sep 2010)
Log Message:
-----------
* Port 'fltk' is 32-bit only, so remove it from the primary
'depends_lib" and include it after checking for $build_arch to make
sure it's a 32-bit build (i386 or ppc).
* Augmented 'debug' variant to produce more info and not optimize.

Modified Paths:
--------------
    trunk/dports/math/octave-devel/Portfile

Modified: trunk/dports/math/octave-devel/Portfile
===================================================================
--- trunk/dports/math/octave-devel/Portfile	2010-09-01 19:10:52 UTC (rev 71115)
+++ trunk/dports/math/octave-devel/Portfile	2010-09-01 19:14:53 UTC (rev 71116)
@@ -39,7 +39,6 @@
                     port:curl \
                     port:fftw-3 \
                     port:fftw-3-single \
-                    port:fltk \
                     port:ftgl \
                     port:ghostscript \
                     port:glpk \
@@ -55,10 +54,16 @@
                     port:qrupdate \
                     port:SuiteSparse
 
-# allow non-Apple compilers to work with FLTK by removing the -arch
-# flag, which means this port cannot easy compile as universal.
-patchfiles          patch-configure.diff
+if {${build_arch} == "i386" || ${build_arch} == "ppc"} {
+    # FLTK is not 64-bit yet; use it only for 32-bit installs
+    depends_lib-append port:fltk
 
+    # allow non-Apple compilers to work with FLTK by removing the
+    # -arch flag, which means this port cannot easy compile as
+    # universal.
+    patchfiles patch-configure.diff
+}
+
 universal_variant   no
 
 post-patch {
@@ -155,10 +160,18 @@
 }
 
 variant debug description {Produce debugging information in compiled code} {
-    configure.cflags-append    -g
-    configure.cxxflags-append  -g
-    configure.fflags-append    -g
-    configure.objcflags-append -g
+    configure.cflags-delete    -O2
+    configure.cxxflags-delete  -O2
+    configure.fflags-delete    -O2
+    configure.fcflags-delete   -O2
+    configure.f90flags-delete  -O2
+    configure.objcflags-delete -O2
+    configure.cflags-append    -g3 -O0
+    configure.cxxflags-append  -g3 -O0
+    configure.fcflags-append   -g3 -O0
+    configure.f90flags-append  -g3 -O0
+    configure.fflags-append    -g3 -O0
+    configure.objcflags-append -g3 -O0
 }
 
 livecheck.type      regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100901/6ff86cee/attachment.html>


More information about the macports-changes mailing list