Index: head/biology/hhsuite/Makefile =================================================================== --- head/biology/hhsuite/Makefile (revision 502243) +++ head/biology/hhsuite/Makefile (revision 502244) @@ -1,26 +1,32 @@ # $FreeBSD$ PORTNAME= hhsuite DISTVERSIONPREFIX= v DISTVERSION= 3.2.0 CATEGORIES= biology science MAINTAINER= yuri@FreeBSD.org COMMENT= Remote protein homology detection suite LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= openmpi>0:net/openmpi LIB_DEPENDS= libomp.so:devel/openmp RUN_DEPENDS= openmpi>0:net/openmpi USES= cmake perl5 python shebangfix SHEBANG_GLOB= *.pl *.py USE_GITHUB= yes GH_ACCOUNT= soedinglab GH_PROJECT= hh-suite LDFLAGS+= -Wl,-rpath,${LOCALBASE}/mpi/openmpi/lib -L${LOCALBASE}/mpi/openmpi/lib -lmpi # force linking to openmpi, and not to mpich +.include + +.if ${ARCH} == amd64 || ${ARCH} == i386 +CMAKE_ON= HAVE_SSE2 +.endif + .include Index: head/biology/hhsuite/files/patch-src_CMakeLists.txt =================================================================== --- head/biology/hhsuite/files/patch-src_CMakeLists.txt (nonexistent) +++ head/biology/hhsuite/files/patch-src_CMakeLists.txt (revision 502244) @@ -0,0 +1,30 @@ +--- src/CMakeLists.txt.orig 2019-04-01 04:04:44 UTC ++++ src/CMakeLists.txt +@@ -2,20 +2,26 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") + set(CHECK_MPI 1 CACHE BOOL "Check MPI availability") + + if (${HAVE_AVX2}) ++ MESSAGE(STATUS "SIMD: HAVE_AVX2 is set") + ADD_DEFINITIONS("-DAVX2") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mavx2 -Wa,-q") + elseif (${HAVE_SSE2}) ++ MESSAGE(STATUS "SIMD: HAVE_SSE2 is set") + ADD_DEFINITIONS("-DSSE") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse -msse2") + else () ++ MESSAGE(STATUS "SIMD: No HAVE_AVX2 or HAVE_SSE2 are set, trying to detect them") + include(CheckSSEFeatures) + ADD_DEFINITIONS(${CXX_DFLAGS}) + if (${HAVE_AVX2_EXTENSIONS}) ++ MESSAGE(STATUS "SIMD: Found AVX2") + ADD_DEFINITIONS("-DAVX2") + elseif (${HAVE_SSE2_EXTENSIONS}) ++ MESSAGE(STATUS "SIMD: Found SSE2") + ADD_DEFINITIONS("-DSSE") + else () +- message(FATAL_ERROR "At least SSE2 instruction set support is required! CMake will exit.") ++ #message(FATAL_ERROR "At least SSE2 instruction set support is required! CMake will exit.") ++ message(STATUS "SIMD: This platform doesn't have a supported SIMD instruction set, expect it to be slow.") + endif (${HAVE_AVX2_EXTENSIONS}) + endif () + Property changes on: head/biology/hhsuite/files/patch-src_CMakeLists.txt ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property