1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

science/tinker: Fix build on non-Intel architectures by adding SSE flags based on architecture

PR:		234223
Reported by:	Piotr Kubaj <pkubaj@anongoth.pl>
This commit is contained in:
Yuri Victorovich 2018-12-21 01:11:00 +00:00
parent f891b45043
commit bb06884290
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=487934
2 changed files with 19 additions and 2 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= tinker
DISTVERSION= 8.4.4
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= science
MASTER_SITES= https://dasher.wustl.edu/tinker/downloads/
@ -16,6 +16,14 @@ LICENSE_FILE= ${WRKSRC}/doc/license.pdf
LICENSE_PERMS= auto-accept # internal academic purposes only, no commercial use
OPTIONS_DEFINE= OPTIMIZED_FFLAGS DOCS EXAMPLES
OPTIONS_DEFINE_amd64= SSE
OPTIONS_DEFINE_i386= SSE
OPTIONS_DEFAULT_amd64= SSE
OPTIONS_DEFAULT_i386= SSE
SSE_MAKE_ARGS= PORT_SIMD_FLAGS="-msse -msse2 -mfpmath=sse"
OPTIMIZED_FFLAGS_DESC= compilation optimizations
WRKSRC= ${WRKDIR}/${PORTNAME}

View File

@ -1,5 +1,14 @@
--- make/Makefile.orig 2018-10-06 22:01:02 UTC
--- make/Makefile.orig 2018-05-01 03:12:05 UTC
+++ make/Makefile
@@ -84,7 +84,7 @@ APBS_LIBS = -lapbsmainroutines -lapbs -l
F77 = gfortran
F77FLAGS = -c
-OPTFLAGS = -Ofast -mssse3 -fopenmp
+OPTFLAGS = -Ofast $(PORT_SIMD_FLAGS) -fopenmp
LIBDIR = -L. -L$(TINKER_LIBDIR)/macos
LIBS =
LIBFLAGS = -crusv
@@ -754,130 +754,130 @@ listing:
cat *.f *.c > tinker.txt