diff options
Diffstat (limited to 'vcpkg/ports/nlopt')
| -rw-r--r-- | vcpkg/ports/nlopt/portfile.cmake | 33 | ||||
| -rw-r--r-- | vcpkg/ports/nlopt/vcpkg.json | 16 |
2 files changed, 49 insertions, 0 deletions
diff --git a/vcpkg/ports/nlopt/portfile.cmake b/vcpkg/ports/nlopt/portfile.cmake new file mode 100644 index 0000000..2270ce0 --- /dev/null +++ b/vcpkg/ports/nlopt/portfile.cmake @@ -0,0 +1,33 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO stevengj/nlopt + REF "v${VERSION}" + SHA512 7668db6997ba141ee1759f222bad23a7854aa17962470653ddb5824c25100b50f52c462441f0cc12a62e2322ff084c7f7b7fab09471b0acb13a861d7f7575655 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DNLOPT_FORTRAN=OFF + -DNLOPT_GUILE=OFF + -DNLOPT_LUKSAN=OFF + -DNLOPT_MATLAB=OFF + -DNLOPT_OCTAVE=OFF + -DNLOPT_PYTHON=OFF + -DNLOPT_SWIG=OFF +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/nlopt) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") + +vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/nlopt/NLoptConfig.cmake" "/../../" "/../") + +vcpkg_fixup_pkgconfig() diff --git a/vcpkg/ports/nlopt/vcpkg.json b/vcpkg/ports/nlopt/vcpkg.json new file mode 100644 index 0000000..f4b9cd9 --- /dev/null +++ b/vcpkg/ports/nlopt/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "nlopt", + "version": "2.10.0", + "description": "Library for nonlinear local and global optimization, for functions with and without gradient information.", + "homepage": "https://github.com/stevengj/nlopt", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |