-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[libsbml] New port for libsbml #13524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
af73b0e
added libsbml port which works on windows x86 and x64. Tried it on li…
d21c7df
Merge branch 'master' of https://github.com/CiaranWelsh/vcpkg
1c3fd8f
add location to linux licence in sbml
db4ab75
fixed libsbml portfile for linux
ec2f434
Merge branch 'master' of https://github.com/microsoft/vcpkg
e7a6078
added vckpg port for libsbml. Referencing vcpkg github issue #12558 a…
324c1c3
Merge branch 'master' of https://github.com/microsoft/vcpkg
198d49d
Merge branch 'master' of https://github.com/microsoft/vcpkg
1328852
Update ports/openblas/portfile.cmake
JackBoosY 731dafa
correct cmake
55eec8b
does not support uwp
4491f26
Merge branch 'master' of https://github.com/microsoft/vcpkg
add0e28
Merge remote-tracking branch 'origin/master' into HEAD
BillyONeal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| Source: libsbml | ||
| Version: 5.18.0 | ||
| Description: A library for reading / writing SBML files | ||
| Default-Features: expat,comp,fbc,groups,layout,render,libxml2 | ||
| Supports: !uwp | ||
|
|
||
| Feature: test | ||
| Description: Unit testing of libSBMLs implementation | ||
| Build-Depends: check | ||
|
|
||
| Feature: bzip2 | ||
| Description: bz2 compression support for libsbml | ||
| Build-Depends: bzip2 | ||
|
|
||
| Feature: zlib | ||
| Description: gzip compression support for libsbml | ||
| Build-Depends: zlib | ||
|
|
||
| Feature: expat | ||
| Description: libsbml using expat parser | ||
| Build-Depends: expat | ||
|
|
||
| Feature: libxml2 | ||
| Description: libsbml using libxml2 parser | ||
| Build-Depends: libxml2 | ||
|
|
||
| Feature: comp | ||
| Description: support for Hierarchical Model Composition | ||
|
|
||
| Feature: fbc | ||
| Description: support for Flux Balance Constrant Modeling | ||
|
|
||
| Feature: groups | ||
| Description: support for Groups | ||
|
|
||
| Feature: layout | ||
| Description: support for Pathway Layouts | ||
|
|
||
| Feature: multi | ||
| Description: support for Multistate Modeling | ||
|
|
||
| Feature: qual | ||
| Description: support for Qualitative Modeling | ||
|
|
||
| Feature: render | ||
| Description: support for Rendering information | ||
|
|
||
| Feature: namespace | ||
| Description: Build with the WITH_CPP_NAMESPACE option set to on | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
| index eb692cf..11158db 100644 | ||
| --- a/src/CMakeLists.txt | ||
| +++ b/src/CMakeLists.txt | ||
| @@ -524,7 +524,7 @@ INSTALL( | ||
| endif() | ||
|
|
||
|
|
||
| -endif() | ||
| +else() | ||
|
|
||
| add_library (${LIBSBML_LIBRARY}-static STATIC ${LIBSBML_SOURCES} ) | ||
|
|
||
| @@ -560,7 +560,7 @@ INSTALL(FILES | ||
| DESTINATION ${PACKAGE_CONFIG_DIR} | ||
| ) | ||
| endif() | ||
| - | ||
| +endif() | ||
| ############################################################################## | ||
| # | ||
| # add native tests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| vcpkg_download_distfile(ARCHIVE | ||
| URLS "https://sourceforge.net/projects/sbml/files/libsbml/5.18.0/stable/libSBML-5.18.0-core-plus-packages-src.tar.gz/download" | ||
| FILENAME "libSBML-5.18.0.zip" | ||
| SHA512 49dedaa2fcd2077e7389a8f940adf931d80aa7a8f9d57330328372d2ac8ebcaeb03a20524df2fe0f1c6933587904613754585076c46e6cb5d6f7a001f427185b | ||
| ) | ||
|
|
||
| vcpkg_extract_source_archive_ex( | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| ARCHIVE ${ARCHIVE} | ||
| PATCHES fix-linkage-type.patch | ||
| ) | ||
|
|
||
| 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 | ||
| 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_configure_cmake( | ||
| SOURCE_PATH ${SOURCE_PATH} | ||
| PREFER_NINJA # Disable this option if project cannot be built with Ninja | ||
| 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_install_cmake() | ||
|
|
||
| vcpkg_fixup_cmake_targets(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() | ||
|
|
||
| file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.