mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 14:59:00 +08:00
0a87852605
* [libuuid] Install uuid.pc file * [libuuid] Install uuid.pc file * [libuuid] Install uuid.pc file * Update portfile.cmake * Update ports/libuuid/portfile.cmake Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
42 lines
1.3 KiB
CMake
42 lines
1.3 KiB
CMake
vcpkg_fail_port_install(MESSAGE "${PORT} currently only supports unix platform" ON_TARGET "Windows")
|
|
|
|
set(LIBUUID_VERSION 1.0.3)
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "http://sourceforge.net/projects/libuuid/files/libuuid-${LIBUUID_VERSION}.tar.gz"
|
|
FILENAME libuuid-${LIBUUID_VERSION}.tar.gz
|
|
SHA512 77488caccc66503f6f2ded7bdfc4d3bc2c20b24a8dc95b2051633c695e99ec27876ffbafe38269b939826e1fdb06eea328f07b796c9e0aaca12331a787175507
|
|
)
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
ARCHIVE ${ARCHIVE}
|
|
)
|
|
|
|
file(COPY
|
|
${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt
|
|
${CMAKE_CURRENT_LIST_DIR}/config.linux.h
|
|
DESTINATION ${SOURCE_PATH}
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
set(prefix ${CURRENT_INSTALLED_DIR})
|
|
set(exec_prefix \$\{prefix\})
|
|
set(libdir \$\{exec_prefix\}/lib)
|
|
set(includedir \$\{prefix\}/include)
|
|
configure_file(${SOURCE_PATH}/uuid.pc.in ${SOURCE_PATH}/uuid.pc @ONLY)
|
|
file(INSTALL ${SOURCE_PATH}/uuid.pc DESTINATION ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
|
|
file(INSTALL ${SOURCE_PATH}/uuid.pc DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig)
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(INSTALL
|
|
${SOURCE_PATH}/COPYING
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
vcpkg_copy_pdbs()
|