early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

88
externals/vcpkg/ports/libsbml/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,88 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sbmlteam/libsbml
REF 118ffbf11f1a5245cc544c1eac71019d979ecb20 #libSBML-5.19.0
SHA512 7fe8b4d594876c6408e01c646187cb1587d0b4e12707a43286150d4e4646841e547bde971de917de1cdfbbb9365172aeac43c8e02f7d354400f9166f0f1c2c3d
HEAD_REF development
)
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_RUNTIME)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" STATIC_LIBRARY)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
comp ENABLE_COMP
fbc ENABLE_FBC
groups ENABLE_GROUPS
layout ENABLE_LAYOUT
multi ENABLE_MULTI
qual ENABLE_QUAL
render ENABLE_RENDER
render ENABLE_LAYOUT
bzip2 WITH_BZIP2
zlib WITH_ZLIB
test WITH_CHECK
namespace WITH_CPP_NAMESPACE
)
# Handle conflict features
set(WITH_EXPAT OFF)
if ("expat" IN_LIST FEATURES)
set(WITH_EXPAT ON)
endif()
set(WITH_LIBXML OFF)
if ("libxml2" IN_LIST FEATURES)
set(WITH_LIBXML ON)
endif()
if (WITH_EXPAT AND WITH_LIBXML)
message("Feature expat conflict with feature libxml2, currently using libxml2...")
set(WITH_EXPAT OFF)
endif()
if ("test" IN_LIST FEATURES AND WIN32)
message(FATAL_ERROR "Feature test only support UNIX.")
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
-DWITH_EXPAT=${WITH_EXPAT}
-DWITH_LIBXML=${WITH_LIBXML}
-DENABLE_L3V2EXTENDEDMATH:BOOL=ON
-DWITH_STATIC_RUNTIME=${STATIC_RUNTIME}
-DLIBSBML_SKIP_SHARED_LIBRARY=${STATIC_LIBRARY}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(GLOB TXT_FILES "${CURRENT_PACKAGES_DIR}/debug/*.txt")
if (TXT_FILES)
file(REMOVE ${TXT_FILES})
endif()
file(GLOB TXT_FILES "${CURRENT_PACKAGES_DIR}/*.txt")
if (TXT_FILES)
file(REMOVE ${TXT_FILES})
endif()
if (EXISTS "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
endif()
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/README.md")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/README.md")
endif()
if(EXISTS "${CURRENT_PACKAGES_DIR}/README.md")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/README.md")
endif()
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_fixup_pkgconfig()

82
externals/vcpkg/ports/libsbml/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,82 @@
{
"name": "libsbml",
"version": "5.19.0",
"port-version": 2,
"description": "A library for reading / writing SBML files",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"default-features": [
"comp",
"expat",
"fbc",
"groups",
"layout",
"libxml2",
"render"
],
"features": {
"bzip2": {
"description": "bz2 compression support for libsbml",
"dependencies": [
"bzip2"
]
},
"comp": {
"description": "support for Hierarchical Model Composition"
},
"expat": {
"description": "libsbml using expat parser",
"dependencies": [
"expat"
]
},
"fbc": {
"description": "support for Flux Balance Constrant Modeling"
},
"groups": {
"description": "support for Groups"
},
"layout": {
"description": "support for Pathway Layouts"
},
"libxml2": {
"description": "libsbml using libxml2 parser",
"dependencies": [
"libxml2"
]
},
"multi": {
"description": "support for Multistate Modeling"
},
"namespace": {
"description": "Build with the WITH_CPP_NAMESPACE option set to on"
},
"qual": {
"description": "support for Qualitative Modeling"
},
"render": {
"description": "support for Rendering information"
},
"test": {
"description": "Unit testing of libSBMLs implementation",
"dependencies": [
"check"
]
},
"zlib": {
"description": "gzip compression support for libsbml",
"dependencies": [
"zlib"
]
}
}
}