diff options
author | miwi <miwi@FreeBSD.org> | 2013-05-15 09:24:16 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2013-05-15 09:24:16 +0800 |
commit | f4259fdbb854015b50b376808231254cf8a664fd (patch) | |
tree | 8e5c1a4056032d39341902f354fb927590b73e69 /science | |
parent | 83bb1fce41acce92d0f38dd54d55e4169a4e6275 (diff) | |
download | freebsd-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')
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() |