mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 12:37:55 +08:00
5b11232d00
* [libuvc,qt5-virtualkeyboard] remove duplicated dependency entry * [many-ports] don't use deprecated functions (autogenerated) * atkmm: Fix license. gperftools: Reformat vcpkg_check_features call. gsl: Fix license. libpff: Fix license. pangomm: Fix license. qtbase: Revert, only comment changes. type-lite: Reformat vcpkg_check_features and actually use the feature options. --------- Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
29 lines
967 B
CMake
29 lines
967 B
CMake
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz
|
|
FILENAME gperf-3.1.tar.gz
|
|
SHA512 855ebce5ff36753238a44f14c95be7afdc3990b085960345ca2caf1a2db884f7db74d406ce9eec2f4a52abb8a063d4ed000a36b317c9a353ef4e25e2cca9a3f4
|
|
)
|
|
|
|
vcpkg_extract_source_archive(
|
|
SOURCE_PATH
|
|
ARCHIVE ${ARCHIVE}
|
|
)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h.in DESTINATION ${SOURCE_PATH})
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS_RELEASE -DCMAKE_INSTALL_BINDIR=tools/gperf
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
endif()
|