git: d80f50246cbf - main - biology/libcombine: Fix build with libsbml 5.20.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 27 May 2023 04:30:45 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d80f50246cbf0cafe274057987c9f34811ce21f5

commit d80f50246cbf0cafe274057987c9f34811ce21f5
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-05-27 04:13:56 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-05-27 04:24:05 +0000

    biology/libcombine: Fix build with libsbml 5.20.0
    
    ===>  Configuring for libcombine-0.2.20
    ===>  Performing out-of-source build
    /bin/mkdir -p /wrkdirs/usr/ports/biology/libcombine/work/.build
    -- The CXX compiler identification is Clang 13.0.0
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/local/libexec/ccache/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Check for working CXX compiler: /usr/local/libexec/ccache/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so
    -- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so - found
    -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
    CMake Error at /usr/local/share/cmake/Modules/Internal/CheckSourceCompiles.cmake:51 (message):
      check_source_compiles: C: needs to be enabled before use.
    Call Stack (most recent call first):
      /usr/local/share/cmake/Modules/CheckCSourceCompiles.cmake:76 (cmake_check_source_compiles)
      CMakeModules/FindLIBXML.cmake:115 (CHECK_C_SOURCE_COMPILES)
      /usr/local/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      /usr/local/lib/cmake/sbml-static-config.cmake:14 (find_dependency)
      CMakeModules/FindLIBSBML.cmake:42 (find_package)
      CMakeLists.txt:308 (find_package)
    
    -- LIBXML_LIBXML_TEST =
    CMake Error at /usr/local/share/cmake/Modules/Internal/CheckSourceCompiles.cmake:51 (message):
      check_source_compiles: C: needs to be enabled before use.
    Call Stack (most recent call first):
      /usr/local/share/cmake/Modules/CheckCSourceCompiles.cmake:76 (cmake_check_source_compiles)
      CMakeModules/FindLIBXML.cmake:125 (CHECK_C_SOURCE_COMPILES)
      /usr/local/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      /usr/local/lib/cmake/sbml-static-config.cmake:14 (find_dependency)
      CMakeModules/FindLIBSBML.cmake:42 (find_package)
      CMakeLists.txt:308 (find_package)
    
    -- LIBXML_LIBXML_TEST2 =
    CMake Error at CMakeModules/FindLIBXML.cmake:132 (message):
      Unable to compile a test executable against LIBXML
    
          LIBXML_INCLUDE_DIR = /usr/local/include/libxml2
          LIBXML_LIBRARY     = /usr/local/lib/libxml2.so
    
    Call Stack (most recent call first):
      /usr/local/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      /usr/local/lib/cmake/sbml-static-config.cmake:14 (find_dependency)
      CMakeModules/FindLIBSBML.cmake:42 (find_package)
      CMakeLists.txt:308 (find_package)
    
    -- Configuring incomplete, errors occurred!
    *** Error code 1
    
    Stop.
---
 biology/libcombine/files/patch-CMakeLists.txt | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/biology/libcombine/files/patch-CMakeLists.txt b/biology/libcombine/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..bec79c56523e
--- /dev/null
+++ b/biology/libcombine/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2022-12-07 09:35:06 UTC
++++ CMakeLists.txt
+@@ -44,7 +44,7 @@ set(LIBCOMBINE_VERSION "${LIBCOMBINE_VERSION_MAJOR}.${
+ set(PACKAGE_NAME "libCombine")
+ 
+ project(libCombine VERSION "${LIBCOMBINE_VERSION_MAJOR}.${LIBCOMBINE_VERSION_MINOR}.${LIBCOMBINE_VERSION_PATCH}"
+-                   LANGUAGES CXX)
++                   LANGUAGES C CXX)
+ 
+ set(CMAKE_CXX_STANDARD 11)
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)