2016-11-23 02:07:05 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS "http://www.codesynthesis.com/download/odb/2.4/libodb-pgsql-2.4.0.tar.gz"
|
|
|
|
FILENAME "libodb-pgsql-2.4.0.tar.gz"
|
|
|
|
SHA512 535515356233b815f144c0098940174f7a530e7fa4e930c0a9ebdc255fdb8bac8cdcceac31f25be4864105323e00bfe50808efa648e7c8ffb5a944e52f514b69
|
|
|
|
)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2021-11-24 04:13:20 +08:00
|
|
|
ARCHIVE "${ARCHIVE}"
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2021-08-05 04:27:40 +08:00
|
|
|
file(REMOVE "${SOURCE_PATH}/version")
|
2016-11-23 02:07:05 +08:00
|
|
|
|
2019-02-02 04:25:28 +08:00
|
|
|
file(COPY
|
2021-11-24 04:13:20 +08:00
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
|
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/config.unix.h.in"
|
|
|
|
DESTINATION "${SOURCE_PATH}")
|
2019-02-02 04:25:28 +08:00
|
|
|
|
2021-11-24 04:13:20 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2016-11-23 02:07:05 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DLIBODB_INSTALL_HEADERS=OFF
|
|
|
|
)
|
2019-05-18 07:10:31 +08:00
|
|
|
|
2021-11-24 04:13:20 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME odb)
|
2016-11-23 02:07:05 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2021-11-24 04:13:20 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|