diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-06-09 23:37:35 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-09 23:37:35 -0700 |
| commit | ad16249d6a401f090804df77e8e2f2c8d6a86c5c (patch) | |
| tree | 9b36098cb8f93fd11441744705d0918dc7a8800e | |
| parent | b5537913dee223177aeb71eb17cae4be92a0febd (diff) | |
| parent | fb6eb34298c8c01d9ec10b194f1ca40debf73e44 (diff) | |
| download | vcpkg-ad16249d6a401f090804df77e8e2f2c8d6a86c5c.tar.gz vcpkg-ad16249d6a401f090804df77e8e2f2c8d6a86c5c.zip | |
Merge pull request #1256 from atkawa7/patch-2
SUNDIALS #1135
| -rw-r--r-- | ports/sundials/CONTROL | 3 | ||||
| -rw-r--r-- | ports/sundials/portfile.cmake | 49 |
2 files changed, 52 insertions, 0 deletions
diff --git a/ports/sundials/CONTROL b/ports/sundials/CONTROL new file mode 100644 index 000000000..b1f0c349b --- /dev/null +++ b/ports/sundials/CONTROL @@ -0,0 +1,3 @@ +Source: sundials +Version: 2.7.0 +Description: SUNDIALS (SUite of Nonlinear and DIfferential/ALgebraic equation Solvers) diff --git a/ports/sundials/portfile.cmake b/ports/sundials/portfile.cmake new file mode 100644 index 000000000..141cb3b11 --- /dev/null +++ b/ports/sundials/portfile.cmake @@ -0,0 +1,49 @@ +include(vcpkg_common_functions) + +set(ARCHIVE_NAME "sundials-2.7.0") +set(SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/src/${ARCHIVE_NAME}") + +vcpkg_download_distfile(ARCHIVE_FILE + URLS "https://computation.llnl.gov/projects/sundials/download/${ARCHIVE_NAME}.tar.gz" + FILENAME "${ARCHIVE_NAME}.tar.gz" + SHA512 c86c167538065a4109b36ae7c8f60f3d92184133cfa661b5acfccee052c38f40be865412a1746bb57907b61602c212c0f15e1e30ef29e8a49db6d46a75a28e69 +) +vcpkg_extract_source_archive(${ARCHIVE_FILE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS -DEXAMPLES_ENABLE=OFF +) + +vcpkg_install_cmake(DISABLE_PARALLEL) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +file(GLOB REMOVE_DLLS + "${CURRENT_PACKAGES_DIR}/debug/lib/*.dll" + "${CURRENT_PACKAGES_DIR}/lib/*.dll" +) + +file(GLOB DEBUG_DLLS + "${CURRENT_PACKAGES_DIR}/debug/lib/*.dll" +) + +file(GLOB DLLS + "${CURRENT_PACKAGES_DIR}/lib/*.dll" +) + +if(DLLS) + file(INSTALL ${DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/bin) +endif() + +if(DEBUG_DLLS) + file(INSTALL ${DEBUG_DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin) +endif() + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/sundials RENAME copyright) + +if(REMOVE_DLLS) + file(REMOVE ${REMOVE_DLLS}) +endif() + +vcpkg_copy_pdbs() |
