diff options
Diffstat (limited to 'vcpkg/ports/coin-or-ipopt')
| -rw-r--r-- | vcpkg/ports/coin-or-ipopt/portfile.cmake | 39 | ||||
| -rw-r--r-- | vcpkg/ports/coin-or-ipopt/vcpkg.json | 11 |
2 files changed, 50 insertions, 0 deletions
diff --git a/vcpkg/ports/coin-or-ipopt/portfile.cmake b/vcpkg/ports/coin-or-ipopt/portfile.cmake new file mode 100644 index 0000000..17a6370 --- /dev/null +++ b/vcpkg/ports/coin-or-ipopt/portfile.cmake @@ -0,0 +1,39 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO coin-or/Ipopt + REF ec43e37a06054246764fb116e50e3e30c9ada089 + SHA512 f5b30e81b4a1a178e9a0e2b51b4832f07441b2c3e9a2aa61a6f07807f94185998e985fcf3c34d96fbfde78f07b69f2e0a0675e1e478a4e668da6da60521e0fd6 + HEAD_REF master +) + # --with-precision floating-point precision to use: single or double + # (default) + # --with-intsize integer type to use: specify 32 for int or 64 for + # int64_t +file(COPY "${CURRENT_INSTALLED_DIR}/share/coin-or-buildtools/" DESTINATION "${SOURCE_PATH}") + +set(ENV{ACLOCAL} "aclocal -I \"${SOURCE_PATH}/BuildTools\"") + +vcpkg_configure_make( + SOURCE_PATH "${SOURCE_PATH}" + AUTOCONFIG + OPTIONS + #--with-pardiso + --without-spral + #--without-wsmp + --without-hsl + --without-asl + --with-lapack + --without-mumps + --enable-relocatable + --disable-f77 + --disable-java +) + +vcpkg_install_make() +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/coin-or-ipopt/vcpkg.json b/vcpkg/ports/coin-or-ipopt/vcpkg.json new file mode 100644 index 0000000..d3a9d58 --- /dev/null +++ b/vcpkg/ports/coin-or-ipopt/vcpkg.json @@ -0,0 +1,11 @@ +{ + "name": "coin-or-ipopt", + "version-date": "2023-02-01", + "description": "Ipopt (Interior Point OPTimizer, pronounced eye-pea-Opt) is a software package for large-scale nonlinear optimization", + "homepage": "https://github.com/coin-or/Ipopt", + "license": "EPL-2.0", + "dependencies": [ + "coinutils", + "intel-mkl" + ] +} |