Index: head/biology/spoa/Makefile =================================================================== --- head/biology/spoa/Makefile (revision 566036) +++ head/biology/spoa/Makefile (revision 566037) @@ -1,38 +1,39 @@ # $FreeBSD$ PORTNAME= spoa DISTVERSION= 4.0.7 +PORTREVISION= 2 CATEGORIES= biology MAINTAINER= yuri@FreeBSD.org COMMENT= C++ implementation of the partial order alignment (POA) algorithm LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= bioparser>0:biology/bioparser \ ${LOCALBASE}/include/biosoup/nucleic_acid.hpp:biology/biosoup \ cereal>0:devel/cereal \ - cpu_features>0:devel/cpu_features \ simde>0:devel/simde +LIB_DEPENDS= libcpu_features.so:devel/cpu_features RUN_DEPENDS= cereal>0:devel/cereal TEST_DEPENDS= googletest>0:devel/googletest USES= cmake compiler:c++11-lang localbase:ldflags USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= rvaser CMAKE_ON= BUILD_SHARED_LIBS spoa_optimize_for_portability spoa_build_executable spoa_use_simde spoa_use_simde_nonvec spoa_use_simde_openmp spoa_generate_dispatch CMAKE_OFF= spoa_optimize_for_native LDFLAGS+= -lz -lcpu_features do-test: @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -D${PORTNAME}_build_tests:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${BUILD_WRKSRC}/bin/${PORTNAME}_test .include Index: head/biology/spoa/files/patch-CMakeLists.txt =================================================================== --- head/biology/spoa/files/patch-CMakeLists.txt (revision 566036) +++ head/biology/spoa/files/patch-CMakeLists.txt (revision 566037) @@ -1,107 +1,118 @@ --- CMakeLists.txt.orig 2021-01-15 03:44:02 UTC +++ CMakeLists.txt @@ -44,9 +44,10 @@ if (spoa_use_simde OR endif () endif () -if (NOT TARGET cereal) - add_subdirectory(vendor/cereal EXCLUDE_FROM_ALL) -endif () +#if (NOT TARGET cereal) +# add_subdirectory(vendor/cereal EXCLUDE_FROM_ALL) +#endif () +find_package(cereal REQUIRED) add_library(${PROJECT_NAME} src/alignment_engine.cpp -@@ -55,8 +56,8 @@ add_library(${PROJECT_NAME} +@@ -55,19 +56,19 @@ add_library(${PROJECT_NAME} src/dispatcher.cpp) target_include_directories(${PROJECT_NAME} PUBLIC $ - $ - $ + #$ + #$ $) target_link_libraries(${PROJECT_NAME} - cereal) -@@ -65,9 +66,9 @@ if (BUILD_SHARED_LIBS) +- cereal) ++ cereal::cereal) + if (BUILD_SHARED_LIBS) + set_property(TARGET ${PROJECT_NAME} PROPERTY SOVERSION "7.0.0") endif () if (spoa_generate_dispatch) - if (NOT TARGET cpu_features) - add_subdirectory(vendor/cpu_features EXCLUDE_FROM_ALL) - endif () + #if (NOT TARGET cpu_features) + # add_subdirectory(vendor/cpu_features EXCLUDE_FROM_ALL) + #endif () list(APPEND ARCHITECTURES avx2 sse4.1 sse2) foreach(arch IN LISTS ARCHITECTURES) +@@ -78,7 +79,7 @@ if (spoa_generate_dispatch) + $ + $) + target_link_libraries(${PROJECT_NAME}_${arch} +- cereal) ++ cereal::cereal) + set_target_properties(${PROJECT_NAME}_${arch} PROPERTIES + COMPILE_FLAGS "-m${arch}") + if (BUILD_SHARED_LIBS) @@ -92,8 +93,8 @@ if (spoa_generate_dispatch) ${PROJECT_NAME}_sse4.1 ${PROJECT_NAME}_sse2) - target_link_libraries(${PROJECT_NAME} - cpu_features) + #target_link_libraries(${PROJECT_NAME} + # cpu_features) endif () include(GNUInstallDirs) @@ -110,18 +111,19 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/spoa-1.pc option(spoa_build_executable "Build spoa standalone tool" OFF) if (spoa_build_executable) - if (NOT TARGET biosoup) - add_subdirectory(vendor/bioparser/vendor/biosoup EXCLUDE_FROM_ALL) - endif () - if (NOT TARGET bioparser) - add_subdirectory(vendor/bioparser EXCLUDE_FROM_ALL) - endif () + #if (NOT TARGET biosoup) + # add_subdirectory(vendor/bioparser/vendor/biosoup EXCLUDE_FROM_ALL) + #endif () + #if (NOT TARGET bioparser) + # add_subdirectory(vendor/bioparser EXCLUDE_FROM_ALL) + #endif () add_executable(${PROJECT_NAME}_exe src/main.cpp) target_link_libraries(${PROJECT_NAME}_exe ${PROJECT_NAME} - bioparser - biosoup) + #bioparser + #biosoup + ) target_compile_definitions(${PROJECT_NAME}_exe PRIVATE SPOA_VERSION="v${PROJECT_VERSION}") set_property(TARGET ${PROJECT_NAME}_exe PROPERTY @@ -134,19 +136,19 @@ endif () option(spoa_build_tests "Build spoa unit tests" OFF) if (spoa_build_tests) find_package(GTest REQUIRED) - if (NOT TARGET biosoup) - add_subdirectory(vendor/bioparser/vendor/biosoup EXCLUDE_FROM_ALL) - endif () - if (NOT TARGET bioparser) - add_subdirectory(vendor/bioparser EXCLUDE_FROM_ALL) - endif () + #if (NOT TARGET biosoup) + # add_subdirectory(vendor/bioparser/vendor/biosoup EXCLUDE_FROM_ALL) + #endif () + #if (NOT TARGET bioparser) + # add_subdirectory(vendor/bioparser EXCLUDE_FROM_ALL) + #endif () include_directories(${PROJECT_SOURCE_DIR}/src) add_executable(${PROJECT_NAME}_test test/spoa_test.cpp) target_link_libraries(${PROJECT_NAME}_test ${PROJECT_NAME} - bioparser - biosoup + #bioparser + #biosoup GTest::Main) target_compile_definitions(${PROJECT_NAME}_test PRIVATE SPOA_DATA_PATH="${PROJECT_SOURCE_DIR}/test/data/sample.fastq.gz")