[140779] trunk/dports/science/xcrysden/Portfile
dstrubbe at macports.org
dstrubbe at macports.org
Fri Oct 2 10:45:29 PDT 2015
Revision: 140779
https://trac.macports.org/changeset/140779
Author: dstrubbe at macports.org
Date: 2015-10-02 10:45:29 -0700 (Fri, 02 Oct 2015)
Log Message:
-----------
xcrysden: Fix build for gcc 4.2 on OSX 10.6.8. Use compiler.cflags and compiler.fcflags rather than just setting from scratch.
Modified Paths:
--------------
trunk/dports/science/xcrysden/Portfile
Modified: trunk/dports/science/xcrysden/Portfile
===================================================================
--- trunk/dports/science/xcrysden/Portfile 2015-10-02 17:18:11 UTC (rev 140778)
+++ trunk/dports/science/xcrysden/Portfile 2015-10-02 17:45:29 UTC (rev 140779)
@@ -72,11 +72,16 @@
patch-Tcl-fs-FS_Multi.tcl.diff
configure {
+ configure.optflags -O3
+ configure.cflags-append -DUSE_INTERP_RESULT
+ if {[string match "*gcc-4.2" ${configure.compiler}]} {
+ configure.cflags-append -DXC_HAVE_NO_GETLINE
+ }
system -W ${worksrcpath} "echo '
CC=${configure.cc}
-CFLAGS=-O3 -DUSE_INTERP_RESULT
+CFLAGS=${configure.cflags}
FC=${configure.fc}
-FFLAGS=-O3
+FFLAGS=${configure.fcflags}
COMPILE_TCLTK=no
COMPILE_MESA=no
COMPILE_FFTW=no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151002/debf5337/attachment.html>
More information about the macports-changes
mailing list