2017-10-19 11:44:46 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2022-01-13 04:13:55 +08:00
|
|
|
URLS "https://download.oracle.com/berkeley-db/db-4.8.30.NC.zip"
|
2017-10-19 11:44:46 +08:00
|
|
|
FILENAME "db-4.8.30.NC.zip"
|
|
|
|
SHA512 59c1d2d5a3551f988ab1dc063900572b67ad087537e0d71760de34601f9ebd4d5c070a49b809bec4a599a62417e9a162683ce0f6442deb1a0dadb80764bf6eab
|
|
|
|
)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
ARCHIVE ${ARCHIVE}
|
2020-08-22 07:32:24 +08:00
|
|
|
PATCHES fix-conflict-macro.patch
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2017-10-19 11:44:46 +08:00
|
|
|
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2020-05-27 11:40:27 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|