Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2018 01:11:00 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r487934 - in head/science/tinker: . files
Message-ID:  <201812210111.wBL1B0Cf092545@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Fri Dec 21 01:11:00 2018
New Revision: 487934
URL: https://svnweb.freebsd.org/changeset/ports/487934

Log:
  science/tinker: Fix build on non-Intel architectures by adding SSE flags based on architecture
  
  PR:		234223
  Reported by:	Piotr Kubaj <pkubaj@anongoth.pl>

Modified:
  head/science/tinker/Makefile
  head/science/tinker/files/patch-make_Makefile

Modified: head/science/tinker/Makefile
==============================================================================
--- head/science/tinker/Makefile	Fri Dec 21 00:16:53 2018	(r487933)
+++ head/science/tinker/Makefile	Fri Dec 21 01:11:00 2018	(r487934)
@@ -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}

Modified: head/science/tinker/files/patch-make_Makefile
==============================================================================
--- head/science/tinker/files/patch-make_Makefile	Fri Dec 21 00:16:53 2018	(r487933)
+++ head/science/tinker/files/patch-make_Makefile	Fri Dec 21 01:11:00 2018	(r487934)
@@ -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
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812210111.wBL1B0Cf092545>