[many ports]switch to vcpkg-cmake / vcpkg-cmake-config part 2 (#29882)

Co-authored-by: jyu49 <yu_jack@apple.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
Jack·Boos·Yu 2023-04-22 05:48:12 +08:00 committed by GitHub
parent 95252eadd6
commit 7cfd63db7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
151 changed files with 637 additions and 373 deletions

View File

@ -10,10 +10,10 @@ vcpkg_from_github(
fix_cmake_install.patch fix_cmake_install.patch
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/EAThreadConfig.cmake.in DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/EAThreadConfig.cmake.in" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DEATHREAD_BUILD_TESTS=OFF -DEATHREAD_BUILD_TESTS=OFF
) )
@ -22,10 +22,10 @@ vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/EAThread) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/EAThread)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
# Handle copyright # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(INSTALL ${SOURCE_PATH}/3RDPARTYLICENSES.TXT DESTINATION ${CURRENT_PACKAGES_DIR}/share/eathread) file(INSTALL "${SOURCE_PATH}/3RDPARTYLICENSES.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/eathread")

View File

@ -1,7 +1,7 @@
{ {
"name": "eathread", "name": "eathread",
"version-string": "1.32.09", "version-string": "1.32.09",
"port-version": 4, "port-version": 5,
"description": "Electronic Arts Thread Library. EAThread implements a unified cross-platform interface for multithreaded programming on various platforms.", "description": "Electronic Arts Thread Library. EAThread implements a unified cross-platform interface for multithreaded programming on various platforms.",
"homepage": "https://github.com/electronicarts/EAThread", "homepage": "https://github.com/electronicarts/EAThread",
"supports": "!uwp & x64", "supports": "!uwp & x64",

View File

@ -8,15 +8,15 @@ vcpkg_from_github(
HEAD_REF develop HEAD_REF develop
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
) )
vcpkg_cmake_install() vcpkg_cmake_install()
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/ecos RENAME copyright) file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(CONFIG_PATH "share/ecos") vcpkg_cmake_config_fixup(CONFIG_PATH "share/ecos")

View File

