From owner-svn-ports-head@freebsd.org Fri Dec 21 01:11:01 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9103513371DA; Fri, 21 Dec 2018 01:11:01 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3842D76C47; Fri, 21 Dec 2018 01:11:01 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 294CD5FDA; Fri, 21 Dec 2018 01:11:01 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wBL1B1st092546; Fri, 21 Dec 2018 01:11:01 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wBL1B0Cf092545; Fri, 21 Dec 2018 01:11:00 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201812210111.wBL1B0Cf092545@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Fri, 21 Dec 2018 01:11:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r487934 - in head/science/tinker: . files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/science/tinker: . files X-SVN-Commit-Revision: 487934 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 3842D76C47 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.955,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Dec 2018 01:11:01 -0000 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 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