[149294] trunk/dports/science/apbs/files/patch-contrib-tabipb-CMakeLists. txt.diff
dstrubbe at macports.org
dstrubbe at macports.org
Thu Jun 9 17:54:29 PDT 2016
Revision: 149294
https://trac.macports.org/changeset/149294
Author: dstrubbe at macports.org
Date: 2016-06-09 17:54:29 -0700 (Thu, 09 Jun 2016)
Log Message:
-----------
apbs: Add forgotten patchfile.
Added Paths:
-----------
trunk/dports/science/apbs/files/patch-contrib-tabipb-CMakeLists.txt.diff
Added: trunk/dports/science/apbs/files/patch-contrib-tabipb-CMakeLists.txt.diff
===================================================================
--- trunk/dports/science/apbs/files/patch-contrib-tabipb-CMakeLists.txt.diff (rev 0)
+++ trunk/dports/science/apbs/files/patch-contrib-tabipb-CMakeLists.txt.diff 2016-06-10 00:54:29 UTC (rev 149294)
@@ -0,0 +1,31 @@
+--- contrib/tabipb/CMakeLists.txt.orig 2016-06-09 20:42:21.000000000 -0400
++++ contrib/tabipb/CMakeLists.txt 2016-06-09 20:44:22.000000000 -0400
+@@ -19,26 +19,8 @@
+ # FFLAGS depend on the compiler
+ get_filename_component (Fortran_COMPILER_NAME ${CMAKE_Fortran_COMPILER} NAME)
+
+-if (Fortran_COMPILER_NAME MATCHES "gfortran.*")
+- # gfortran
+- set (CMAKE_Fortran_FLAGS_RELEASE "-funroll-all-loops -fno-f2c -O3")
+- set (CMAKE_Fortran_FLAGS_DEBUG "-fno-f2c -O0 -g")
+-elseif (Fortran_COMPILER_NAME MATCHES "ifort.*")
+- # ifort (untested)
+- set (CMAKE_Fortran_FLAGS_RELEASE "-f77rtl -O3")
+- set (CMAKE_Fortran_FLAGS_DEBUG "-f77rtl -O0 -g")
+-elseif (Fortran_COMPILER_NAME MATCHES "g77")
+- # g77
+- set (CMAKE_Fortran_FLAGS_RELEASE "-funroll-all-loops -fno-f2c -O3 -m32")
+- set (CMAKE_Fortran_FLAGS_DEBUG "-fno-f2c -O0 -g -m32")
+-else (Fortran_COMPILER_NAME MATCHES "gfortran.*")
+- message ("CMAKE_Fortran_COMPILER full path: " ${CMAKE_Fortran_COMPILER})
+- message ("Fortran compiler: " ${Fortran_COMPILER_NAME})
+- message ("No optimized Fortran compiler flags are known, we just try -O2...")
+- set (CMAKE_Fortran_FLAGS_RELEASE "-O2")
+- set (CMAKE_Fortran_FLAGS_DEBUG "-O0 -g")
+-endif (Fortran_COMPILER_NAME MATCHES "gfortran.*")
+-
++set (CMAKE_Fortran_FLAGS_RELEASE "FCFLAGS")
++set (CMAKE_Fortran_FLAGS_DEBUG "FCFLAGS")
+
+ set (LIBFILES src/tabipb.f90 src/var_modules.f90 src/treecode3d_pb.f
+ src/readin.f90 src/dgmres_dep.f)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160609/ac7e576f/attachment.html>
More information about the macports-changes
mailing list