@ -1,7 +1,7 @@
{ {
"name": "ecos", "name": "ecos",
"version": "2.0.8", "version": "2.0.8",
"port-version": 2, "port-version": 3,
"description": "A lightweight conic solver for second-order cone programming.", "description": "A lightweight conic solver for second-order cone programming.",
"dependencies": [ "dependencies": [
{ {

View File

@ -9,7 +9,7 @@ vcpkg_from_github(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE DISABLE_PARALLEL_CONFIGURE
OPTIONS OPTIONS
-DENTITYX_BUILD_TESTING=false -DENTITYX_BUILD_TESTING=false
@ -18,8 +18,7 @@ vcpkg_cmake_configure(
vcpkg_cmake_install() vcpkg_cmake_install()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright # Handle copyright
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/entityx) file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/entityx" RENAME copyright)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/entityx/COPYING ${CURRENT_PACKAGES_DIR}/share/entityx/copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "entityx", "name": "entityx",
"version": "1.3.0", "version": "1.3.0",
"port-version": 4, "port-version": 5,
"description": "EntityX - A fast, type-safe C++ Entity-Component system.", "description": "EntityX - A fast, type-safe C++ Entity-Component system.",
"homepage": "https://github.com/alecthomas/entityx", "homepage": "https://github.com/alecthomas/entityx",
"dependencies": [ "dependencies": [

View File

@ -8,13 +8,13 @@ vcpkg_from_github(
file(COPY file(COPY
${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
${CMAKE_CURRENT_LIST_DIR}/fastfeat.def "${CMAKE_CURRENT_LIST_DIR}/fastfeat.def"
DESTINATION ${SOURCE_PATH} DESTINATION "${SOURCE_PATH}"
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG OPTIONS_DEBUG
-DDISABLE_INSTALL_HEADERS=ON -DDISABLE_INSTALL_HEADERS=ON
) )
@ -23,4 +23,4 @@ vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
# Handle copyright # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/fastfeat RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/fastfeat" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "fastfeat", "name": "fastfeat",
"version-string": "391d5e9", "version-string": "391d5e9",
"port-version": 3, "port-version": 4,
"description": "FAST feature detectors in C", "description": "FAST feature detectors in C",
"dependencies": [ "dependencies": [
{ {

View File

@ -8,15 +8,15 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
) )
vcpkg_cmake_install() vcpkg_cmake_install()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE.MIT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE.MIT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "fastlz", "name": "fastlz",
"version-date": "2021-05-10", "version-date": "2021-05-10",
"port-version": 1, "port-version": 2,
"description": "A lightning-fast lossless compression library", "description": "A lightning-fast lossless compression library",
"homepage": "https://github.com/ariya/FastLZ", "homepage": "https://github.com/ariya/FastLZ",
"dependencies": [ "dependencies": [

View File

@ -4,11 +4,11 @@ vcpkg_from_git(
REF 59f7335e4dd8275a7dc2f8aeb4fd00758fde37ac REF 59f7335e4dd8275a7dc2f8aeb4fd00758fde37ac
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
file(COPY ${CMAKE_CURRENT_LIST_DIR}/libm5.def DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/libm5.def" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG OPTIONS_DEBUG
-DDISABLE_INSTALL_HEADERS=ON -DDISABLE_INSTALL_HEADERS=ON
) )
@ -17,5 +17,5 @@ vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
# Handle copyright # Handle copyright
configure_file(${SOURCE_PATH}/NOTICE ${CURRENT_PACKAGES_DIR}/share/fdlibm/copyright COPYONLY) configure_file("${SOURCE_PATH}/NOTICE" "${CURRENT_PACKAGES_DIR}/share/fdlibm/copyright" COPYONLY)

View File

@ -1,7 +1,7 @@
{ {
"name": "fdlibm", "name": "fdlibm",
"version": "5.3", "version": "5.3",
"port-version": 6, "port-version": 7,
"description": "FDLIBM (Freely Distributable LIBM) is a C math library for machines that support IEEE 754 floating-point arithmetic", "description": "FDLIBM (Freely Distributable LIBM) is a C math library for machines that support IEEE 754 floating-point arithmetic",
"dependencies": [ "dependencies": [
{ {

View File

@ -36,14 +36,14 @@ vcpkg_check_features(
# Build and install # Build and install
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
${FL_DEFAULT_VCPKG_CMAKE_FLAGS} ${FL_DEFAULT_VCPKG_CMAKE_FLAGS}
${FEATURE_OPTIONS} ${FEATURE_OPTIONS}
OPTIONS_DEBUG OPTIONS_DEBUG
-DFL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/debug/share/flashlight "-DFL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/debug/share/flashlight"
OPTIONS_RELEASE OPTIONS_RELEASE
-DFL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/share/flashlight "-DFL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/share/flashlight"
) )
vcpkg_cmake_install() vcpkg_cmake_install()
@ -84,4 +84,4 @@ if (NUM_TOOLS GREATER 0)
endif() endif()
# Copyright # Copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "flashlight-cpu", "name": "flashlight-cpu",
"version": "0.3", "version": "0.3",
"port-version": 4, "port-version": 5,
"description": "A C++ standalone library for machine learning. CPU backend.", "description": "A C++ standalone library for machine learning. CPU backend.",
"homepage": "https://github.com/facebookresearch/flashlight", "homepage": "https://github.com/facebookresearch/flashlight",
"license": "MIT", "license": "MIT",

View File

@ -35,14 +35,14 @@ vcpkg_check_features(
# Build and install # Build and install
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
${FL_DEFAULT_VCPKG_CMAKE_FLAGS} ${FL_DEFAULT_VCPKG_CMAKE_FLAGS}
${FEATURE_OPTIONS} ${FEATURE_OPTIONS}
OPTIONS_DEBUG OPTIONS_DEBUG
-DFL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/debug/share/flashlight "-DFL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/debug/share/flashlight"
OPTIONS_RELEASE OPTIONS_RELEASE
-DFL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/share/flashlight "-DFL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/share/flashlight"
) )
vcpkg_cmake_install() vcpkg_cmake_install()
@ -83,4 +83,4 @@ if (NUM_TOOLS GREATER 0)
endif() endif()
# Copyright # Copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "flashlight-cuda", "name": "flashlight-cuda",
"version": "0.3", "version": "0.3",
"port-version": 5, "port-version": 6,
"description": "A C++ standalone library for machine learning. CUDA backend.", "description": "A C++ standalone library for machine learning. CUDA backend.",
"homepage": "https://github.com/facebookresearch/flashlight", "homepage": "https://github.com/facebookresearch/flashlight",
"license": "MIT", "license": "MIT",

View File

@ -7,16 +7,16 @@ vcpkg_from_github(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DBUILD_TESTING=OFF -DBUILD_TESTING=OFF
) )
vcpkg_cmake_install() vcpkg_cmake_install()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
# Handle copyright # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/fmem RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/fmem" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "fmem", "name": "fmem",
"version-string": "c-libs-2ccee3d2fb", "version-string": "c-libs-2ccee3d2fb",
"port-version": 2, "port-version": 3,
"description": "A cross-platform library for opening memory-backed libc streams.", "description": "A cross-platform library for opening memory-backed libc streams.",
"dependencies": [ "dependencies": [
{ {

View File

@ -18,14 +18,14 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
file(COPY ${COMP_SOURCE_PATH}/comp_base.cmake DESTINATION ${SOURCE_PATH}/cmake/comp) file(COPY "${COMP_SOURCE_PATH}/comp_base.cmake" DESTINATION "${SOURCE_PATH}/cmake/comp")
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES
tool FOONATHAN_MEMORY_BUILD_TOOLS tool FOONATHAN_MEMORY_BUILD_TOOLS
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
${FEATURE_OPTIONS} ${FEATURE_OPTIONS}
-DFOONATHAN_MEMORY_BUILD_EXAMPLES=OFF -DFOONATHAN_MEMORY_BUILD_EXAMPLES=OFF
@ -34,9 +34,9 @@ vcpkg_cmake_configure(
vcpkg_cmake_install() vcpkg_cmake_install()
if(EXISTS ${CURRENT_PACKAGES_DIR}/cmake) if(EXISTS "${CURRENT_PACKAGES_DIR}/cmake")
vcpkg_cmake_config_fixup(CONFIG_PATH cmake PACKAGE_NAME foonathan_memory) vcpkg_cmake_config_fixup(CONFIG_PATH cmake PACKAGE_NAME foonathan_memory)
elseif(EXISTS ${CURRENT_PACKAGES_DIR}/share/foonathan_memory/cmake) elseif(EXISTS "${CURRENT_PACKAGES_DIR}/share/foonathan_memory/cmake")
vcpkg_cmake_config_fixup(CONFIG_PATH share/foonathan_memory/cmake PACKAGE_NAME foonathan_memory) vcpkg_cmake_config_fixup(CONFIG_PATH share/foonathan_memory/cmake PACKAGE_NAME foonathan_memory)
endif() endif()
@ -45,26 +45,26 @@ vcpkg_copy_pdbs()
# Place header files into the right folders # Place header files into the right folders
# The original layout is not a problem for CMake-based project. # The original layout is not a problem for CMake-based project.
file(COPY file(COPY
${CURRENT_PACKAGES_DIR}/include/foonathan_memory/foonathan "${CURRENT_PACKAGES_DIR}/include/foonathan_memory/foonathan"
DESTINATION ${CURRENT_PACKAGES_DIR}/include DESTINATION "${CURRENT_PACKAGES_DIR}/include"
) )
file(GLOB file(GLOB
COMP_INCLUDE_FILES COMP_INCLUDE_FILES
${CURRENT_PACKAGES_DIR}/include/foonathan_memory/comp/foonathan/*.hpp "${CURRENT_PACKAGES_DIR}/include/foonathan_memory/comp/foonathan/*.hpp"
) )
file(COPY file(COPY
${COMP_INCLUDE_FILES} ${COMP_INCLUDE_FILES}
DESTINATION ${CURRENT_PACKAGES_DIR}/include/foonathan DESTINATION "${CURRENT_PACKAGES_DIR}/include/foonathan"
) )
file(COPY file(COPY
${CURRENT_PACKAGES_DIR}/include/foonathan_memory/config_impl.hpp "${CURRENT_PACKAGES_DIR}/include/foonathan_memory/config_impl.hpp"
DESTINATION ${CURRENT_PACKAGES_DIR}/include/foonathan/memory DESTINATION "${CURRENT_PACKAGES_DIR}/include/foonathan/memory"
) )
file(REMOVE_RECURSE file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/include/foonathan_memory "${CURRENT_PACKAGES_DIR}/include/foonathan_memory"
) )
vcpkg_replace_string( vcpkg_replace_string(
${CURRENT_PACKAGES_DIR}/share/foonathan_memory/foonathan_memory-config.cmake "${CURRENT_PACKAGES_DIR}/share/foonathan_memory/foonathan_memory-config.cmake"
"\${_IMPORT_PREFIX}/include/foonathan_memory/comp;\${_IMPORT_PREFIX}/include/foonathan_memory" "\${_IMPORT_PREFIX}/include/foonathan_memory/comp;\${_IMPORT_PREFIX}/include/foonathan_memory"
"\${_IMPORT_PREFIX}/include" "\${_IMPORT_PREFIX}/include"
) )
@ -76,21 +76,21 @@ vcpkg_replace_string(
# #define FOONATHAN_MEMORY_DEBUG_FILL 0 # #define FOONATHAN_MEMORY_DEBUG_FILL 0
# We only have the Release version header files installed, however. # We only have the Release version header files installed, however.
vcpkg_replace_string( vcpkg_replace_string(
${CURRENT_PACKAGES_DIR}/include/foonathan/memory/detail/debug_helpers.hpp "${CURRENT_PACKAGES_DIR}/include/foonathan/memory/detail/debug_helpers.hpp"
"#if FOONATHAN_MEMORY_DEBUG_FILL" "#if FOONATHAN_MEMORY_DEBUG_FILL"
"#ifndef NDEBUG //#if FOONATHAN_MEMORY_DEBUG_FILL" "#ifndef NDEBUG //#if FOONATHAN_MEMORY_DEBUG_FILL"
) )
file(REMOVE_RECURSE file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/include "${CURRENT_PACKAGES_DIR}/debug/include"
${CURRENT_PACKAGES_DIR}/debug/share "${CURRENT_PACKAGES_DIR}/debug/share"
) )
file(REMOVE file(REMOVE
${CURRENT_PACKAGES_DIR}/debug/LICENSE "${CURRENT_PACKAGES_DIR}/debug/LICENSE"
${CURRENT_PACKAGES_DIR}/debug/README.md "${CURRENT_PACKAGES_DIR}/debug/README.md"
${CURRENT_PACKAGES_DIR}/LICENSE "${CURRENT_PACKAGES_DIR}/LICENSE"
${CURRENT_PACKAGES_DIR}/README.md "${CURRENT_PACKAGES_DIR}/README.md"
) )
if(NOT VCPKG_CMAKE_SYSTEM_NAME OR if(NOT VCPKG_CMAKE_SYSTEM_NAME OR
@ -100,25 +100,25 @@ else()
set(EXECUTABLE_SUFFIX "") set(EXECUTABLE_SUFFIX "")
endif() endif()
if(EXISTS ${CURRENT_PACKAGES_DIR}/bin/nodesize_dbg${EXECUTABLE_SUFFIX}) if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/nodesize_dbg${EXECUTABLE_SUFFIX}")
file(COPY file(COPY
${CURRENT_PACKAGES_DIR}/bin/nodesize_dbg${EXECUTABLE_SUFFIX} "${CURRENT_PACKAGES_DIR}/bin/nodesize_dbg${EXECUTABLE_SUFFIX}"
DESTINATION ${CURRENT_PACKAGES_DIR}/tools/${PORT} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}"
) )
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT}) vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
if(VCPKG_LIBRARY_LINKAGE STREQUAL static) if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/bin "${CURRENT_PACKAGES_DIR}/bin"
${CURRENT_PACKAGES_DIR}/debug/bin "${CURRENT_PACKAGES_DIR}/debug/bin"
) )
else() else()
file(REMOVE file(REMOVE
${CURRENT_PACKAGES_DIR}/bin/nodesize_dbg${EXECUTABLE_SUFFIX} "${CURRENT_PACKAGES_DIR}/bin/nodesize_dbg${EXECUTABLE_SUFFIX}"
${CURRENT_PACKAGES_DIR}/debug/bin/nodesize_dbg${EXECUTABLE_SUFFIX} "${CURRENT_PACKAGES_DIR}/debug/bin/nodesize_dbg${EXECUTABLE_SUFFIX}"
) )
endif() endif()
endif() endif()
# Handle copyright # Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)

View File

@ -1,7 +1,7 @@
{ {
"name": "foonathan-memory", "name": "foonathan-memory",
"version-date": "2019-07-21", "version-date": "2019-07-21",
"port-version": 3, "port-version": 4,
"description": "STL compatible C++ memory allocator library", "description": "STL compatible C++ memory allocator library",
"homepage": "https://foonathan.net/doc/memory/", "homepage": "https://foonathan.net/doc/memory/",
"dependencies": [ "dependencies": [

View File

@ -7,12 +7,12 @@ vcpkg_from_github(
find-psimd.patch find-psimd.patch
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DFP16_BUILD_TESTS=OFF -DFP16_BUILD_TESTS=OFF
-DFP16_BUILD_BENCHMARKS=OFF -DFP16_BUILD_BENCHMARKS=OFF
) )
vcpkg_cmake_install() vcpkg_cmake_install()
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")

View File

@ -1,7 +1,7 @@
{ {
"name": "fp16", "name": "fp16",
"version-date": "2021-02-21", "version-date": "2021-02-21",
"port-version": 1, "port-version": 2,
"description": "Header-only library for conversion to/from half-precision floating point formats", "description": "Header-only library for conversion to/from half-precision floating point formats",
"homepage": "https://github.com/Maratyszcza/FP16", "homepage": "https://github.com/Maratyszcza/FP16",
"dependencies": [ "dependencies": [

View File

@ -16,7 +16,7 @@ vcpkg_from_github(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DBUILD_PYTHON=OFF -DBUILD_PYTHON=OFF
-DBUILD_TESTING=OFF -DBUILD_TESTING=OFF
@ -26,10 +26,10 @@ vcpkg_cmake_configure(
vcpkg_cmake_install() vcpkg_cmake_install()
vcpkg_cmake_config_fixup() vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
#Handle copyright #Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/freeopcua RENAME copyright) file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/freeopcua" RENAME copyright)
vcpkg_fixup_pkgconfig() vcpkg_fixup_pkgconfig()

View File

@ -1,7 +1,7 @@
{ {
"name": "freeopcua", "name": "freeopcua",
"version": "20190125", "version": "20190125",
"port-version": 6, "port-version": 7,
"description": "OPC-UA server and client library written in C++ and with a lot of code auto-generated from xml specification using python.", "description": "OPC-UA server and client library written in C++ and with a lot of code auto-generated from xml specification using python.",
"dependencies": [ "dependencies": [
"boost-asio", "boost-asio",

View File

@ -10,7 +10,7 @@ vcpkg_from_github(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE DISABLE_PARALLEL_CONFIGURE
OPTIONS OPTIONS
-DBUILD_TESTING=OFF -DBUILD_TESTING=OFF
@ -18,13 +18,13 @@ vcpkg_cmake_configure(
vcpkg_cmake_install(ADD_BIN_TO_PATH) vcpkg_cmake_install(ADD_BIN_TO_PATH)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake PACKAGE_NAME share) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file( file(
INSTALL ${SOURCE_PATH}/LICENSE INSTALL "${SOURCE_PATH}/LICENSE"
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright) RENAME copyright)
vcpkg_copy_pdbs() vcpkg_copy_pdbs()

View File

@ -1,7 +1,7 @@
{ {
"name": "functions-framework-cpp", "name": "functions-framework-cpp",
"version": "1.1.0", "version": "1.1.0",
"port-version": 2, "port-version": 3,
"description": "Functions Framework for C++.", "description": "Functions Framework for C++.",
"homepage": "https://github.com/GoogleCloudPlatform/functions-framework-cpp/", "homepage": "https://github.com/GoogleCloudPlatform/functions-framework-cpp/",
"license": "Apache-2.0", "license": "Apache-2.0",

View File

@ -6,12 +6,13 @@ vcpkg_from_github(
SHA512 da33eab4d006645f383a1f24fc3e747db3aeb0613219297ec0ae69aa2617f07ba050ebd6a64a8cbde6d25481f176d0ec3b9753a95d1fbcead2136595f3e50e97 SHA512 da33eab4d006645f383a1f24fc3e747db3aeb0613219297ec0ae69aa2617f07ba050ebd6a64a8cbde6d25481f176d0ec3b9753a95d1fbcead2136595f3e50e97
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DFXDIV_BUILD_TESTS=OFF -DFXDIV_BUILD_TESTS=OFF
-DFXDIV_BUILD_BENCHMARKS=OFF -DFXDIV_BUILD_BENCHMARKS=OFF
) )
vcpkg_cmake_install() vcpkg_cmake_install()
vcpkg_copy_pdbs()
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")

View File

@ -1,7 +1,7 @@
{ {
"name": "fxdiv", "name": "fxdiv",
"version-date": "2021-02-21", "version-date": "2021-02-21",
"port-version": 1, "port-version": 2,
"description": "C99/C++ header-only library for division via fixed-point multiplication by inverse", "description": "C99/C++ header-only library for division via fixed-point multiplication by inverse",
"homepage": "https://github.com/Maratyszcza/FXdiv", "homepage": "https://github.com/Maratyszcza/FXdiv",
"dependencies": [ "dependencies": [

View File

@ -9,7 +9,7 @@ vcpkg_from_github(
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_LGPL_SHARED_LIBS) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_LGPL_SHARED_LIBS)
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DBUILD_LGPL_SHARED_LIBS=${BUILD_LGPL_SHARED_LIBS} -DBUILD_LGPL_SHARED_LIBS=${BUILD_LGPL_SHARED_LIBS}
-DG2O_BUILD_EXAMPLES=OFF -DG2O_BUILD_EXAMPLES=OFF
@ -31,12 +31,12 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
endforeach() endforeach()
endif() endif()
file(GLOB EXE ${CURRENT_PACKAGES_DIR}/bin/*.exe) file(GLOB EXE "${CURRENT_PACKAGES_DIR}/bin/*.exe")
file(GLOB DEBUG_EXE ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe) file(GLOB DEBUG_EXE "${CURRENT_PACKAGES_DIR}/debug/bin/*.exe")
if(EXE OR DEBUG_EXE) if(EXE OR DEBUG_EXE)
file(REMOVE ${EXE} ${DEBUG_EXE}) file(REMOVE ${EXE} ${DEBUG_EXE})
endif() endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL ${SOURCE_PATH}/doc/license-bsd.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/doc/license-bsd.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "g2o", "name": "g2o",
"version-date": "2020-02-07", "version-date": "2020-02-07",
"port-version": 3, "port-version": 4,
"description": "g2o: A General Framework for Graph Optimization", "description": "g2o: A General Framework for Graph Optimization",
"homepage": "https://openslam.org/g2o.html", "homepage": "https://openslam.org/g2o.html",
"dependencies": [ "dependencies": [

View File

@ -10,10 +10,10 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=1 OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=1
) )
@ -21,4 +21,4 @@ vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
# Handle copyright # Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "gamma", "name": "gamma",
"version-string": "gamma-2018-01-27", "version-string": "gamma-2018-01-27",
"port-version": 5, "port-version": 6,
"description": "Gamma is a cross-platform, C++ library for doing generic synthesis and filtering of signals. It is oriented towards real-time sound and graphics applications, but is equally useful for non-real-time tasks. Gamma is designed to be \"light-footed\" in terms of memory and processing making it highly suitable for plug-in development or embedding in other C++ projects.", "description": "Gamma is a cross-platform, C++ library for doing generic synthesis and filtering of signals. It is oriented towards real-time sound and graphics applications, but is equally useful for non-real-time tasks. Gamma is designed to be \"light-footed\" in terms of memory and processing making it highly suitable for plug-in development or embedding in other C++ projects.",
"homepage": "https://github.com/LancePutnam/Gamma", "homepage": "https://github.com/LancePutnam/Gamma",
"license": "MIT", "license": "MIT",

View File

@ -12,11 +12,12 @@ vcpkg_from_github(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
) )
vcpkg_cmake_install() vcpkg_cmake_install()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "gasol", "name": "gasol",
"version-date": "2018-01-04", "version-date": "2018-01-04",
"port-version": 3, "port-version": 4,
"description": "A general Genetic Algorithm Solver in C++", "description": "A general Genetic Algorithm Solver in C++",
"homepage": "https://github.com/PytLab/GASol", "homepage": "https://github.com/PytLab/GASol",
"supports": "!uwp & !arm", "supports": "!uwp & !arm",

View File

@ -8,10 +8,10 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_RELEASE -DINSTALL_HEADERS=ON OPTIONS_RELEASE -DINSTALL_HEADERS=ON
OPTIONS_DEBUG -DINSTALL_HEADERS=OFF OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
) )
@ -19,6 +19,5 @@ vcpkg_cmake_configure(
vcpkg_cmake_install() vcpkg_cmake_install()
# Handle copyright # Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/genann) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/genann/LICENSE ${CURRENT_PACKAGES_DIR}/share/genann/copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "genann", "name": "genann",
"version-date": "2019-07-10", "version-date": "2019-07-10",
"port-version": 2, "port-version": 3,
"description": "Genann is a minimal, well-tested library for training and using feedforward artificial neural networks (ANN) in C.", "description": "Genann is a minimal, well-tested library for training and using feedforward artificial neural networks (ANN) in C.",
"homepage": "https://github.com/codeplea/genann", "homepage": "https://github.com/codeplea/genann",
"dependencies": [ "dependencies": [

View File

@ -1,8 +1,8 @@
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${CMAKE_CURRENT_LIST_DIR} SOURCE_PATH "${CMAKE_CURRENT_LIST_DIR}"
) )
vcpkg_cmake_install() vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "gettimeofday", "name": "gettimeofday",
"version-date": "2017-10-14", "version-date": "2017-10-14",
"port-version": 5, "port-version": 6,
"description": "An implementation of gettimeofday for WIN32", "description": "An implementation of gettimeofday for WIN32",
"dependencies": [ "dependencies": [
{ {

View File

@ -14,7 +14,7 @@ vcpkg_from_github(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DGFLAGS_REGISTER_BUILD_DIR:BOOL=OFF -DGFLAGS_REGISTER_BUILD_DIR:BOOL=OFF
-DGFLAGS_REGISTER_INSTALL_PREFIX:BOOL=OFF -DGFLAGS_REGISTER_INSTALL_PREFIX:BOOL=OFF
@ -27,11 +27,11 @@ vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/gflags) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/gflags)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin ${CURRENT_PACKAGES_DIR}/bin) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/bin")
endif() endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

View File

@ -1,7 +1,7 @@
{ {
"name": "gflags", "name": "gflags",
"version": "2.2.2", "version": "2.2.2",
"port-version": 6, "port-version": 7,
"description": "A C++ library that implements commandline flags processing", "description": "A C++ library that implements commandline flags processing",
"homepage": "https://github.com/gflags/gflags", "homepage": "https://github.com/gflags/gflags",
"supports": "!uwp", "supports": "!uwp",

View File

@ -9,12 +9,12 @@ vcpkg_from_gitlab(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
) )
vcpkg_cmake_install() vcpkg_cmake_install()
# Handle copyright # Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYING.GL2PS DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/COPYING.GL2PS" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(INSTALL ${SOURCE_PATH}/COPYING.LGPL DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright.LGPL) file(INSTALL "${SOURCE_PATH}/COPYING.LGPL" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright.LGPL)

View File

@ -1,7 +1,7 @@
{ {
"name": "gl2ps", "name": "gl2ps",
"version": "1.4.2", "version": "1.4.2",
"port-version": 2, "port-version": 3,
"description": "OpenGL to PostScript Printing Library", "description": "OpenGL to PostScript Printing Library",
"homepage": "https://gitlab.onelab.info/gl2ps/gl2ps", "homepage": "https://gitlab.onelab.info/gl2ps/gl2ps",
"dependencies": [ "dependencies": [

View File

@ -11,17 +11,17 @@ vcpkg_from_github(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
) )
vcpkg_cmake_install() vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/gli) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/gli)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
file(REMOVE ${CURRENT_PACKAGES_DIR}/include/gli/CMakeLists.txt) file(REMOVE "${CURRENT_PACKAGES_DIR}/include/gli/CMakeLists.txt")
# Put the license file where vcpkg expects it # Put the license file where vcpkg expects it
# manual.md contains the "licenses" section for the project # manual.md contains the "licenses" section for the project
file(INSTALL ${SOURCE_PATH}/manual.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/manual.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "gli", "name": "gli",
"version-date": "2021-07-06", "version-date": "2021-07-06",
"port-version": 1, "port-version": 2,
"description": "OpenGL Image (GLI)", "description": "OpenGL Image (GLI)",
"homepage": "https://gli.g-truc.net", "homepage": "https://gli.g-truc.net",
"dependencies": [ "dependencies": [

View File

@ -10,7 +10,7 @@ vcpkg_from_github(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DOPTION_BUILD_TESTS=OFF -DOPTION_BUILD_TESTS=OFF
-DOPTION_BUILD_GPU_TESTS=OFF -DOPTION_BUILD_GPU_TESTS=OFF
@ -21,9 +21,9 @@ vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH share/globjects/cmake/globjects) vcpkg_cmake_config_fixup(CONFIG_PATH share/globjects/cmake/globjects)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
file(WRITE ${CURRENT_PACKAGES_DIR}/share/globjects/globjects-config.cmake "include(CMakeFindDependencyMacro) file(WRITE "${CURRENT_PACKAGES_DIR}/share/globjects/globjects-config.cmake" "include(CMakeFindDependencyMacro)
find_dependency(glm) find_dependency(glm)
find_dependency(glbinding) find_dependency(glbinding)
@ -31,6 +31,6 @@ include(\${CMAKE_CURRENT_LIST_DIR}/globjects-export.cmake)
") ")
# Handle copyright # Handle copyright
file(RENAME ${CURRENT_PACKAGES_DIR}/share/globjects/LICENSE ${CURRENT_PACKAGES_DIR}/share/globjects/copyright) file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
vcpkg_copy_pdbs() vcpkg_copy_pdbs()

View File

@ -1,7 +1,7 @@
{ {
"name": "globjects", "name": "globjects",
"version": "1.1.0", "version": "1.1.0",
"port-version": 5, "port-version": 6,
"description": "C++ library strictly wrapping OpenGL objects", "description": "C++ library strictly wrapping OpenGL objects",
"homepage": "https://github.com/cginternals/globjects", "homepage": "https://github.com/cginternals/globjects",
"dependencies": [ "dependencies": [

View File

@ -19,13 +19,14 @@ if ("cuda" IN_LIST FEATURES)
endif() endif()
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${GLOO_FEATURE_OPTIONS} OPTIONS ${GLOO_FEATURE_OPTIONS}
) )
vcpkg_cmake_install() vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/Gloo) vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/Gloo)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "gloo", "name": "gloo",
"version": "20201203", "version": "20201203",
"port-version": 1, "port-version": 2,
"description": "Collective communications library with various primitives for multi-machine training.", "description": "Collective communications library with various primitives for multi-machine training.",
"homepage": "https://github.com/facebookincubator/gloo", "homepage": "https://github.com/facebookincubator/gloo",
"supports": "x64 & linux", "supports": "x64 & linux",

View File

@ -9,7 +9,7 @@ vcpkg_from_github(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
) )
vcpkg_cmake_install() vcpkg_cmake_install()
@ -19,18 +19,18 @@ vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT}) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
file(COPY file(COPY
${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake"
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
) )
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
vcpkg_replace_string( vcpkg_replace_string(
${CURRENT_PACKAGES_DIR}/include/GL/glui.h "${CURRENT_PACKAGES_DIR}/include/GL/glui.h"
"ifdef GLUIDLL" "ifdef GLUIDLL"
"if 1 //ifdef GLUIDLL" "if 1 //ifdef GLUIDLL"
) )
endif() endif()
file(INSTALL ${SOURCE_PATH}/license.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/license.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "glui", "name": "glui",
"version-date": "2019-11-30", "version-date": "2019-11-30",
"port-version": 2, "port-version": 3,
"description": "GLUI is a GLUT-based C++ user interface library", "description": "GLUI is a GLUT-based C++ user interface library",
"homepage": "https://github.com/libglui/glui", "homepage": "https://github.com/libglui/glui",
"dependencies": [ "dependencies": [

View File

@ -11,28 +11,28 @@ vcpkg_download_distfile(ARCHIVE
vcpkg_extract_source_archive( vcpkg_extract_source_archive(
SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE} ARCHIVE "${ARCHIVE}"
SOURCE_BASE ${LIB_VERSION} SOURCE_BASE "${LIB_VERSION}"
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
# We can use file supplied with original sources # We can use file supplied with original sources
configure_file(${SOURCE_PATH}/build/vs2017/unistd.h ${SOURCE_PATH} COPYONLY) configure_file("${SOURCE_PATH}/build/vs2017/unistd.h" "${SOURCE_PATH}" COPYONLY)
configure_file(${SOURCE_PATH}/build/vs2017/config.h ${SOURCE_PATH} COPYONLY) configure_file("${SOURCE_PATH}/build/vs2017/config.h" "${SOURCE_PATH}" COPYONLY)
configure_file(${SOURCE_PATH}/build/vs2017/gmime.def ${SOURCE_PATH} COPYONLY) configure_file("${SOURCE_PATH}/build/vs2017/gmime.def" "${SOURCE_PATH}" COPYONLY)
vcpkg_find_acquire_program(PKGCONFIG) vcpkg_find_acquire_program(PKGCONFIG)
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG} "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
) )
vcpkg_cmake_install() vcpkg_cmake_install()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# License and man # License and man
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${LIB_NAME} RENAME copyright) file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${LIB_NAME}" RENAME copyright)
vcpkg_copy_pdbs() vcpkg_copy_pdbs()

View File

@ -1,7 +1,7 @@
{ {
"name": "gmime", "name": "gmime",
"version": "3.2.6", "version": "3.2.6",
"port-version": 4, "port-version": 5,
"description": "GMime is a C/C++ library which may be used for the creation and parsing of messages using the Multipurpose Internet Mail Extension (MIME).", "description": "GMime is a C/C++ library which may be used for the creation and parsing of messages using the Multipurpose Internet Mail Extension (MIME).",
"homepage": "https://developer.gnome.org/gmime/", "homepage": "https://developer.gnome.org/gmime/",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",

View File

@ -17,11 +17,11 @@ vcpkg_from_sourceforge(
disable_graphicsmagick_modules.patch disable_graphicsmagick_modules.patch
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
file(COPY ${CMAKE_CURRENT_LIST_DIR}/magick_types.h DESTINATION ${SOURCE_PATH}/magick) file(COPY "${CMAKE_CURRENT_LIST_DIR}/magick_types.h" DESTINATION "${SOURCE_PATH}/magick")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG OPTIONS_DEBUG
-DINSTALL_HEADERS=OFF -DINSTALL_HEADERS=OFF
) )
@ -31,16 +31,16 @@ vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-graphicsmagick) vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-graphicsmagick)
# copy license # copy license
file(INSTALL ${SOURCE_PATH}/Copyright.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/Copyright.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
# copy config # copy config
file(COPY ${SOURCE_PATH}/config/colors.mgk DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/config) file(COPY "${SOURCE_PATH}/config/colors.mgk" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/config")
file(COPY ${SOURCE_PATH}/config/log.mgk DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/config) file(COPY "${SOURCE_PATH}/config/log.mgk" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/config")
file(COPY ${SOURCE_PATH}/config/modules.mgk DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/config) file(COPY "${SOURCE_PATH}/config/modules.mgk" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/config")
file(READ ${SOURCE_PATH}/config/type-windows.mgk.in TYPE_MGK) file(READ "${SOURCE_PATH}/config/type-windows.mgk.in" TYPE_MGK)
string(REPLACE "@windows_font_dir@" "$ENV{SYSTEMROOT}/Fonts/" TYPE_MGK "${TYPE_MGK}") string(REPLACE "@windows_font_dir@" "$ENV{SYSTEMROOT}/Fonts/" TYPE_MGK "${TYPE_MGK}")
file(WRITE ${CURRENT_PACKAGES_DIR}/share/graphicsmagick/config/type.mgk "${TYPE_MGK}") file(WRITE "${CURRENT_PACKAGES_DIR}/share/graphicsmagick/config/type.mgk" "${TYPE_MGK}")
configure_file(${SOURCE_PATH}/config/delegates.mgk.in ${CURRENT_PACKAGES_DIR}/share/${PORT}/config/delegates.mgk @ONLY) configure_file("${SOURCE_PATH}/config/delegates.mgk.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/config/delegates.mgk" @ONLY)
vcpkg_copy_pdbs() vcpkg_copy_pdbs()

View File

@ -1,7 +1,7 @@
{ {
"name": "graphicsmagick", "name": "graphicsmagick",
"version": "1.3.37", "version": "1.3.37",
"port-version": 2, "port-version": 3,
"description": "Image processing library", "description": "Image processing library",
"homepage": "https://sourceforge.net/projects/graphicsmagick/", "homepage": "https://sourceforge.net/projects/graphicsmagick/",
"dependencies": [ "dependencies": [

View File

@ -16,10 +16,10 @@ vcpkg_from_github(
0001-disable-H5PLget_plugin-api.patch 0001-disable-H5PLget_plugin-api.patch
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}/lzf) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}/lzf")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}/lzf SOURCE_PATH "${SOURCE_PATH}/lzf"
OPTIONS OPTIONS
-Dlink_hdf5_SHARED=${link_hdf5_SHARED} -Dlink_hdf5_SHARED=${link_hdf5_SHARED}
) )
@ -28,6 +28,6 @@ vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/${PORT}) vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/${PORT})
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
configure_file(${SOURCE_PATH}/lzf/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) configure_file("${SOURCE_PATH}/lzf/LICENSE.txt" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)

View File

@ -1,7 +1,7 @@
{ {
"name": "h5py-lzf", "name": "h5py-lzf",
"version-date": "2019-12-04", "version-date": "2019-12-04",
"port-version": 2, "port-version": 3,
"description": "The LZF filter is an alternative DEFLATE-style compressor for HDF5 datasets, using the free LZF library by Marc Alexander Lehmann.", "description": "The LZF filter is an alternative DEFLATE-style compressor for HDF5 datasets, using the free LZF library by Marc Alexander Lehmann.",
"homepage": "https://github.com/h5py/h5py/tree/master/lzf", "homepage": "https://github.com/h5py/h5py/tree/master/lzf",
"dependencies": [ "dependencies": [

View File

@ -14,7 +14,7 @@ if(VCPKG_TARGET_IS_UWP)
endif() endif()
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DINSTALL_HAYAI=ON -DINSTALL_HAYAI=ON
-DBUILD_HAYAI_TESTS=OFF -DBUILD_HAYAI_TESTS=OFF
@ -23,42 +23,42 @@ vcpkg_cmake_configure(
vcpkg_cmake_install() vcpkg_cmake_install()
if(EXISTS ${CURRENT_PACKAGES_DIR}/CMake) if(EXISTS "${CURRENT_PACKAGES_DIR}/CMake")
vcpkg_cmake_config_fixup(CONFIG_PATH CMake) vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
elseif(EXISTS ${CURRENT_PACKAGES_DIR}/lib/CMake/${PORT}) elseif(EXISTS "${CURRENT_PACKAGES_DIR}/lib/CMake/${PORT}")
vcpkg_cmake_config_fixup(CONFIG_PATH lib/CMake/${PORT}) vcpkg_cmake_config_fixup(CONFIG_PATH lib/CMake/${PORT})
endif() endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle manual-link libraries # Handle manual-link libraries
if(EXISTS ${CURRENT_PACKAGES_DIR}/debug/lib/hayai_main.lib) if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/hayai_main.lib")
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/lib/manual-link) file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/lib/manual-link")
file(RENAME file(RENAME
${CURRENT_PACKAGES_DIR}/debug/lib/hayai_main.lib "${CURRENT_PACKAGES_DIR}/debug/lib/hayai_main.lib"
${CURRENT_PACKAGES_DIR}/debug/lib/manual-link/hayai_main.lib "${CURRENT_PACKAGES_DIR}/debug/lib/manual-link/hayai_main.lib"
) )
vcpkg_replace_string( vcpkg_replace_string(
${CURRENT_PACKAGES_DIR}/share/${PORT}/hayai-targets-debug.cmake "${CURRENT_PACKAGES_DIR}/share/${PORT}/hayai-targets-debug.cmake"
"\${CMAKE_CURRENT_LIST_DIR}/../../debug/lib/hayai_main.lib" "\${CMAKE_CURRENT_LIST_DIR}/../../debug/lib/hayai_main.lib"
"\${CMAKE_CURRENT_LIST_DIR}/../../debug/lib/manual-link/hayai_main.lib" "\${CMAKE_CURRENT_LIST_DIR}/../../debug/lib/manual-link/hayai_main.lib"
) )
endif() endif()
if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/hayai_main.lib) if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/hayai_main.lib")
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/lib/manual-link) file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/lib/manual-link")
file(RENAME file(RENAME
${CURRENT_PACKAGES_DIR}/lib/hayai_main.lib "${CURRENT_PACKAGES_DIR}/lib/hayai_main.lib"
${CURRENT_PACKAGES_DIR}/lib/manual-link/hayai_main.lib "${CURRENT_PACKAGES_DIR}/lib/manual-link/hayai_main.lib"
) )
vcpkg_replace_string( vcpkg_replace_string(
${CURRENT_PACKAGES_DIR}/share/${PORT}/hayai-targets-release.cmake "${CURRENT_PACKAGES_DIR}/share/${PORT}/hayai-targets-release.cmake"
"\${CMAKE_CURRENT_LIST_DIR}/../../lib/hayai_main.lib" "\${CMAKE_CURRENT_LIST_DIR}/../../lib/hayai_main.lib"
"\${CMAKE_CURRENT_LIST_DIR}/../../lib/manual-link/hayai_main.lib" "\${CMAKE_CURRENT_LIST_DIR}/../../lib/manual-link/hayai_main.lib"
) )
endif() endif()
# Handle copyright # Handle copyright
configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) configure_file("${SOURCE_PATH}/LICENSE.md" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)

View File

@ -1,7 +1,7 @@
{ {
"name": "hayai", "name": "hayai",
"version-date": "2019-08-10", "version-date": "2019-08-10",
"port-version": 2, "port-version": 3,
"description": "C++ benchmarking framework", "description": "C++ benchmarking framework",
"homepage": "https://github.com/nickbruun/hayai", "homepage": "https://github.com/nickbruun/hayai",
"dependencies": [ "dependencies": [

View File

@ -8,18 +8,17 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
) )
vcpkg_cmake_install() vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-http-parser) vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-http-parser)
# Handle copyright # Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE-MIT DESTINATION ${CURRENT_PACKAGES_DIR}/share/http-parser) file(INSTALL "${SOURCE_PATH}/LICENSE-MIT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/http-parser/LICENSE-MIT ${CURRENT_PACKAGES_DIR}/share/http-parser/copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "http-parser", "name": "http-parser",
"version": "2.9.4", "version": "2.9.4",
"port-version": 2, "port-version": 3,
"description": "HTTP Parser.", "description": "HTTP Parser.",
"homepage": "https://github.com/nodejs/http-parser", "homepage": "https://github.com/nodejs/http-parser",
"dependencies": [ "dependencies": [

View File

@ -1,28 +1,28 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_download_distfile(ARCHIVE vcpkg_download_distfile(ARCHIVE
URLS "http://www2.informatik.uni-freiburg.de/~stachnis/misc/libhungarian-v0.1.3.tgz" URLS "http://www2.informatik.uni-freiburg.de/~stachnis/misc/libhungarian-v${VERSION}.tgz"
FILENAME "libhungarian-v0.1.3.tgz" FILENAME "libhungarian-v${VERSION}.tgz"
SHA512 1fa105e351c307c07bb96892c9d4c44b167d92cbed80962a8653ac35b8afe00fcf5dcc2d920b95671d6c3cd86745362a64dd8dc173623a8179006e2c7b2cbc69 SHA512 1fa105e351c307c07bb96892c9d4c44b167d92cbed80962a8653ac35b8afe00fcf5dcc2d920b95671d6c3cd86745362a64dd8dc173623a8179006e2c7b2cbc69
) )
vcpkg_extract_source_archive( vcpkg_extract_source_archive(
SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE} ARCHIVE "${ARCHIVE}"
NO_REMOVE_ONE_LEVEL NO_REMOVE_ONE_LEVEL
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
) )
vcpkg_cmake_install() vcpkg_cmake_install()
vcpkg_cmake_config_fixup() vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright # Handle copyright
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/hungarian RENAME copyright) file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "hungarian", "name": "hungarian",
"version-string": "v0.1.3", "version": "0.1.3",
"port-version": 2, "port-version": 3,
"description": "C-implementation of the Hungarian Method: finding the optimal assignment (assigning a set of jobs to a set of machines) in O(n^3), where n=max{#jobs, #machines}. The implementation is a sligntly enhanced version of the implementation provided by the Stanford GraphBase", "description": "C-implementation of the Hungarian Method: finding the optimal assignment (assigning a set of jobs to a set of machines) in O(n^3), where n=max{#jobs, #machines}. The implementation is a sligntly enhanced version of the implementation provided by the Stanford GraphBase",
"dependencies": [ "dependencies": [
{ {

View File

@ -1,3 +1,5 @@
include("${CMAKE_CURRENT_LIST_DIR}/../vcpkg-cmake/vcpkg-port-config.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/../vcpkg-cmake-config/vcpkg-port-config.cmake")
function(ignition_modular_build_library) function(ignition_modular_build_library)
set(options DISABLE_PKGCONFIG_INSTALL) set(options DISABLE_PKGCONFIG_INSTALL)
@ -5,30 +7,29 @@ function(ignition_modular_build_library)
set(multiValueArgs OPTIONS) set(multiValueArgs OPTIONS)
cmake_parse_arguments(IML "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) cmake_parse_arguments(IML "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
vcpkg_find_acquire_program(PKGCONFIG) vcpkg_find_acquire_program(PKGCONFIG)
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${IML_SOURCE_PATH} SOURCE_PATH "${IML_SOURCE_PATH}"
PREFER_NINJA
DISABLE_PARALLEL_CONFIGURE DISABLE_PARALLEL_CONFIGURE
OPTIONS OPTIONS
-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG} "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
-DBUILD_TESTING=OFF -DBUILD_TESTING=OFF
${IML_OPTIONS} ${IML_OPTIONS}
) )
vcpkg_install_cmake(ADD_BIN_TO_PATH) vcpkg_cmake_install(ADD_BIN_TO_PATH)
# If necessary, move the CMake config files # If necessary, move the CMake config files
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake") if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake")
# Some ignition libraries install library subcomponents, that are effectively additional cmake packages # Some ignition libraries install library subcomponents, that are effectively additional cmake packages
# with name ${IML_CMAKE_PACKAGE_NAME}-${COMPONENT_NAME}, so it is needed to call vcpkg_fixup_cmake_targets for them as well # with name ${IML_CMAKE_PACKAGE_NAME}-${COMPONENT_NAME}, so it is needed to call vcpkg_cmake_config_fixup for them as well
file(GLOB COMPONENTS_CMAKE_PACKAGE_NAMES file(GLOB COMPONENTS_CMAKE_PACKAGE_NAMES
LIST_DIRECTORIES TRUE LIST_DIRECTORIES TRUE
RELATIVE "${CURRENT_PACKAGES_DIR}/lib/cmake/" RELATIVE "${CURRENT_PACKAGES_DIR}/lib/cmake/"
"${CURRENT_PACKAGES_DIR}/lib/cmake/*") "${CURRENT_PACKAGES_DIR}/lib/cmake/*")
foreach(COMPONENT_CMAKE_PACKAGE_NAME IN LISTS COMPONENTS_CMAKE_PACKAGE_NAMES) foreach(COMPONENT_CMAKE_PACKAGE_NAME IN LISTS COMPONENTS_CMAKE_PACKAGE_NAMES)
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/${COMPONENT_CMAKE_PACKAGE_NAME}" vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${COMPONENT_CMAKE_PACKAGE_NAME}"
TARGET_PATH "share/${COMPONENT_CMAKE_PACKAGE_NAME}" PACKAGE_NAME ${COMPONENT_CMAKE_PACKAGE_NAME}
DO_NOT_DELETE_PARENT_CONFIG_PATH) DO_NOT_DELETE_PARENT_CONFIG_PATH)
endforeach() endforeach()
@ -40,10 +41,10 @@ function(ignition_modular_build_library)
endif() endif()
# Remove unused files files # Remove unused files files
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake"
${CURRENT_PACKAGES_DIR}/debug/include "${CURRENT_PACKAGES_DIR}/debug/include"
${CURRENT_PACKAGES_DIR}/debug/lib/cmake "${CURRENT_PACKAGES_DIR}/debug/lib/cmake"
${CURRENT_PACKAGES_DIR}/debug/share) "${CURRENT_PACKAGES_DIR}/debug/share")
# Make pkg-config files relocatable # Make pkg-config files relocatable
if(NOT IML_DISABLE_PKGCONFIG_INSTALL) if(NOT IML_DISABLE_PKGCONFIG_INSTALL)
@ -52,8 +53,8 @@ function(ignition_modular_build_library)
endif() endif()
vcpkg_fixup_pkgconfig(${SYSTEM_LIBRARIES}) vcpkg_fixup_pkgconfig(${SYSTEM_LIBRARIES})
else() else()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/pkgconfig file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig"
${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig) "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
endif() endif()
# Find the relevant license file and install it # Find the relevant license file and install it
@ -62,7 +63,7 @@ function(ignition_modular_build_library)
elseif(EXISTS "${SOURCE_PATH}/README.md") elseif(EXISTS "${SOURCE_PATH}/README.md")
set(LICENSE_PATH "${SOURCE_PATH}/README.md") set(LICENSE_PATH "${SOURCE_PATH}/README.md")
endif() endif()
file(INSTALL ${LICENSE_PATH} DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${LICENSE_PATH}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
endfunction() endfunction()
## # ignition_modular_library ## # ignition_modular_library

View File

@ -1,7 +1,17 @@
{ {
"name": "ignition-modularscripts", "name": "ignition-modularscripts",
"version-date": "2022-05-11", "version-date": "2022-05-11",
"port-version": 1, "port-version": 2,
"description": "Vcpkg helpers to package ignition libraries", "description": "Vcpkg helpers to package ignition libraries",
"license": null "license": null,
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -10,18 +10,18 @@ vcpkg_from_github(
win32_ssize_t.patch win32_ssize_t.patch
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
) )
vcpkg_cmake_install() vcpkg_cmake_install()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT}) vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT})
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_fixup_pkgconfig() vcpkg_fixup_pkgconfig()

View File

@ -1,7 +1,7 @@
{ {
"name": "iniparser", "name": "iniparser",
"version-date": "2020-04-06", "version-date": "2020-04-06",
"port-version": 4, "port-version": 5,
"description": "C library for parsing INI-style files", "description": "C library for parsing INI-style files",
"homepage": "https://github.com/ndevilla/iniparser", "homepage": "https://github.com/ndevilla/iniparser",
"license": "MIT", "license": "MIT",

View File

@ -15,7 +15,7 @@ if (VCPKG_TARGET_IS_OSX)
endif() endif()
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DIO2D_WITHOUT_SAMPLES=1 -DIO2D_WITHOUT_SAMPLES=1
-DIO2D_WITHOUT_TESTS=1 -DIO2D_WITHOUT_TESTS=1
@ -25,13 +25,13 @@ vcpkg_cmake_configure(
vcpkg_cmake_install() vcpkg_cmake_install()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/io2d) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/io2d)
if (NOT VCPKG_TARGET_IS_OSX) if (NOT VCPKG_TARGET_IS_OSX)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/io2d/io2dConfig.cmake ${CURRENT_PACKAGES_DIR}/share/io2d/io2dTargets.cmake) file(RENAME "${CURRENT_PACKAGES_DIR}/share/io2d/io2dConfig.cmake" "${CURRENT_PACKAGES_DIR}/share/io2d/io2dTargets.cmake")
file(WRITE ${CURRENT_PACKAGES_DIR}/share/io2d/io2dConfig.cmake " file(WRITE "${CURRENT_PACKAGES_DIR}/share/io2d/io2dConfig.cmake" "
include(CMakeFindDependencyMacro) include(CMakeFindDependencyMacro)
find_dependency(unofficial-cairo CONFIG) find_dependency(unofficial-cairo CONFIG)
find_dependency(unofficial-graphicsmagick CONFIG) find_dependency(unofficial-graphicsmagick CONFIG)
@ -40,4 +40,4 @@ if (NOT VCPKG_TARGET_IS_OSX)
") ")
endif() endif()
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "io2d", "name": "io2d",
"version-date": "2020-09-14", "version-date": "2020-09-14",
"port-version": 4, "port-version": 5,
"description": "a lightweight, cross platform drawing library", "description": "a lightweight, cross platform drawing library",
"dependencies": [ "dependencies": [
{ {

View File

@ -15,7 +15,7 @@ vcpkg_from_sourceforge(
file(RENAME "${SOURCE_PATH}/VERSION" "${SOURCE_PATH}/VERSION.txt") file(RENAME "${SOURCE_PATH}/VERSION" "${SOURCE_PATH}/VERSION.txt")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DCMAKE_DISABLE_FIND_PACKAGE_LAPACK=ON -DCMAKE_DISABLE_FIND_PACKAGE_LAPACK=ON
-DCMAKE_DISABLE_FIND_PACKAGE_FFT=ON -DCMAKE_DISABLE_FIND_PACKAGE_FFT=ON
@ -25,13 +25,13 @@ vcpkg_cmake_configure(
vcpkg_cmake_install() vcpkg_cmake_install()
if(VCPKG_LIBRARY_LINKAGE STREQUAL static) if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif() endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_fixup_pkgconfig() vcpkg_fixup_pkgconfig()

View File

@ -1,7 +1,7 @@
{ {
"name": "itpp", "name": "itpp",
"version-semver": "4.3.1", "version-semver": "4.3.1",
"port-version": 9, "port-version": 10,
"description": "IT++ is a C++ library of mathematical, signal processing and communication classes and functions. Its main use is in simulation of communication systems and for performing research in the area of communications.", "description": "IT++ is a C++ library of mathematical, signal processing and communication classes and functions. Its main use is in simulation of communication systems and for performing research in the area of communications.",
"homepage": "http://itpp.sourceforge.net", "homepage": "http://itpp.sourceforge.net",
"dependencies": [ "dependencies": [

View File

@ -8,10 +8,10 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG OPTIONS_DEBUG
-DDISABLE_INSTALL_HEADERS=1 -DDISABLE_INSTALL_HEADERS=1
) )
@ -19,4 +19,4 @@ vcpkg_cmake_configure(
vcpkg_cmake_install() vcpkg_cmake_install()
# Handle copyright # Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/jbig2dec RENAME copyright) file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "jbig2dec", "name": "jbig2dec",
"version": "0.19", "version": "0.19",
"port-version": 2, "port-version": 3,
"description": "a decoder library and example utility implementing the JBIG2 bi-level image compression spec. Also known as ITU T.88 and ISO IEC 14492, and included by reference in Adobe's PDF version 1.4 and later.", "description": "a decoder library and example utility implementing the JBIG2 bi-level image compression spec. Also known as ITU T.88 and ISO IEC 14492, and included by reference in Adobe's PDF version 1.4 and later.",
"homepage": "https://github.com/ArtifexSoftware/jbig2dec", "homepage": "https://github.com/ArtifexSoftware/jbig2dec",
"dependencies": [ "dependencies": [

View File

@ -11,18 +11,18 @@ vcpkg_download_distfile(ARCHIVE
vcpkg_extract_source_archive( vcpkg_extract_source_archive(
SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE} ARCHIVE "${ARCHIVE}"
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}) SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install() vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/jbigkit) file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/jbigkit/COPYING ${CURRENT_PACKAGES_DIR}/share/jbigkit/copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "jbigkit", "name": "jbigkit",
"version": "2.1", "version": "2.1",
"port-version": 6, "port-version": 7,
"description": "A software implementation of the JBIG1 data compression standard (ITU-T T.82)", "description": "A software implementation of the JBIG1 data compression standard (ITU-T T.82)",
"homepage": "https://www.cl.cam.ac.uk/~mgk25/jbigkit", "homepage": "https://www.cl.cam.ac.uk/~mgk25/jbigkit",
"dependencies": [ "dependencies": [

View File

@ -18,7 +18,7 @@ vcpkg_from_github(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
) )
vcpkg_cmake_install() vcpkg_cmake_install()
@ -26,11 +26,11 @@ vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
file(GLOB_RECURSE JINJA2CPPLIGHT_EXES ${CURRENT_PACKAGES_DIR}/bin/jinja2cpplight_unittests*) file(GLOB_RECURSE JINJA2CPPLIGHT_EXES "${CURRENT_PACKAGES_DIR}/bin/jinja2cpplight_unittests*")
file(COPY ${JINJA2CPPLIGHT_EXES} DESTINATION ${CURRENT_PACKAGES_DIR}/tools) file(COPY ${JINJA2CPPLIGHT_EXES} DESTINATION "${CURRENT_PACKAGES_DIR}/tools")
file(REMOVE_RECURSE ${JINJA2CPPLIGHT_EXES}) file(REMOVE_RECURSE ${JINJA2CPPLIGHT_EXES})
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "jinja2cpplight", "name": "jinja2cpplight",
"version-date": "2018-05-08", "version-date": "2018-05-08",
"port-version": 2, "port-version": 3,
"description": "(very) lightweight version of Jinja2 for C++, Lightweight templating engine for C++, based on Jinja2.", "description": "(very) lightweight version of Jinja2 for C++, Lightweight templating engine for C++, based on Jinja2.",
"homepage": "https://github.com/hughperkins/Jinja2CppLight", "homepage": "https://github.com/hughperkins/Jinja2CppLight",
"supports": "!uwp", "supports": "!uwp",

View File

@ -10,15 +10,19 @@ vcpkg_from_github(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS -DBUILD_STATIC_LIBS=off -DJSON_SPIRIT_DEMOS=off -DJSON_SPIRIT_TESTS=off) OPTIONS
-DBUILD_STATIC_LIBS=OFF
-DJSON_SPIRIT_DEMOS=OFF
-DJSON_SPIRIT_TESTS=OFF
)
vcpkg_cmake_install() vcpkg_cmake_install()
# Handle copyright # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/json-spirit RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
if(VCPKG_LIBRARY_LINKAGE STREQUAL static) if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif() endif()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()

View File

@ -1,7 +1,7 @@
{ {
"name": "json-spirit", "name": "json-spirit",
"version": "4.1.0", "version": "4.1.0",
"port-version": 3, "port-version": 4,
"description": "json parser using boost library", "description": "json parser using boost library",
"dependencies": [ "dependencies": [
"boost-config", "boost-config",

View File

@ -10,7 +10,7 @@ vcpkg_from_github(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DJSON11_BUILD_TESTS:BOOL=OFF -DJSON11_BUILD_TESTS:BOOL=OFF
) )
@ -18,12 +18,11 @@ vcpkg_cmake_configure(
vcpkg_cmake_install() vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
file(INSTALL ${CURRENT_PORT_DIR}/json11-config.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/json11) file(INSTALL "${CURRENT_PORT_DIR}/json11-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright # Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/json11) file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/json11/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/json11/copyright)
vcpkg_fixup_pkgconfig() vcpkg_fixup_pkgconfig()

View File

@ -1,7 +1,7 @@
{ {
"name": "json11", "name": "json11",
"version-date": "2017-06-20", "version-date": "2017-06-20",
"port-version": 5, "port-version": 6,
"description": "json11 is a tiny JSON library for C++11, providing JSON parsing and serialization.", "description": "json11 is a tiny JSON library for C++11, providing JSON parsing and serialization.",
"dependencies": [ "dependencies": [
{ {

View File

@ -10,14 +10,14 @@ vcpkg_from_github(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}/json5_parser SOURCE_PATH "${SOURCE_PATH}/json5_parser"
) )
vcpkg_cmake_install() vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/json5-parser) vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/json5-parser)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) configure_file("${SOURCE_PATH}/LICENSE.txt" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)

View File

@ -1,7 +1,7 @@
{ {
"name": "json5-parser", "name": "json5-parser",
"version": "1.0.0", "version": "1.0.0",
"port-version": 4, "port-version": 5,
"description": "An enhancement of the JSON Spirit C++ library to understand json5.", "description": "An enhancement of the JSON Spirit C++ library to understand json5.",
"homepage": "https://github.com/Caltech-IPAC/json5_parser", "homepage": "https://github.com/Caltech-IPAC/json5_parser",
"dependencies": [ "dependencies": [

View File

@ -14,7 +14,7 @@ vcpkg_extract_source_archive(
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" KDSoap_STATIC) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" KDSoap_STATIC)
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DKDSoap_QT6=ON -DKDSoap_QT6=ON
-DKDSoap_STATIC=${KDSoap_STATIC} -DKDSoap_STATIC=${KDSoap_STATIC}
@ -26,12 +26,12 @@ vcpkg_cmake_config_fixup(PACKAGE_NAME KDSoap-qt6 CONFIG_PATH lib/cmake/KDSoap-qt
vcpkg_copy_tools(TOOL_NAMES kdwsdl2cpp-qt6 AUTO_CLEAN) vcpkg_copy_tools(TOOL_NAMES kdwsdl2cpp-qt6 AUTO_CLEAN)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif() endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,6 +1,7 @@
{ {
"name": "kd-soap", "name": "kd-soap",
"version": "2.1.1", "version": "2.1.1",
"port-version": 1,
"description": "A Qt-based client-side and server-side SOAP component", "description": "A Qt-based client-side and server-side SOAP component",
"homepage": "https://www.kdab.com/products/kd-soap", "homepage": "https://www.kdab.com/products/kd-soap",
"license": "MIT", "license": "MIT",

View File

@ -11,7 +11,7 @@ vcpkg_from_github(
fix-const-overloaded.patch fix-const-overloaded.patch
) )
file(REMOVE ${SOURCE_PATH}/cmake/modules/FindEigen3.cmake) file(REMOVE "${SOURCE_PATH}/cmake/modules/FindEigen3.cmake")
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES
interpolate ENABLE_INTERPOLATE interpolate ENABLE_INTERPOLATE
@ -22,7 +22,7 @@ if ("interpolate" IN_LIST FEATURES AND VCPKG_TARGET_IS_WINDOWS)
endif() endif()
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
${FEATURE_OPTIONS} ${FEATURE_OPTIONS}
-DFORCE_STATIC=OFF #already handled by vcpkg -DFORCE_STATIC=OFF #already handled by vcpkg
@ -45,5 +45,5 @@ vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Copyright and License # Copyright and License
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME license) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME license)

View File

@ -1,7 +1,7 @@
{ {
"name": "kenlm", "name": "kenlm",
"version": "20200924", "version": "20200924",
"port-version": 2, "port-version": 3,
"description": "KenLM: Faster and Smaller Language Model Queries", "description": "KenLM: Faster and Smaller Language Model Queries",
"supports": "!(arm64 & windows)", "supports": "!(arm64 & windows)",
"dependencies": [ "dependencies": [

View File

@ -9,14 +9,14 @@ vcpkg_from_github(
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE DISABLE_PARALLEL_CONFIGURE
) )
vcpkg_cmake_install() vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Kuku-2.1) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Kuku-2.1)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "kuku", "name": "kuku",
"version": "2.1", "version": "2.1",
"port-version": 2, "port-version": 3,
"description": "Kuku is a simple open-source (MIT licensed) cuckoo hashing library developed by the Cryptography and Privacy Research group at Microsoft.", "description": "Kuku is a simple open-source (MIT licensed) cuckoo hashing library developed by the Cryptography and Privacy Research group at Microsoft.",
"homepage": "https://github.com/microsoft/Kuku", "homepage": "https://github.com/microsoft/Kuku",
"dependencies": [ "dependencies": [

View File

@ -11,7 +11,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS -DBUILD_TESTING=${BUILD_WITH_TEST} OPTIONS -DBUILD_TESTING=${BUILD_WITH_TEST}
) )
@ -20,9 +20,8 @@ vcpkg_cmake_install()
# Move CMake config files to the right place # Move CMake config files to the right place
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/kvasir_mpl) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/kvasir_mpl)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
# Handle copyright # Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "kvasir-mpl", "name": "kvasir-mpl",
"version-date": "2019-08-06", "version-date": "2019-08-06",
"port-version": 2, "port-version": 3,
"description": "This library is part of the Kvasir project. Kvasir is a collection of zero cost statically checked libraries for resource constrained systems including microcontrollers.", "description": "This library is part of the Kvasir project. Kvasir is a collection of zero cost statically checked libraries for resource constrained systems including microcontrollers.",
"homepage": "https://github.com/kvasir-io/mpl", "homepage": "https://github.com/kvasir-io/mpl",
"dependencies": [ "dependencies": [

View File

@ -1,5 +1,5 @@
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled) SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
# Make sure LAPACK can be found # Make sure LAPACK can be found
vcpkg_cmake_configure(SOURCE_PATH ${CURRENT_PORT_DIR} vcpkg_cmake_configure(SOURCE_PATH "${CURRENT_PORT_DIR}"
OPTIONS -DCMAKE_PREFIX_PATH="${CURRENT_PACKAGES_DIR}") OPTIONS "-DCMAKE_PREFIX_PATH=${CURRENT_PACKAGES_DIR}")

View File

@ -1,7 +1,7 @@
{ {
"name": "lapack", "name": "lapack",
"version-date": "2022-02-22", "version-date": "2022-02-22",
"port-version": 1, "port-version": 2,
"description": "Metapackage for packages which provide LAPACK", "description": "Metapackage for packages which provide LAPACK",
"license": null, "license": null,
"dependencies": [ "dependencies": [

View File

@ -6,12 +6,12 @@ vcpkg_download_distfile(ARCHIVE
vcpkg_extract_source_archive( vcpkg_extract_source_archive(
SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE} ARCHIVE "${ARCHIVE}"
PATCHES add-install.patch # patch just adding the install commands to original CMakeLists.txt PATCHES add-install.patch # patch just adding the install commands to original CMakeLists.txt
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE DISABLE_PARALLEL_CONFIGURE
OPTIONS OPTIONS
-DHAVE_LAPACK=OFF -DHAVE_LAPACK=OFF
@ -22,7 +22,7 @@ vcpkg_cmake_configure(
vcpkg_cmake_install() vcpkg_cmake_install()
# Handle copyright # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
# Handle duplicated debug includes # Handle duplicated debug includes
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

View File

@ -1,7 +1,7 @@
{ {
"name": "levmar", "name": "levmar",
"version": "2.6", "version": "2.6",
"port-version": 2, "port-version": 3,
"description": "Levenberg-Marquardt nonlinear least squares optimization algorithm", "description": "Levenberg-Marquardt nonlinear least squares optimization algorithm",
"homepage": "http://users.ics.forth.gr/~lourakis/levmar/", "homepage": "http://users.ics.forth.gr/~lourakis/levmar/",
"supports": "windows & !uwp", "supports": "windows & !uwp",

View File

@ -11,11 +11,11 @@ vcpkg_from_sourceforge(
buffer_uninitialized.patch buffer_uninitialized.patch
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h DESTINATION ${SOURCE_PATH}/libaiff) file(COPY "${CMAKE_CURRENT_LIST_DIR}/config.h" DESTINATION "${SOURCE_PATH}/libaiff")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG OPTIONS_DEBUG
-DDISABLE_INSTALL_HEADERS=ON -DDISABLE_INSTALL_HEADERS=ON
) )
@ -33,4 +33,4 @@ foreach(HEADER ${HEADERS})
endforeach() endforeach()
# Handle copyright # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "libaiff", "name": "libaiff",
"version": "5.0", "version": "5.0",
"port-version": 8, "port-version": 9,
"description": "LibAiff is an open-source library, providing C applications transparent read & write operations for Audio Interchange File Format (AIFF) files, with the goal of supporting all of its features", "description": "LibAiff is an open-source library, providing C applications transparent read & write operations for Audio Interchange File Format (AIFF) files, with the goal of supporting all of its features",
"homepage": "https://sourceforge.net/projects/aifftools", "homepage": "https://sourceforge.net/projects/aifftools",
"dependencies": [ "dependencies": [

View File

@ -13,7 +13,7 @@ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" DISABLE_INSTALL_STATIC
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" DISABLE_INSTALL_SHARED) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" DISABLE_INSTALL_SHARED)
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DENABLE_UNIT_TEST=OFF -DENABLE_UNIT_TEST=OFF
-DENABLE_STRESS_TEST=OFF -DENABLE_STRESS_TEST=OFF
@ -24,12 +24,12 @@ vcpkg_cmake_configure(
vcpkg_cmake_install() vcpkg_cmake_install()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/LibCDS) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/LibCDS)
file(INSTALL file(INSTALL
${SOURCE_PATH}/LICENSE "${SOURCE_PATH}/LICENSE"
DESTINATION ${CURRENT_PACKAGES_DIR}/share/libcds RENAME copyright) DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_copy_pdbs() vcpkg_copy_pdbs()

View File

@ -1,7 +1,7 @@
{ {
"name": "libcds", "name": "libcds",
"version": "2.3.3", "version": "2.3.3",
"port-version": 3, "port-version": 4,
"description": "a collection of concurrent containers that don't require external (manual) synchronization for shared access, and safe memory reclamation (SMR) algorithms like Hazard Pointer and user-space RCU that is used as an epoch-based SMR.", "description": "a collection of concurrent containers that don't require external (manual) synchronization for shared access, and safe memory reclamation (SMR) algorithms like Hazard Pointer and user-space RCU that is used as an epoch-based SMR.",
"homepage": "https://github.com/khizmax/libcds", "homepage": "https://github.com/khizmax/libcds",
"license": "BSL-1.0", "license": "BSL-1.0",

View File

@ -8,17 +8,17 @@ vcpkg_from_github(
if (NOT VCPKG_USE_HEAD_VERSION) if (NOT VCPKG_USE_HEAD_VERSION)
message("If you would like to use cmake with the port, use `--head` option with vcpkg install.") message("If you would like to use cmake with the port, use `--head` option with vcpkg install.")
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
endif() endif()
if (NOT VCPKG_USE_HEAD_VERSION) if (NOT VCPKG_USE_HEAD_VERSION)
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
) )
else() else()
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
-DBUILD_EXAMPLES=OFF -DBUILD_EXAMPLES=OFF
-DBUILD_TESTS=OFF -DBUILD_TESTS=OFF
@ -30,11 +30,11 @@ vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
if (VCPKG_USE_HEAD_VERSION) if (VCPKG_USE_HEAD_VERSION)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libconfig) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libconfig)
endif() endif()
foreach(FILE ${CURRENT_PACKAGES_DIR}/include/libconfig.h++ ${CURRENT_PACKAGES_DIR}/include/libconfig.h) foreach(FILE "${CURRENT_PACKAGES_DIR}/include/libconfig.h++" "${CURRENT_PACKAGES_DIR}/include/libconfig.h")
file(READ ${FILE} _contents) file(READ ${FILE} _contents)
string(REPLACE "defined(LIBCONFIGXX_EXPORTS)" "0" _contents "${_contents}") string(REPLACE "defined(LIBCONFIGXX_EXPORTS)" "0" _contents "${_contents}")
string(REPLACE "defined(LIBCONFIG_EXPORTS)" "0" _contents "${_contents}") string(REPLACE "defined(LIBCONFIG_EXPORTS)" "0" _contents "${_contents}")
@ -49,4 +49,4 @@ foreach(FILE ${CURRENT_PACKAGES_DIR}/include/libconfig.h++ ${CURRENT_PACKAGES_DI
file(WRITE ${FILE} "${_contents}") file(WRITE ${FILE} "${_contents}")
endforeach() endforeach()
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{ {
"name": "libconfig", "name": "libconfig",
"version": "1.7.3", "version": "1.7.3",
"port-version": 2, "port-version": 3,
"description": "C/C++ library for processing configuration files", "description": "C/C++ library for processing configuration files",
"homepage": "https://github.com/hyperrealm/libconfig", "homepage": "https://github.com/hyperrealm/libconfig",
"dependencies": [ "dependencies": [

Some files were not shown because too many files have changed in this diff Show More