2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2018-02-27 23:05:18 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
[many ports] Updates 2019.05.24 (#6618)
* [many ports] Updates 2019.05.24
* Update SHA512 and resolve conflict for ebml and matroska
* [avro-c]Fix build error caused by jansson upgrades.
* [xxhash]Update to the next version to fix build error.(xxhash issue:#179)
* Fix failures and undo asio
* [libyaml, grpc, miniz, paho-mqtt, sqlitecpp] Update patches
* Update REF
* Undo nvtt flann itk libtins aws-sdk-cpp openvdb vlpp xmsh changes
* [flann, fastcdr] Fix old patches and build error.
* [flann, fastcdr] Fix build error.
* Fix ensmallen uvatlas cppcms libplist failures and undo aws-c-common libopusenc arb taglib changes
* [dcmtk, draco, flatbuffers, forge, ftgl, mosquitto,nmslib, ogre] Update old patches and fix build error.
* fix libusbmuxd failures and undo xxhash paho-mqtt mongo-c-driver flann libffi
* fix libimobiledevice and undo qhull harfbuzz lcm libbson draco flatbuffers
* undo libmupdf forge kd-soap qca
* [mosquitto] Fix installation of import libs
* [arb][asio][aws-c-common][collada-dom][concurrentqueue][cryptopp][ebml] Revert trivial/undesired changes
* [fastcdr] Minimize patch
* [many ports] Revert trivial changes
* [libyaml] Switch to non-dist tag
* [sqlite-modern-cpp] Track master due to infrequent release
* [nano-signal-slot] Revert downgrade
* [openvpn3] Bump control version to account for portfile change
* [sqlite-modern-cpp] Fixup wrong hash
* [mosquitto] Commit missing patch
2019-06-11 08:01:54 +08:00
|
|
|
REPO nmslib/nmslib
|
2021-10-12 11:23:19 +08:00
|
|
|
REF v2.1.1
|
|
|
|
SHA512 62BBB965EA4BF1D416ED78231B1BA4B41C0F46327D7BE16D1F98095DB63EF0E0D893B70040009711BC9C68555B1B8C4038F5032ABD66B759E955E2CBB0553EC3
|
2018-02-27 23:05:18 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-10-12 11:23:19 +08:00
|
|
|
# TODO: check SSE and AVX availability and set corresponding tags
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/similarity_search"
|
2018-02-27 23:05:18 +08:00
|
|
|
)
|
|
|
|
|
2021-10-12 11:23:19 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-02-27 23:05:18 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
# Move headers into separate folder
|
|
|
|
set(SUBFOLDERS factory method space)
|
2021-10-12 11:23:19 +08:00
|
|
|
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/include/nmslib")
|
|
|
|
foreach(SUBFOLDER ${SUBFOLDERS})
|
|
|
|
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/include/nmslib/${SUBFOLDER}")
|
2018-02-27 23:05:18 +08:00
|
|
|
endforeach()
|
|
|
|
|
2021-10-12 11:23:19 +08:00
|
|
|
file(GLOB HEADERS "${CURRENT_PACKAGES_DIR}/include/*.h" "${CURRENT_PACKAGES_DIR}/include/*/*.h")
|
2018-02-27 23:05:18 +08:00
|
|
|
foreach(HEADER ${HEADERS})
|
2021-10-12 11:23:19 +08:00
|
|
|
string(REPLACE "${CURRENT_PACKAGES_DIR}/include" "${CURRENT_PACKAGES_DIR}/include/nmslib" MOVED_HEADER "${HEADER}")
|
|
|
|
file(RENAME "${HEADER}" "${MOVED_HEADER}")
|
2018-02-27 23:05:18 +08:00
|
|
|
endforeach(HEADER ${HEADERS})
|
|
|
|
|
2021-10-12 11:23:19 +08:00
|
|
|
foreach(SUBFOLDER ${SUBFOLDERS})
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/${SUBFOLDER}/")
|
2018-02-27 23:05:18 +08:00
|
|
|
endforeach()
|
|
|
|
|
2021-10-12 11:23:19 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-02-27 23:05:18 +08:00
|
|
|
|
|
|
|
# Put the license file where vcpkg expects it
|
2021-10-12 11:23:19 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|