2019-05-29 01:58:00 +02:00
|
|
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
|
|
message(FATAL_ERROR "${PORT} currently only supports being built for desktop")
|
|
|
|
endif()
|
|
|
|
|
2016-11-11 00:55:55 -05:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2017-07-27 19:34:13 -07:00
|
|
|
URLS "https://ftp.postgresql.org/pub/source/v9.6.3/postgresql-9.6.3.tar.bz2"
|
|
|
|
FILENAME "postgresql-9.6.3.tar.bz2"
|
|
|
|
SHA512 97141972e154e6b0e756ee6a4e20f26e82022a9fd4c56305314a3a5567a79ece638e4ac3d513b46138737ae6bd27a098f30013a94767db151181aac9c01290a1
|
2016-11-11 00:55:55 -05:00
|
|
|
)
|
2019-05-29 01:58:00 +02:00
|
|
|
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
ARCHIVE ${ARCHIVE}
|
|
|
|
)
|
2018-03-13 07:32:27 -07:00
|
|
|
|
2016-11-11 00:55:55 -05:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
2018-03-13 07:32:27 -07:00
|
|
|
|
2016-11-11 00:55:55 -05:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2018-03-13 07:32:27 -07:00
|
|
|
PREFER_NINJA
|
2018-03-23 10:01:07 -07:00
|
|
|
OPTIONS
|
|
|
|
"-DPORT_DIR=${CMAKE_CURRENT_LIST_DIR}"
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DINSTALL_INCLUDES=OFF
|
2016-11-11 00:55:55 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2017-07-27 19:34:13 -07:00
|
|
|
vcpkg_copy_pdbs()
|
2016-11-11 00:55:55 -05:00
|
|
|
|
2017-07-27 19:34:13 -07:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/libpq RENAME copyright)
|