aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2013-05-15 09:24:16 +0800
committermiwi <miwi@FreeBSD.org>2013-05-15 09:24:16 +0800
commitf4259fdbb854015b50b376808231254cf8a664fd (patch)
tree8e5c1a4056032d39341902f354fb927590b73e69 /science
parent83bb1fce41acce92d0f38dd54d55e4169a4e6275 (diff)
downloadfreebsd-ports-gnome-f4259fdbb854015b50b376808231254cf8a664fd.tar.gz
freebsd-ports-gnome-f4259fdbb854015b50b376808231254cf8a664fd.tar.zst
freebsd-ports-gnome-f4259fdbb854015b50b376808231254cf8a664fd.zip
- Fix build with amd64
PR: 178583 Submitted by: Ports Fury
Diffstat (limited to 'science')
-rw-r--r--science/avogadro/files/patch-libavogadro__src__extensions__crystallorgraphy__spglib__CMakeLists.txt10
-rw-r--r--science/avogadro/files/patch-libavogadro__src__extensions__swcntbuilder__tubegen__CMakeLists.txt11
2 files changed, 21 insertions, 0 deletions
diff --git a/science/avogadro/files/patch-libavogadro__src__extensions__crystallorgraphy__spglib__CMakeLists.txt b/science/avogadro/files/patch-libavogadro__src__extensions__crystallorgraphy__spglib__CMakeLists.txt
new file mode 100644
index 000000000000..0efa0562de7e
--- /dev/null
+++ b/science/avogadro/files/patch-libavogadro__src__extensions__crystallorgraphy__spglib__CMakeLists.txt
@@ -0,0 +1,10 @@
+--- libavogadro/src/extensions/crystallography/spglib/CMakeLists.txt.orig
++++ libavogadro/src/extensions/crystallography/spglib/CMakeLists.txt
+@@ -20,6 +20,6 @@
+ set_target_properties(spglib PROPERTIES COMPILE_FLAGS "-w")
+
+ # Set -fPIC on x86_64
+-if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
++if(NOT "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i386")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC" )
+ endif()
diff --git a/science/avogadro/files/patch-libavogadro__src__extensions__swcntbuilder__tubegen__CMakeLists.txt b/science/avogadro/files/patch-libavogadro__src__extensions__swcntbuilder__tubegen__CMakeLists.txt
new file mode 100644
index 000000000000..b4b8bf95d059
--- /dev/null
+++ b/science/avogadro/files/patch-libavogadro__src__extensions__swcntbuilder__tubegen__CMakeLists.txt
@@ -0,0 +1,11 @@
+--- libavogadro/src/extensions/swcntbuilder/tubegen/CMakeLists.txt.orig
++++ libavogadro/src/extensions/swcntbuilder/tubegen/CMakeLists.txt
+@@ -19,7 +19,7 @@
+ set_target_properties(tubegen PROPERTIES COMPILE_FLAGS "-w")
+
+ # Set -fPIC on x86_64
+-if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
++if(NOT "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i386")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC" )
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC" )
+ endif()