[many ports]switch to vcpkg-cmake / vckg-cmake-config part 4 (#29884)

* [many ports]switch to vcpkg-cmake / vckg-cmake-config part 4

* version

* typo

* version

* typo

* version

* Remove PREFER_NINJA

* version

* deprecated vcpkg_extract_source_archive_ex

* version

* fix argument

* version

* More rename

* version

---------

Co-authored-by: jyu49 <yu_jack@apple.com>
This commit is contained in:
Jack·Boos·Yu 2023-03-02 02:39:14 +08:00 committed by GitHub
parent 326c89b9d7
commit 43c6e295a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
151 changed files with 1175 additions and 578 deletions

View File

@ -33,12 +33,12 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
) )
# 'cuda' feature in Windows failes with Ninja because of parallel PDB access. Make it optional # 'cuda' feature in Windows failes with Ninja because of parallel PDB access. Make it optional
set(NINJA_OPTION PREFER_NINJA) set(NINJA_OPTION WINDOWS_USE_MSBUILD)
if("cuda" IN_LIST FEATURES) if(NOT "cuda" IN_LIST FEATURES)
unset(NINJA_OPTION) unset(NINJA_OPTION)
endif() endif()
set(FLATC_EXEC ${CURRENT_HOST_INSTALLED_DIR}/tools/flatbuffers/flatc${VCPKG_HOST_EXECUTABLE_SUFFIX}) set(FLATC_EXEC "${CURRENT_HOST_INSTALLED_DIR}/tools/flatbuffers/flatc${VCPKG_HOST_EXECUTABLE_SUFFIX}")
if (NOT EXISTS "${FLATC_EXEC}") if (NOT EXISTS "${FLATC_EXEC}")
message(FATAL_ERROR "Expected ${FLATC_EXEC} to exist.") message(FATAL_ERROR "Expected ${FLATC_EXEC} to exist.")
endif() endif()
@ -66,8 +66,8 @@ endif()
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
${NINJA_OPTION} ${NINJA_OPTION}
OPTIONS OPTIONS
${FEATURE_OPTIONS} ${PLATFORM_OPTIONS} ${FEATURE_OPTIONS} ${PLATFORM_OPTIONS}
@ -77,7 +77,7 @@ vcpkg_configure_cmake(
OPTIONS_DEBUG OPTIONS_DEBUG
-DMNN_DEBUG_MEMORY=ON -DMNN_DEBUG_TENSOR_SIZE=ON -DMNN_DEBUG_MEMORY=ON -DMNN_DEBUG_TENSOR_SIZE=ON
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
vcpkg_download_distfile(COPYRIGHT_PATH vcpkg_download_distfile(COPYRIGHT_PATH
@ -86,19 +86,19 @@ vcpkg_download_distfile(COPYRIGHT_PATH
SHA512 98f6b79b778f7b0a15415bd750c3a8a097d650511cb4ec8115188e115c47053fe700f578895c097051c9bc3dfb6197c2b13a15de203273e1a3218884f86e90e8 SHA512 98f6b79b778f7b0a15415bd750c3a8a097d650511cb4ec8115188e115c47053fe700f578895c097051c9bc3dfb6197c2b13a15de203273e1a3218884f86e90e8
) )
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/${PORT}) file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(RENAME ${COPYRIGHT_PATH} ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright) file(RENAME "${COPYRIGHT_PATH}" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
if(VCPKG_TARGET_IS_OSX OR VCPKG_TARGET_IS_IOS) if(VCPKG_TARGET_IS_OSX OR VCPKG_TARGET_IS_IOS)
if("metal" IN_LIST FEATURES) if("metal" IN_LIST FEATURES)
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/mnn.metallib file(RENAME "${CURRENT_PACKAGES_DIR}/bin/mnn.metallib"
${CURRENT_PACKAGES_DIR}/share/${PORT}/mnn.metallib) "${CURRENT_PACKAGES_DIR}/share/${PORT}/mnn.metallib")
endif() endif()
else() else()
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/${PORT}) file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/${PORT}")
endif() endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
if("test" IN_LIST FEATURES) if("test" IN_LIST FEATURES)
# no install(TARGETS) for the following binaries. check the buildtrees... # no install(TARGETS) for the following binaries. check the buildtrees...
# vcpkg_copy_tools( # vcpkg_copy_tools(

View File

@ -1,7 +1,7 @@
{ {
"name": "mnn", "name": "mnn",
"version": "1.1.0", "version": "1.1.0",
"port-version": 3, "port-version": 4,
"description": "MNN is a blazing fast, lightweight deep learning framework, battle-tested by business-critical use cases in Alibaba", "description": "MNN is a blazing fast, lightweight deep learning framework, battle-tested by business-critical use cases in Alibaba",
"homepage": "https://www.mnn.zone/", "homepage": "https://www.mnn.zone/",
"license": "Apache-2.0", "license": "Apache-2.0",
@ -13,7 +13,11 @@
"host": true "host": true
}, },
"rapidjson", "rapidjson",
"stb" "stb",
{
"name": "vcpkg-cmake",
"host": true
}
], ],
"features": { "features": {
"cuda": { "cuda": {

View File

@ -8,26 +8,26 @@ vcpkg_from_github(
fix.patch fix.patch
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_copy_pdbs()
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/MOOS) file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/MOOS")
if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/pAntler") if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/pAntler")
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pAntler ${CURRENT_PACKAGES_DIR}/tools/MOOS/pAntler) file(RENAME "${CURRENT_PACKAGES_DIR}/bin/pAntler" "${CURRENT_PACKAGES_DIR}/tools/MOOS/pAntler")
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pLogger ${CURRENT_PACKAGES_DIR}/tools/MOOS/pLoggers) file(RENAME "${CURRENT_PACKAGES_DIR}/bin/pLogger" "${CURRENT_PACKAGES_DIR}/tools/MOOS/pLoggers")
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pMOOSBridge ${CURRENT_PACKAGES_DIR}/tools/MOOS/pMOOSBridge) file(RENAME "${CURRENT_PACKAGES_DIR}/bin/pMOOSBridge" "${CURRENT_PACKAGES_DIR}/tools/MOOS/pMOOSBridge")
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pScheduler ${CURRENT_PACKAGES_DIR}/tools/MOOS/pScheduler) file(RENAME "${CURRENT_PACKAGES_DIR}/bin/pScheduler" "${CURRENT_PACKAGES_DIR}/tools/MOOS/pScheduler")
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pShare ${CURRENT_PACKAGES_DIR}/tools/MOOS/pShare) file(RENAME "${CURRENT_PACKAGES_DIR}/bin/pShare" "${CURRENT_PACKAGES_DIR}/tools/MOOS/pShare")
endif() endif()
if(VCPKG_LIBRARY_LINKAGE STREQUAL static) if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug")
endif() endif()
file(WRITE ${CURRENT_PACKAGES_DIR}/include/fake_header.h "// fake header to pass vcpkg post install check \n") file(WRITE "${CURRENT_PACKAGES_DIR}/include/fake_header.h" "// fake header to pass vcpkg post install check \n")
file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "see moos-core for copyright\n" ) file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" "see moos-core for copyright\n" )

View File

@ -1,10 +1,14 @@
{ {
"name": "moos-essential", "name": "moos-essential",
"version-string": "10.0.1", "version-string": "10.0.1",
"port-version": 3, "port-version": 4,
"description": "a set of useful applications that leverage the core-moos communications layer.", "description": "a set of useful applications that leverage the core-moos communications layer.",
"homepage": "https://sites.google.com/site/moossoftware/", "homepage": "https://sites.google.com/site/moossoftware/",
"dependencies": [ "dependencies": [
"moos-core" "moos-core",
{
"name": "vcpkg-cmake",
"host": true
}
] ]
} }

View File

@ -6,27 +6,26 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DBUILD_CONSOLE_TOOLS=ON -DBUILD_CONSOLE_TOOLS=ON
-DBUILD_GRAPHICAL_TOOLS=OFF #${BUILD_GRAPHICAL_TOOLS} -DBUILD_GRAPHICAL_TOOLS=OFF #${BUILD_GRAPHICAL_TOOLS}
) )
vcpkg_install_cmake() vcpkg_cmake_install()
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/MOOS) file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/MOOS")
if (VCPKG_TARGET_IS_WINDOWS) if (VCPKG_TARGET_IS_WINDOWS)
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/uPoke.exe ${CURRENT_PACKAGES_DIR}/tools/MOOS/uPoke.exe) file(RENAME "${CURRENT_PACKAGES_DIR}/bin/uPoke.exe" "${CURRENT_PACKAGES_DIR}/tools/MOOS/uPoke.exe")
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/iRemoteLite.exe ${CURRENT_PACKAGES_DIR}/tools/MOOS/iRemoteLite.exe) file(RENAME "${CURRENT_PACKAGES_DIR}/bin/iRemoteLite.exe" "${CURRENT_PACKAGES_DIR}/tools/MOOS/iRemoteLite.exe")
else() else()
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/uPoke ${CURRENT_PACKAGES_DIR}/tools/MOOS/uPoke) file(RENAME "${CURRENT_PACKAGES_DIR}/bin/uPoke" "${CURRENT_PACKAGES_DIR}/tools/MOOS/uPoke")
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/iRemoteLite ${CURRENT_PACKAGES_DIR}/tools/MOOS/iRemoteLite) file(RENAME "${CURRENT_PACKAGES_DIR}/bin/iRemoteLite" "${CURRENT_PACKAGES_DIR}/tools/MOOS/iRemoteLite")
endif() endif()
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/MOOS) vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/MOOS")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug")
file(WRITE ${CURRENT_PACKAGES_DIR}/include/fake_header_ui.h "// fake header to pass vcpkg post install check \n") file(WRITE "${CURRENT_PACKAGES_DIR}/include/fake_header_ui.h" "// fake header to pass vcpkg post install check \n")
file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "see moos-core for copyright\n" ) file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" "see moos-core for copyright\n" )

View File

@ -1,10 +1,14 @@
{ {
"name": "moos-ui", "name": "moos-ui",
"version-string": "10.0.1", "version-string": "10.0.1",
"port-version": 3, "port-version": 4,
"description": "set of user interface tools to use and leverage the MOOS project.", "description": "set of user interface tools to use and leverage the MOOS project.",
"homepage": "https://sites.google.com/site/moossoftware/", "homepage": "https://sites.google.com/site/moossoftware/",
"dependencies": [ "dependencies": [
"moos-core" "moos-core",
{
"name": "vcpkg-cmake",
"host": true
}
] ]
} }

View File

@ -8,23 +8,23 @@ vcpkg_from_github(
HEAD_REF main HEAD_REF main
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE DISABLE_PARALLEL_CONFIGURE
PREFER_NINJA
OPTIONS OPTIONS
-DBUILD_TESTING=OFF -DBUILD_TESTING=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/morton-nd/cmake TARGET_PATH) vcpkg_cmake_config_fixup(CONFIG_PATH share/morton-nd/cmake)
file(REMOVE_RECURSE file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug "${CURRENT_PACKAGES_DIR}/debug"
${CURRENT_PACKAGES_DIR}/share/doc "${CURRENT_PACKAGES_DIR}/share/doc"
) )
# 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)
file(COPY ${SOURCE_PATH}/NOTICE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) file(COPY "${SOURCE_PATH}/NOTICE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

View File

@ -1,7 +1,17 @@
{ {
"name": "morton-nd", "name": "morton-nd",
"version-string": "4.0.0", "version-string": "4.0.0",
"port-version": 1, "port-version": 2,
"description": "header-only constexpr library for fast Morton encoding/decoding in N dimensions.", "description": "header-only constexpr library for fast Morton encoding/decoding in N dimensions.",
"homepage": "https://github.com/kevinhartman/morton-nd" "homepage": "https://github.com/kevinhartman/morton-nd",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -6,17 +6,17 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/mpark_variant TARGET_PATH share/mpark_variant) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/mpark_variant PACKAGE_NAME mpark_variant)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL file(INSTALL
${SOURCE_PATH}/LICENSE.md "${SOURCE_PATH}/LICENSE.md"
DESTINATION ${CURRENT_PACKAGES_DIR}/share/mpark-variant RENAME copyright) DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,6 +1,16 @@
{ {
"name": "mpark-variant", "name": "mpark-variant",
"version-string": "1.4.0", "version-string": "1.4.0",
"port-version": 1, "port-version": 2,
"description": "an implementation of C++17 std::variant for C++11/14/17." "description": "an implementation of C++17 std::variant for C++11/14/17.",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -18,22 +18,20 @@ else()
set(MSGPACK_ENABLE_STATIC OFF) set(MSGPACK_ENABLE_STATIC OFF)
endif() endif()
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DMSGPACK_ENABLE_SHARED=${MSGPACK_ENABLE_SHARED} -DMSGPACK_ENABLE_SHARED=${MSGPACK_ENABLE_SHARED}
-DMSGPACK_ENABLE_STATIC=${MSGPACK_ENABLE_STATIC} -DMSGPACK_ENABLE_STATIC=${MSGPACK_ENABLE_STATIC}
-DMSGPACK_BUILD_EXAMPLES=OFF -DMSGPACK_BUILD_EXAMPLES=OFF
-DMSGPACK_BUILD_TESTS=OFF) -DMSGPACK_BUILD_TESTS=OFF)
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/msgpack) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/msgpack)
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/msgpack) file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/msgpack/COPYING ${CURRENT_PACKAGES_DIR}/share/msgpack/copyright)
vcpkg_fixup_pkgconfig() vcpkg_fixup_pkgconfig()

View File

@ -1,8 +1,18 @@
{ {
"name": "msgpack", "name": "msgpack",
"version": "3.3.0", "version": "3.3.0",
"port-version": 3, "port-version": 4,
"description": "MessagePack is an efficient binary serialization format, which lets you exchange data among multiple languages like JSON, except that it's faster and smaller.", "description": "MessagePack is an efficient binary serialization format, which lets you exchange data among multiple languages like JSON, except that it's faster and smaller.",
"homepage": "https://github.com/msgpack/msgpack-c", "homepage": "https://github.com/msgpack/msgpack-c",
"license": "BSL-1.0" "license": "BSL-1.0",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -11,19 +11,18 @@ vcpkg_from_github(
disable-werror.patch disable-werror.patch
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DMSGPACK11_BUILD_TESTS=OFF -DMSGPACK11_BUILD_TESTS=OFF
-DMSGPACK11_BUILD_EXAMPLES=OFF -DMSGPACK11_BUILD_EXAMPLES=OFF
) )
vcpkg_install_cmake() 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(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)
vcpkg_fixup_pkgconfig() vcpkg_fixup_pkgconfig()

View File

@ -1,10 +1,14 @@
{ {
"name": "msgpack11", "name": "msgpack11",
"version": "0.0.10", "version": "0.0.10",
"port-version": 3, "port-version": 4,
"description": "msgpack11 is a tiny MsgPack library for C++11, providing MsgPack parsing and serialization.This library is inspired by json11.The API of msgpack11 is designed to be similar with json11.", "description": "msgpack11 is a tiny MsgPack library for C++11, providing MsgPack parsing and serialization.This library is inspired by json11.The API of msgpack11 is designed to be similar with json11.",
"homepage": "https://msgpack.org", "homepage": "https://msgpack.org",
"dependencies": [ "dependencies": [
"gtest" "gtest",
{
"name": "vcpkg-cmake",
"host": true
}
] ]
} }

View File

@ -11,9 +11,9 @@ vcpkg_from_github(
fix-dependency-catch2.patch fix-dependency-catch2.patch
) )
file(REMOVE_RECURSE ${SOURCE_PATH}/lib) file(REMOVE_RECURSE "${SOURCE_PATH}/lib")
file(MAKE_DIRECTORY ${SOURCE_PATH}/lib) file(MAKE_DIRECTORY "${SOURCE_PATH}/lib")
configure_file(${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt ${SOURCE_PATH}/lib/CMakeLists.txt) configure_file("${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" "${SOURCE_PATH}/lib/CMakeLists.txt")
if(VCPKG_TARGET_IS_WINDOWS) if(VCPKG_TARGET_IS_WINDOWS)
set(PLATFORM WIN32) set(PLATFORM WIN32)
@ -28,9 +28,8 @@ else()
message(FATAL_ERROR "Unknown system: ${VCPKG_CMAKE_SYSTEM_NAME}") message(FATAL_ERROR "Unknown system: ${VCPKG_CMAKE_SYSTEM_NAME}")
endif() endif()
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
NO_CHARSET_FLAG NO_CHARSET_FLAG
DISABLE_PARALLEL_CONFIGURE DISABLE_PARALLEL_CONFIGURE
OPTIONS OPTIONS
@ -42,10 +41,10 @@ vcpkg_configure_cmake(
-DCRYPTO_LIB=${CRYPTO_LIB} -DCRYPTO_LIB=${CRYPTO_LIB}
) )
vcpkg_install_cmake() 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(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": "msix", "name": "msix",
"version": "1.7", "version": "1.7",
"port-version": 4, "port-version": 5,
"description": "The MSIX Packaging SDK project is an effort to enable developers on a variety of platforms to pack and unpack packages for the purposes of distribution from either the Microsoft Store, or their own content distribution networks.The MSIX Packaging APIs that a client app would use to interact with .msix/.appx packages are a subset of those documented here. See sample/ExtractContentsSample/ExtractContentsSample.cpp for additional details.", "description": "The MSIX Packaging SDK project is an effort to enable developers on a variety of platforms to pack and unpack packages for the purposes of distribution from either the Microsoft Store, or their own content distribution networks.The MSIX Packaging APIs that a client app would use to interact with .msix/.appx packages are a subset of those documented here. See sample/ExtractContentsSample/ExtractContentsSample.cpp for additional details.",
"homepage": "https://github.com/microsoft/msix-packaging", "homepage": "https://github.com/microsoft/msix-packaging",
"license": "MIT", "license": "MIT",
@ -12,6 +12,10 @@
"name": "openssl", "name": "openssl",
"platform": "!uwp & !windows" "platform": "!uwp & !windows"
}, },
{
"name": "vcpkg-cmake",
"host": true
},
"xerces-c", "xerces-c",
"zlib" "zlib"
] ]

View File

@ -9,17 +9,16 @@ vcpkg_from_github(
PATCHES do-not-force-release.patch PATCHES do-not-force-release.patch
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/mstch) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/mstch)
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}/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,10 +1,18 @@
{ {
"name": "mstch", "name": "mstch",
"version-string": "1.0.2", "version-string": "1.0.2",
"port-version": 3, "port-version": 4,
"description": "Mstch is a complete implementation of {{mustache}} templates using modern C++", "description": "Mstch is a complete implementation of {{mustache}} templates using modern C++",
"homepage": "https://github.com/no1msd/mstch", "homepage": "https://github.com/no1msd/mstch",
"dependencies": [ "dependencies": [
"boost-variant" "boost-variant",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
] ]
} }

View File

@ -1,24 +1,23 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github( vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH OUT_SOURCE_PATH SOURCE_PATH
REPO aappleby/smhasher REPO aappleby/smhasher
REF 61a0530f28277f2e850bfc39600ce61d02b518de REF 61a0530f28277f2e850bfc39600ce61d02b518de
SHA512 36877b53386153c20421ccd32d544c28ee72f6f13ea37c14ab1a1db378f6463db28339b2149671c12611384497bf595b798e99c34ea0ebceb6f9ef2f8908a2b6 SHA512 36877b53386153c20421ccd32d544c28ee72f6f13ea37c14ab1a1db378f6463db28339b2149671c12611384497bf595b798e99c34ea0ebceb6f9ef2f8908a2b6
HEAD_REF master HEAD_REF master
) )
configure_file(${CURRENT_PORT_DIR}/CMakeLists.txt ${SOURCE_PATH}/CMakeLists.txt COPYONLY) configure_file("${CURRENT_PORT_DIR}/CMakeLists.txt" "${SOURCE_PATH}/CMakeLists.txt" COPYONLY)
configure_file(${CURRENT_PORT_DIR}/Config.cmake.in ${SOURCE_PATH}/Config.cmake.in COPYONLY) configure_file("${CURRENT_PORT_DIR}/Config.cmake.in" "${SOURCE_PATH}/Config.cmake.in" COPYONLY)
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT}) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "MurmurHash3 was written by Austin Appleby, and is placed in the public domain. The author hereby disclaims copyright to this source code.") file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" "MurmurHash3 was written by Austin Appleby, and is placed in the public domain. The author hereby disclaims copyright to this source code.")

View File

@ -1,8 +1,18 @@
{ {
"name": "murmurhash", "name": "murmurhash",
"version-date": "2016-01-09", "version-date": "2016-01-09",
"port-version": 5, "port-version": 6,
"description": "MurmurHash a family of hash functions.", "description": "MurmurHash a family of hash functions.",
"homepage": "https://github.com/aappleby/smhasher", "homepage": "https://github.com/aappleby/smhasher",
"supports": "!uwp & !arm" "supports": "!uwp & !arm",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -7,29 +7,28 @@ endif()
vcpkg_from_github( vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH OUT_SOURCE_PATH SOURCE_PATH
REPO cnjinhao/nana REPO cnjinhao/nana
REF 554c4fe87fc31b8ee104228e9117d545d34855b5 # v1.7.4 REF 554c4fe87fc31b8ee104228e9117d545d34855b5 # v1.7.4
SHA512 d9db8ea1bd47fe663b8e2443a1a3e279760dbd11ef6bc78d9dc8f6fd12f9736b8c8315dfc84d21325e02ad6b2dc3a429593ac80e7610097ddc7253668c383178 SHA512 d9db8ea1bd47fe663b8e2443a1a3e279760dbd11ef6bc78d9dc8f6fd12f9736b8c8315dfc84d21325e02ad6b2dc3a429593ac80e7610097ddc7253668c383178
HEAD_REF develop HEAD_REF develop
PATCHES PATCHES
fix-build-error.patch fix-build-error.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.cmake.in DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/config.cmake.in" DESTINATION "${SOURCE_PATH}")
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DNANA_ENABLE_PNG=ON -DNANA_ENABLE_PNG=ON
-DNANA_ENABLE_JPEG=ON -DNANA_ENABLE_JPEG=ON
OPTIONS_DEBUG OPTIONS_DEBUG
-DNANA_INSTALL_HEADERS=OFF) -DNANA_INSTALL_HEADERS=OFF)
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-nana TARGET_PATH share/unofficial-nana) vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-nana)
vcpkg_copy_pdbs() 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)

View File

@ -1,7 +1,7 @@
{ {
"name": "nana", "name": "nana",
"version-string": "1.7.4", "version-string": "1.7.4",
"port-version": 2, "port-version": 3,
"description": "Cross-platform library for GUI programming in modern C++ style.", "description": "Cross-platform library for GUI programming in modern C++ style.",
"homepage": "https://github.com/cnjinhao/nana", "homepage": "https://github.com/cnjinhao/nana",
"dependencies": [ "dependencies": [
@ -14,6 +14,14 @@
"platform": "!uwp & !windows & !mingw" "platform": "!uwp & !windows & !mingw"
}, },
"libjpeg-turbo", "libjpeg-turbo",
"libpng" "libpng",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
] ]
} }

View File

@ -6,23 +6,22 @@ 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}")
file(COPY ${CMAKE_CURRENT_LIST_DIR}/nanovgConfig.cmake DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/nanovgConfig.cmake" DESTINATION "${SOURCE_PATH}")
file(GLOB STB_SRCS ${SOURCE_PATH}/src/stb_*) file(GLOB STB_SRCS "${SOURCE_PATH}/src/stb_*")
if(STB_SRCS) if(STB_SRCS)
file(REMOVE_RECURSE ${STB_SRCS}) file(REMOVE_RECURSE ${STB_SRCS})
endif() endif()
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
) )
vcpkg_install_cmake() 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"
${CURRENT_PACKAGES_DIR}/debug/share) "${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,11 +1,15 @@
{ {
"name": "nanovg", "name": "nanovg",
"version-date": "2019-08-30", "version-date": "2019-08-30",
"port-version": 5, "port-version": 6,
"description": "NanoVG is small antialiased vector graphics rendering library for OpenGL.", "description": "NanoVG is small antialiased vector graphics rendering library for OpenGL.",
"homepage": "https://github.com/memononen/nanovg", "homepage": "https://github.com/memononen/nanovg",
"supports": "!uwp", "supports": "!uwp",
"dependencies": [ "dependencies": [
"stb" "stb",
{
"name": "vcpkg-cmake",
"host": true
}
] ]
} }

View File

@ -14,11 +14,10 @@ vcpkg_from_github(
) )
#Provided by upstream https://github.com/Unidata/netcdf-cxx4/blob/master/netCDFCxxConfig.cmake.in #Provided by upstream https://github.com/Unidata/netcdf-cxx4/blob/master/netCDFCxxConfig.cmake.in
file(COPY ${CMAKE_CURRENT_LIST_DIR}/netCDFCxxConfig.cmake.in DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/netCDFCxxConfig.cmake.in" DESTINATION "${SOURCE_PATH}")
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DNCXX_ENABLE_TESTS=OFF -DNCXX_ENABLE_TESTS=OFF
-DCMAKE_INSTALL_CMAKECONFIGDIR=share/netCDFCxx -DCMAKE_INSTALL_CMAKECONFIGDIR=share/netCDFCxx
@ -27,16 +26,16 @@ vcpkg_configure_cmake(
# OPTIONS_DEBUG -DDEBUGGABLE=1 # OPTIONS_DEBUG -DDEBUGGABLE=1
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/netCDFCxx TARGET_PATH share/netCDFCxx) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/netCDFCxx PACKAGE_NAME netCDFCxx)
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
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")
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()
# 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,11 +1,19 @@
{ {
"name": "netcdf-cxx4", "name": "netcdf-cxx4",
"version-string": "4.3.1", "version-string": "4.3.1",
"port-version": 3, "port-version": 4,
"description": "a set of machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.", "description": "a set of machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.",
"homepage": "https://github.com/Unidata/netcdf-cxx4", "homepage": "https://github.com/Unidata/netcdf-cxx4",
"dependencies": [ "dependencies": [
"hdf5", "hdf5",
"netcdf-c" "netcdf-c",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
] ]
} }

View File

@ -7,21 +7,20 @@ vcpkg_from_github(
) )
#make sure we don't use any integrated pre-built library nor any unnecessary CMake module #make sure we don't use any integrated pre-built library nor any unnecessary CMake module
file(REMOVE_RECURSE ${SOURCE_PATH}/test) file(REMOVE_RECURSE "${SOURCE_PATH}/test")
file(REMOVE ${SOURCE_PATH}/CMakeLists.txt) file(REMOVE "${SOURCE_PATH}/CMakeLists.txt")
file(COPY ${CURRENT_PORT_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CURRENT_PORT_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets() vcpkg_cmake_config_fixup()
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(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,17 @@
{ {
"name": "nlohmann-fifo-map", "name": "nlohmann-fifo-map",
"version-string": "2018.05.07", "version-string": "2018.05.07",
"port-version": 2, "port-version": 3,
"description": "a FIFO-ordered associative container for C++", "description": "a FIFO-ordered associative container for C++",
"homepage": "https://github.com/nlohmann/fifo_map" "homepage": "https://github.com/nlohmann/fifo_map",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -6,22 +6,21 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DNNGPP_BUILD_DEMOS=OFF -DNNGPP_BUILD_DEMOS=OFF
-DNNGPP_BUILD_TESTS=OFF -DNNGPP_BUILD_TESTS=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
# Move CMake config files to the right place # Move CMake config files to the right place
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT}) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
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(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,10 +1,18 @@
{ {
"name": "nngpp", "name": "nngpp",
"version-string": "1.3.0", "version-string": "1.3.0",
"port-version": 1, "port-version": 2,
"description": "C++ wrapper around the nanomsg NNG API.", "description": "C++ wrapper around the nanomsg NNG API.",
"homepage": "https://github.com/cwzx/nngpp", "homepage": "https://github.com/cwzx/nngpp",
"dependencies": [ "dependencies": [
"nng" "nng",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
] ]
} }

View File

@ -8,19 +8,18 @@ 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_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/${PORT}) vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
# Handle copyright # Handle copyright
configure_file(${SOURCE_PATH}/COPYING.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) configure_file("${SOURCE_PATH}/COPYING.txt" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)

View File

@ -1,11 +1,19 @@
{ {
"name": "nonius", "name": "nonius",
"version-string": "2019-04-20", "version-string": "2019-04-20",
"port-version": 2, "port-version": 3,
"description": "A C++ micro-benchmarking framework", "description": "A C++ micro-benchmarking framework",
"dependencies": [ "dependencies": [
"boost-algorithm", "boost-algorithm",
"boost-lexical-cast", "boost-lexical-cast",
"boost-math" "boost-math",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
] ]
} }

View File

@ -8,16 +8,15 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DBUILD_TESTING=OFF -DBUILD_TESTING=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
# 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,13 @@
{ {
"name": "nt-wrapper", "name": "nt-wrapper",
"version-string": "2019-08-10", "version-string": "2019-08-10",
"port-version": 1, "port-version": 2,
"description": "A header only wrapper library around native windows system APIs", "description": "A header only wrapper library around native windows system APIs",
"homepage": "https://github.com/JustasMasiulis/nt_wrapper" "homepage": "https://github.com/JustasMasiulis/nt_wrapper",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
} }

View File

@ -5,25 +5,24 @@ vcpkg_from_github(
SHA512 4e53d8e0ce595604880bda423440071e7c207dd63e7b6bfa09cc7a870a010f09c51c31e640142c565ce261c4911acab13c6e9f5970853ad8fc2da3e4034ab7d7 SHA512 4e53d8e0ce595604880bda423440071e7c207dd63e7b6bfa09cc7a870a010f09c51c31e640142c565ce261c4911acab13c6e9f5970853ad8fc2da3e4034ab7d7
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DNSOP_OPT_BUILD_TESTS=OFF -DNSOP_OPT_BUILD_TESTS=OFF
-DNSOP_OPT_BUILD_EXAMPLES=OFF -DNSOP_OPT_BUILD_EXAMPLES=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets( vcpkg_cmake_config_fixup(
CONFIG_PATH lib/cmake/${PORT} CONFIG_PATH lib/cmake/${PORT}
) )
file(REMOVE_RECURSE file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug "${CURRENT_PACKAGES_DIR}/debug"
${CURRENT_PACKAGES_DIR}/lib "${CURRENT_PACKAGES_DIR}/lib"
) )
file(INSTALL file(INSTALL
${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
) )

View File

@ -1,6 +1,16 @@
{ {
"name": "observer-ptr-lite", "name": "observer-ptr-lite",
"version-string": "0.4.0", "version-string": "0.4.0",
"port-version": 1, "port-version": 2,
"description": "A C++17-like observer_ptr for C++98 and later in a single-file header-only library" "description": "A C++17-like observer_ptr for C++98 and later in a single-file header-only library",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -11,14 +11,13 @@ vcpkg_from_github(
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS -DUNICODE=1 -D_UNICODE=1 OPTIONS -DUNICODE=1 -D_UNICODE=1
# OPTIONS_RELEASE -DOPTIMIZE=1 # OPTIONS_RELEASE -DOPTIMIZE=1
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
) )
vcpkg_install_cmake() vcpkg_cmake_install()
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,9 +1,17 @@
{ {
"name": "opencsg", "name": "opencsg",
"version-string": "1.4.2", "version-string": "1.4.2",
"port-version": 2, "port-version": 3,
"description": "OpenCSG is a library that does image-based CSG rendering using OpenGL. OpenCSG is written in C++ and supports most modern graphics hardware using Microsoft Windows or the Linux operating system.", "description": "OpenCSG is a library that does image-based CSG rendering using OpenGL. OpenCSG is written in C++ and supports most modern graphics hardware using Microsoft Windows or the Linux operating system.",
"dependencies": [ "dependencies": [
"glew" "glew",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
] ]
} }

View File

@ -6,21 +6,19 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DBUILD_TESTING=OFF -DBUILD_TESTING=OFF
-DOpenIGTLink_INSTALL_PACKAGE_DIR=share/${PORT} -DOpenIGTLink_INSTALL_PACKAGE_DIR=share/${PORT}
) )
vcpkg_install_cmake() vcpkg_cmake_install()
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()
# Handle copyright # Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)

View File

@ -1,7 +1,13 @@
{ {
"name": "openigtlink", "name": "openigtlink",
"version-string": "3.0", "version-string": "3.0",
"port-version": 2, "port-version": 3,
"description": "OpenIGTLink is an open-source network communication interface specifically designed for image-guided interventions.", "description": "OpenIGTLink is an open-source network communication interface specifically designed for image-guided interventions.",
"homepage": "https://github.com/openigtlink/OpenIGTLink" "homepage": "https://github.com/openigtlink/OpenIGTLink",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
} }

View File

@ -8,34 +8,33 @@ vcpkg_from_github(
HEAD_REF next HEAD_REF next
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DPROTON_ROOT=${CURRENT_INSTALLED_DIR} "-DPROTON_ROOT=${CURRENT_INSTALLED_DIR}"
-DAPR_ROOT=${CURRENT_INSTALLED_DIR} "-DAPR_ROOT=${CURRENT_INSTALLED_DIR}"
-DINSTALL_RUNTIME_DEPENDENCIES=OFF -DINSTALL_RUNTIME_DEPENDENCIES=OFF
-DFLEX_EXECUTABLE=${FLEX} -DFLEX_EXECUTABLE=${FLEX}
-DWITH_EXAMPLES=OFF -DWITH_EXAMPLES=OFF
-DWITH_TESTTOOLS=OFF -DWITH_TESTTOOLS=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
# Copy across license files and copyright # Copy across license files and copyright
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/${PORT}) file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(COPY ${SOURCE_PATH}/LICENSE-3RD-PARTY.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/) file(COPY "${SOURCE_PATH}/LICENSE-3RD-PARTY.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/")
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)
# Clean up LICENSE file - vcpkg doesn't expect it to be there # Clean up LICENSE file - vcpkg doesn't expect it to be there
file(REMOVE ${CURRENT_PACKAGES_DIR}/LICENSE.MD ${CURRENT_PACKAGES_DIR}/debug/LICENSE.MD) file(REMOVE "${CURRENT_PACKAGES_DIR}/LICENSE.MD" "${CURRENT_PACKAGES_DIR}/debug/LICENSE.MD")
# Temporary workaround until upstream project puts dll in right place # Temporary workaround until upstream project puts dll in right place
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/libmamaplugindqstrategymd.dll") if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/libmamaplugindqstrategymd.dll")
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/libmamaplugindqstrategymd.dll ${CURRENT_PACKAGES_DIR}/bin/libmamaplugindqstrategymd.dll) file(RENAME "${CURRENT_PACKAGES_DIR}/lib/libmamaplugindqstrategymd.dll" "${CURRENT_PACKAGES_DIR}/bin/libmamaplugindqstrategymd.dll")
endif() endif()
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/libmamaplugindqstrategymd.dll") if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/libmamaplugindqstrategymd.dll")
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/libmamaplugindqstrategymd.dll ${CURRENT_PACKAGES_DIR}/debug/bin/libmamaplugindqstrategymd.dll) file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/libmamaplugindqstrategymd.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/libmamaplugindqstrategymd.dll")
endif() endif()
# Vcpkg does not expect include files to be in the debug directory # Vcpkg does not expect include files to be in the debug directory

View File

@ -1,13 +1,17 @@
{ {
"name": "openmama", "name": "openmama",
"version-semver": "6.3.1", "version-semver": "6.3.1",
"port-version": 1, "port-version": 2,
"description": "OpenMAMA is a high performance vendor neutral lightweight wrapper that provides a common API interface to different middleware and messaging solutions across a variety of platforms and languages", "description": "OpenMAMA is a high performance vendor neutral lightweight wrapper that provides a common API interface to different middleware and messaging solutions across a variety of platforms and languages",
"homepage": "https://github.com/finos/OpenMAMA", "homepage": "https://github.com/finos/OpenMAMA",
"supports": "windows & (x64 | x86)", "supports": "windows & (x64 | x86)",
"dependencies": [ "dependencies": [
"apr", "apr",
"libevent", "libevent",
"qpid-proton" "qpid-proton",
{
"name": "vcpkg-cmake",
"host": true
}
] ]
} }

View File

@ -5,25 +5,24 @@ vcpkg_from_github(
SHA512 0eed103c4e909991b596c0cd23d6206662e3ca71cd8148e27c19d8e071c2a16e18cc940a6cd4f8571510f5e64577157f94c561fb889330bb7a868af64c2f3aa0 SHA512 0eed103c4e909991b596c0cd23d6206662e3ca71cd8148e27c19d8e071c2a16e18cc940a6cd4f8571510f5e64577157f94c561fb889330bb7a868af64c2f3aa0
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DOPTIONAL_BARE_OPT_BUILD_TESTS=OFF -DOPTIONAL_BARE_OPT_BUILD_TESTS=OFF
-DOPTIONAL_BARE_OPT_BUILD_EXAMPLES=OFF -DOPTIONAL_BARE_OPT_BUILD_EXAMPLES=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets( vcpkg_cmake_config_fixup(
CONFIG_PATH lib/cmake/${PORT} CONFIG_PATH lib/cmake/${PORT}
) )
file(REMOVE_RECURSE file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug "${CURRENT_PACKAGES_DIR}/debug"
${CURRENT_PACKAGES_DIR}/lib "${CURRENT_PACKAGES_DIR}/lib"
) )
file(INSTALL file(INSTALL
${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
) )

View File

@ -1,6 +1,16 @@
{ {
"name": "optional-bare", "name": "optional-bare",
"version-string": "1.1.0", "version-string": "1.1.0",
"port-version": 1, "port-version": 2,
"description": "A simple version of a C++17-like optional for default-constructible, copyable types, for C++98 and later in a single-file header-only library" "description": "A simple version of a C++17-like optional for default-constructible, copyable types, for C++98 and later in a single-file header-only library",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -7,25 +7,25 @@ vcpkg_from_github(
PATCHES export-include-dir.patch PATCHES export-include-dir.patch
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}/orocos_kdl SOURCE_PATH "${SOURCE_PATH}/orocos_kdl"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/orocos_kdl/cmake TARGET_PATH share/orocos_kdl) vcpkg_cmake_config_fixup(CONFIG_PATH share/orocos_kdl/cmake PACKAGE_NAME orocos_kdl)
file(READ ${CURRENT_PACKAGES_DIR}/share/orocos_kdl/orocos_kdl-config.cmake _contents) file(READ "${CURRENT_PACKAGES_DIR}/share/orocos_kdl/orocos_kdl-config.cmake" _contents)
string(REPLACE "\${CMAKE_CURRENT_LIST_DIR}/../../.." "\${CMAKE_CURRENT_LIST_DIR}/../.." _contents "${_contents}") string(REPLACE "\${CMAKE_CURRENT_LIST_DIR}/../../.." "\${CMAKE_CURRENT_LIST_DIR}/../.." _contents "${_contents}")
string(REPLACE "\${_IMPORT_PREFIX}" "\${CMAKE_CURRENT_LIST_DIR}/../.." _contents "${_contents}") string(REPLACE "\${_IMPORT_PREFIX}" "\${CMAKE_CURRENT_LIST_DIR}/../.." _contents "${_contents}")
file(WRITE ${CURRENT_PACKAGES_DIR}/share/orocos_kdl/orocos_kdl-config.cmake "${_contents}") file(WRITE "${CURRENT_PACKAGES_DIR}/share/orocos_kdl/orocos_kdl-config.cmake" "${_contents}")
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"
${CURRENT_PACKAGES_DIR}/share/doc "${CURRENT_PACKAGES_DIR}/share/doc"
${CURRENT_PACKAGES_DIR}/doc/liborocos-kdl) "${CURRENT_PACKAGES_DIR}/doc/liborocos-kdl")
file(INSTALL ${SOURCE_PATH}/orocos_kdl/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/orocos_kdl/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_fixup_pkgconfig() vcpkg_fixup_pkgconfig()

View File

@ -1,10 +1,18 @@
{ {
"name": "orocos-kdl", "name": "orocos-kdl",
"version": "1.4", "version": "1.4",
"port-version": 5, "port-version": 6,
"description": "Kinematics and Dynamics Library.", "description": "Kinematics and Dynamics Library.",
"homepage": "https://github.com/orocos/orocos_kinematics_dynamics", "homepage": "https://github.com/orocos/orocos_kinematics_dynamics",
"dependencies": [ "dependencies": [
"eigen3" "eigen3",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
] ]
} }

View File

@ -8,16 +8,15 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DCSV_BUILD_TESTS=OFF -DCSV_BUILD_TESTS=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
# 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,13 @@
{ {
"name": "p-ranav-csv", "name": "p-ranav-csv",
"version-string": "2019-07-11", "version-string": "2019-07-11",
"port-version": 1, "port-version": 2,
"description": "[deprecated] CSV for modern C++", "description": "[deprecated] CSV for modern C++",
"homepage": "https://github.com/p-ranav/csv" "homepage": "https://github.com/p-ranav/csv",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
} }

View File

@ -8,20 +8,19 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DCSV2_BUILD_TESTS=OFF -DCSV2_BUILD_TESTS=OFF
-DCSV2_SAMPLES=OFF -DCSV2_SAMPLES=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake TARGET_PATH share) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share ${CURRENT_PACKAGES_DIR}/share/licenses) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share" "${CURRENT_PACKAGES_DIR}/share/licenses")
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}/LICENSE.mio DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) file(INSTALL "${SOURCE_PATH}/LICENSE.mio" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_fixup_pkgconfig() vcpkg_fixup_pkgconfig()

View File

@ -1,7 +1,17 @@
{ {
"name": "p-ranav-csv2", "name": "p-ranav-csv2",
"version-string": "2020-12-14", "version-string": "2020-12-14",
"port-version": 2, "port-version": 3,
"description": "CSV for modern C++", "description": "CSV for modern C++",
"homepage": "https://github.com/p-ranav/csv2" "homepage": "https://github.com/p-ranav/csv2",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -8,21 +8,20 @@ vcpkg_from_github(
fix-cmakelist.patch fix-cmakelist.patch
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DPARALLELSTL_USE_PARALLEL_POLICIES=ON -DPARALLELSTL_USE_PARALLEL_POLICIES=ON
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/ParallelSTL) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ParallelSTL)
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
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(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,10 +1,18 @@
{ {
"name": "parallelstl", "name": "parallelstl",
"version-string": "20200330", "version-string": "20200330",
"port-version": 1, "port-version": 2,
"description": "Parallel STL is an implementation of the C++ standard library algorithms with support for execution policies, as specified in ISO/IEC 14882:2017 standard, commonly called C++17.", "description": "Parallel STL is an implementation of the C++ standard library algorithms with support for execution policies, as specified in ISO/IEC 14882:2017 standard, commonly called C++17.",
"homepage": "https://github.com/intel/parallelstl", "homepage": "https://github.com/intel/parallelstl",
"dependencies": [ "dependencies": [
"tbb" "tbb",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
] ]
} }

View File

@ -1,14 +1,13 @@
vcpkg_from_github( vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH OUT_SOURCE_PATH SOURCE_PATH
REPO taocpp/pegtl REPO taocpp/pegtl
REF 47e878ad4fd72c91253c9d47b6f17e001ca2dfcf # 2.8.3 REF 47e878ad4fd72c91253c9d47b6f17e001ca2dfcf # 2.8.3
SHA512 c7761e36dd28914d89a2d5e2a5ce5ea84bab50b7f7ad235b18dbeca41a675503b00b0fe152247515f81ec380f3c68cf827e667cb3b9a7e34c6d2f5dd60fb4106 SHA512 c7761e36dd28914d89a2d5e2a5ce5ea84bab50b7f7ad235b18dbeca41a675503b00b0fe152247515f81ec380f3c68cf827e667cb3b9a7e34c6d2f5dd60fb4106
HEAD_REF master HEAD_REF master
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DPEGTL_BUILD_TESTS=OFF -DPEGTL_BUILD_TESTS=OFF
-DPEGTL_BUILD_EXAMPLES=OFF -DPEGTL_BUILD_EXAMPLES=OFF
@ -17,15 +16,15 @@ vcpkg_configure_cmake(
-DPEGTL_INSTALL_CMAKE_DIR=share/pegtl-2/cmake -DPEGTL_INSTALL_CMAKE_DIR=share/pegtl-2/cmake
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/pegtl-2/cmake) vcpkg_cmake_config_fixup(CONFIG_PATH share/pegtl-2/cmake)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
# Handle copyright # Handle copyright
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright) file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
# Handle collision with latest pegtl # Handle collision with latest pegtl
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/pegtl-config.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake) file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/pegtl-config.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake")
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/pegtl-config-version.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config-version.cmake) file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/pegtl-config-version.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config-version.cmake")

View File

@ -1,7 +1,17 @@
{ {
"name": "pegtl-2", "name": "pegtl-2",
"version-string": "2.8.3", "version-string": "2.8.3",
"port-version": 1, "port-version": 2,
"description": "The Parsing Expression Grammar Template Library (PEGTL) is a zero-dependency C++ header-only parser combinator library for creating parsers according to a Parsing Expression Grammar (PEG). This version maintains compatibility with C++11.", "description": "The Parsing Expression Grammar Template Library (PEGTL) is a zero-dependency C++ header-only parser combinator library for creating parsers according to a Parsing Expression Grammar (PEG). This version maintains compatibility with C++11.",
"homepage": "https://github.com/taocpp/PEGTL" "homepage": "https://github.com/taocpp/PEGTL",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -8,18 +8,17 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DBUILD_TESTING=OFF -DBUILD_TESTING=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/linq TARGET_PATH share/linq) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/linq PACKAGE_NAME linq)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
# 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": "pfultz2-linq", "name": "pfultz2-linq",
"version-string": "2019-05-14", "version-string": "2019-05-14",
"port-version": 1, "port-version": 2,
"description": "Linq for list comprehension in C++", "description": "Linq for list comprehension in C++",
"dependencies": [ "dependencies": [
"boost-fusion", "boost-fusion",
@ -13,6 +13,14 @@
"boost-static-assert", "boost-static-assert",
"boost-type-traits", "boost-type-traits",
"boost-unordered", "boost-unordered",
"boost-utility" "boost-utility",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
] ]
} }

View File

@ -10,9 +10,8 @@ vcpkg_from_github(
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" PLIBSYS_STATIC) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" PLIBSYS_STATIC)
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DPLIBSYS_TESTS=OFF -DPLIBSYS_TESTS=OFF
-DPLIBSYS_COVERAGE=OFF -DPLIBSYS_COVERAGE=OFF
@ -20,12 +19,12 @@ vcpkg_configure_cmake(
-DPLIBSYS_BUILD_STATIC=${PLIBSYS_STATIC} -DPLIBSYS_BUILD_STATIC=${PLIBSYS_STATIC}
) )
vcpkg_install_cmake() 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()
configure_file(${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake @ONLY) configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
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}")
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)

View File

@ -1,8 +1,14 @@
{ {
"name": "plibsys", "name": "plibsys",
"version": "0.0.4", "version": "0.0.4",
"port-version": 6, "port-version": 7,
"description": "Highly portable C system library: threads and synchronization, sockets, IPC, data structures and more.", "description": "Highly portable C system library: threads and synchronization, sockets, IPC, data structures and more.",
"homepage": "https://github.com/saprykin/plibsys", "homepage": "https://github.com/saprykin/plibsys",
"supports": "!uwp" "supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
} }

View File

@ -8,19 +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_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
#Debug #Debug
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 DESTINATION ${CURRENT_PACKAGES_DIR}/share/plustache) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/plustache/LICENSE ${CURRENT_PACKAGES_DIR}/share/plustache/copyright)

View File

@ -1,10 +1,14 @@
{ {
"name": "plustache", "name": "plustache",
"version-string": "0.4.0", "version-string": "0.4.0",
"port-version": 2, "port-version": 3,
"description": "{{mustaches}} for C++", "description": "{{mustaches}} for C++",
"dependencies": [ "dependencies": [
"boost-algorithm", "boost-algorithm",
"boost-regex" "boost-regex",
{
"name": "vcpkg-cmake",
"host": true
}
] ]
} }

View File

@ -8,16 +8,15 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/PNGwriter) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/PNGwriter)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright # Handle copyright
file(INSTALL ${SOURCE_PATH}/doc/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/pngwriter RENAME copyright) file(INSTALL "${SOURCE_PATH}/doc/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/pngwriter" RENAME copyright)

View File

@ -1,11 +1,19 @@
{ {
"name": "pngwriter", "name": "pngwriter",
"version-string": "0.7.0", "version-string": "0.7.0",
"port-version": 3, "port-version": 4,
"description": "PNGwriter is a very easy to use open source graphics library that uses PNG as its output format", "description": "PNGwriter is a very easy to use open source graphics library that uses PNG as its output format",
"dependencies": [ "dependencies": [
"freetype", "freetype",
"libpng", "libpng",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"zlib" "zlib"
] ]
} }

View File

@ -10,14 +10,13 @@ vcpkg_from_sourceforge(
fix_targets.patch fix_targets.patch
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}/cpp SOURCE_PATH "${SOURCE_PATH}/cpp"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets() vcpkg_cmake_config_fixup()
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/share/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig") file(RENAME "${CURRENT_PACKAGES_DIR}/debug/share/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
@ -27,11 +26,11 @@ if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
endif() endif()
vcpkg_fixup_pkgconfig() vcpkg_fixup_pkgconfig()
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}/FindCLIPPER.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/clipper) file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/FindCLIPPER.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/clipper")
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/clipper) file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/clipper")
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)
vcpkg_fixup_pkgconfig() vcpkg_fixup_pkgconfig()

View File

@ -1,7 +1,17 @@
{ {
"name": "polyclipping", "name": "polyclipping",
"version-string": "6.4.2", "version-string": "6.4.2",
"port-version": 10, "port-version": 11,
"description": "The Clipper library performs clipping and offsetting for both lines and polygons. All four boolean clipping operations are supported - intersection, union, difference and exclusive-or. Polygons can be of any shape including self-intersecting polygons.", "description": "The Clipper library performs clipping and offsetting for both lines and polygons. All four boolean clipping operations are supported - intersection, union, difference and exclusive-or. Polygons can be of any shape including self-intersecting polygons.",
"homepage": "https://sourceforge.net/projects/polyclipping/" "homepage": "https://sourceforge.net/projects/polyclipping/",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -16,16 +16,15 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
apps PopSift_BUILD_EXAMPLES apps PopSift_BUILD_EXAMPLES
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS ${FEATURE_OPTIONS} OPTIONS ${FEATURE_OPTIONS}
-DCUDA_TOOLKIT_ROOT_DIR=${CUDA_TOOLKIT_ROOT} "-DCUDA_TOOLKIT_ROOT_DIR=${CUDA_TOOLKIT_ROOT}"
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/PopSift) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/PopSift)
vcpkg_copy_pdbs() vcpkg_copy_pdbs()

View File

@ -1,12 +1,20 @@
{ {
"name": "popsift", "name": "popsift",
"version": "0.9", "version": "0.9",
"port-version": 3, "port-version": 4,
"description": "PopSift is an implementation of the SIFT algorithm in CUDA.", "description": "PopSift is an implementation of the SIFT algorithm in CUDA.",
"homepage": "https://github.com/alicevision/popsift", "homepage": "https://github.com/alicevision/popsift",
"supports": "!(uwp | arm | arm64 | android | x86)", "supports": "!(uwp | arm | arm64 | android | x86)",
"dependencies": [ "dependencies": [
"cuda" "cuda",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
], ],
"features": { "features": {
"apps": { "apps": {

View File

@ -8,20 +8,19 @@ 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_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS_DEBUG OPTIONS_DEBUG
-DPSNIP_INSTALL_HEADERS=OFF -DPSNIP_INSTALL_HEADERS=OFF
OPTIONS_RELEASE OPTIONS_RELEASE
-DPSNIP_INSTALL_HEADERS=ON -DPSNIP_INSTALL_HEADERS=ON
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-${PORT} TARGET_PATH share/unofficial-${PORT}) vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT})
# Handle copyright # Handle copyright
configure_file(${SOURCE_PATH}/COPYING.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) configure_file("${SOURCE_PATH}/COPYING.md" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)

View File

@ -1,9 +1,19 @@
{ {
"name": "portable-snippets", "name": "portable-snippets",
"version-date": "2019-09-20", "version-date": "2019-09-20",
"port-version": 2, "port-version": 3,
"description": "Collection of miscellaneous portable C snippets", "description": "Collection of miscellaneous portable C snippets",
"homepage": "https://github.com/nemequ/portable-snippets", "homepage": "https://github.com/nemequ/portable-snippets",
"license": null, "license": null,
"supports": "!(arm & osx)" "supports": "!(arm & osx)",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -7,14 +7,13 @@ vcpkg_from_github(
fix-library-can-not-be-found.patch fix-library-can-not-be-found.patch
) )
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} dynamic PA_BUILD_SHARED) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PA_BUILD_SHARED)
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} static PA_BUILD_STATIC) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" PA_BUILD_STATIC)
# NOTE: the ASIO backend will be built automatically if the ASIO-SDK is provided # NOTE: the ASIO backend will be built automatically if the ASIO-SDK is provided
# in a sibling folder of the portaudio source in vcpkg/buildtrees/portaudio/src # in a sibling folder of the portaudio source in vcpkg/buildtrees/portaudio/src
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DPA_USE_DS=ON -DPA_USE_DS=ON
-DPA_USE_WASAPI=ON -DPA_USE_WASAPI=ON
@ -28,18 +27,18 @@ vcpkg_configure_cmake(
-DPA_ENABLE_DEBUG_OUTPUT:BOOL=ON -DPA_ENABLE_DEBUG_OUTPUT:BOOL=ON
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT}) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
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")
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()
# Handle copyright # Handle copyright
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)
vcpkg_fixup_pkgconfig() vcpkg_fixup_pkgconfig()

View File

@ -1,8 +1,18 @@
{ {
"name": "portaudio", "name": "portaudio",
"version": "19.7", "version": "19.7",
"port-version": 3, "port-version": 4,
"description": "PortAudio Portable Cross-platform Audio I/O API PortAudio is a free, cross-platform, open-source, audio I/O library. It lets you write simple audio programs in 'C' or C++ that will compile and run on many platforms including Windows, Macintosh OS X, and Unix (OSS/ALSA). It is intended to promote the exchange of audio software between developers on different platforms. Many applications use PortAudio for Audio I/O.", "description": "PortAudio Portable Cross-platform Audio I/O API PortAudio is a free, cross-platform, open-source, audio I/O library. It lets you write simple audio programs in 'C' or C++ that will compile and run on many platforms including Windows, Macintosh OS X, and Unix (OSS/ALSA). It is intended to promote the exchange of audio software between developers on different platforms. Many applications use PortAudio for Audio I/O.",
"homepage": "http://www.portaudio.com", "homepage": "http://www.portaudio.com",
"supports": "!uwp" "supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -8,20 +8,19 @@ vcpkg_from_github(
) )
# Force the use of the vcpkg installed versions # Force the use of the vcpkg installed versions
file(REMOVE_RECURSE ${SOURCE_PATH}/ext/json11) file(REMOVE_RECURSE "${SOURCE_PATH}/ext/json11")
file(REMOVE_RECURSE ${SOURCE_PATH}/ext/catch) file(REMOVE_RECURSE "${SOURCE_PATH}/ext/catch")
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake) vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE_1_0.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")
vcpkg_copy_pdbs() vcpkg_copy_pdbs()

View File

@ -1,7 +1,7 @@
{ {
"name": "ppconsul", "name": "ppconsul",
"version-string": "0.5", "version-string": "0.5",
"port-version": 3, "port-version": 4,
"description": "A C++ client library for Consul. Consul is a distributed tool for discovering and configuring services in your infrastructure.", "description": "A C++ client library for Consul. Consul is a distributed tool for discovering and configuring services in your infrastructure.",
"homepage": "https://github.com/oliora/ppconsul", "homepage": "https://github.com/oliora/ppconsul",
"dependencies": [ "dependencies": [
@ -15,6 +15,14 @@
"openssl" "openssl"
] ]
}, },
"json11" "json11",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
] ]
} }

View File

@ -8,18 +8,17 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DPPRINT_BUILD_TESTS=OFF -DPPRINT_BUILD_TESTS=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT}) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
# 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,17 @@
{ {
"name": "pprint", "name": "pprint",
"version-string": "2019-07-19", "version-string": "2019-07-19",
"port-version": 1, "port-version": 2,
"description": "Pretty Printer for Modern C++", "description": "Pretty Printer for Modern C++",
"homepage": "https://github.com/p-ranav/pprint" "homepage": "https://github.com/p-ranav/pprint",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -6,22 +6,20 @@ vcpkg_download_distfile(ARCHIVE
SHA512 baad7b050b13a6d13de5110cdec443048a3543b65b0d3b30d1b5f737b46715052661f762ef71345d39978c0c788a30a3a935717664806b4729722ee3594ebdc1 SHA512 baad7b050b13a6d13de5110cdec443048a3543b65b0d3b30d1b5f737b46715052661f762ef71345d39978c0c788a30a3a935717664806b4729722ee3594ebdc1
) )
vcpkg_extract_source_archive_ex( vcpkg_extract_source_archive(
OUT_SOURCE_PATH SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE} ARCHIVE "${ARCHIVE}"
PATCHES PATCHES
fix-math-functions.patch fix-math-functions.patch
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
# Handle copyright # Handle copyright
file(COPY ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/pqp) file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/pqp/LICENSE ${CURRENT_PACKAGES_DIR}/share/pqp/copyright)

View File

@ -1,7 +1,17 @@
{ {
"name": "pqp", "name": "pqp",
"version-string": "1.3", "version-string": "1.3",
"port-version": 5, "port-version": 6,
"description": "a proximity query package", "description": "a proximity query package",
"homepage": "https://gamma.cs.unc.edu/SSV/" "homepage": "https://gamma.cs.unc.edu/SSV/",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -9,25 +9,24 @@ vcpkg_from_github(
HEAD_REF main HEAD_REF main
) )
file(COPY ${CURRENT_PORT_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CURRENT_PORT_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES FEATURES
tools BUILD_TOOLS tools BUILD_TOOLS
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS ${FEATURE_OPTIONS} OPTIONS ${FEATURE_OPTIONS}
OPTIONS_DEBUG OPTIONS_DEBUG
-DINSTALL_HEADERS=OFF -DINSTALL_HEADERS=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
if("tools" IN_LIST FEATURES) if("tools" IN_LIST FEATURES)
vcpkg_copy_tools(TOOL_NAMES presentmon AUTO_CLEAN) vcpkg_copy_tools(TOOL_NAMES presentmon AUTO_CLEAN)
endif() endif()
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,9 +1,15 @@
{ {
"name": "presentmon", "name": "presentmon",
"version-semver": "1.7.0", "version-semver": "1.7.0",
"port-version": 1, "port-version": 2,
"description": "PresentMon is a tool to capture and analyze ETW events related to swap chain presentation on Windows.", "description": "PresentMon is a tool to capture and analyze ETW events related to swap chain presentation on Windows.",
"supports": "windows & !uwp", "supports": "windows & !uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
],
"features": { "features": {
"tools": { "tools": {
"description": "Build tool PresentMon" "description": "Build tool PresentMon"

View File

@ -5,11 +5,12 @@ vcpkg_from_github(
REF 072586a71b55b7f8c584153d223e95687148a900 REF 072586a71b55b7f8c584153d223e95687148a900
SHA512 a18faea093423dd9fe19ece8b228e011dccce0a2a22222f777ea19b023a13173966d4a8aea01147e8fc58de5d39cffcedeb2221a1572ae52bd5aba1295f86a94 SHA512 a18faea093423dd9fe19ece8b228e011dccce0a2a22222f777ea19b023a13173966d4a8aea01147e8fc58de5d39cffcedeb2221a1572ae52bd5aba1295f86a94
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")

View File

@ -1,6 +1,13 @@
{ {
"name": "psimd", "name": "psimd",
"version-string": "2021-02-21", "version-string": "2021-02-21",
"port-version": 1,
"description": "Portable 128-bit SIMD intrinsics", "description": "Portable 128-bit SIMD intrinsics",
"homepage": "https://github.com/Maratyszcza/psimd" "homepage": "https://github.com/Maratyszcza/psimd",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
} }

View File

@ -12,16 +12,15 @@ vcpkg_from_github(
fix-uwp.patch fix-uwp.patch
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DPTHREADPOOL_BUILD_TESTS=OFF -DPTHREADPOOL_BUILD_TESTS=OFF
-DPTHREADPOOL_BUILD_BENCHMARKS=OFF -DPTHREADPOOL_BUILD_BENCHMARKS=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-${PORT} TARGET_PATH share/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)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

View File

@ -1,10 +1,18 @@
{ {
"name": "pthreadpool", "name": "pthreadpool",
"version-date": "2020-04-10", "version-date": "2020-04-10",
"port-version": 2, "port-version": 3,
"description": "Portable (POSIX/Windows/Emscripten) thread pool for C/C++", "description": "Portable (POSIX/Windows/Emscripten) thread pool for C/C++",
"homepage": "https://github.com/Maratyszcza/pthreadpool", "homepage": "https://github.com/Maratyszcza/pthreadpool",
"dependencies": [ "dependencies": [
"fxdiv" "fxdiv",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
] ]
} }

View File

@ -7,10 +7,10 @@ vcpkg_from_github(
PATCHES 00001-fix-boost-asio.patch PATCHES 00001-fix-boost-asio.patch
) )
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
if(NOT EXISTS "${SOURCE_PATH}/quickfast") if(NOT EXISTS "${SOURCE_PATH}/quickfast")
file(RENAME ${SOURCE_PATH}/src ${SOURCE_PATH}/quickfast) file(RENAME "${SOURCE_PATH}/src" "${SOURCE_PATH}/quickfast")
endif() endif()
file(GLOB_RECURSE SRC_FILES "${SOURCE_PATH}/quickfast/*.cpp" "${SOURCE_PATH}/quickfast/*.h") file(GLOB_RECURSE SRC_FILES "${SOURCE_PATH}/quickfast/*.cpp" "${SOURCE_PATH}/quickfast/*.h")
@ -30,19 +30,19 @@ else()
set(BUILD_SHARED_LIBS OFF) set(BUILD_SHARED_LIBS OFF)
endif() endif()
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
WINDOWS_USE_MSBUILD
OPTIONS OPTIONS
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/quickfast) vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/quickfast)
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/quickfast/copyright COPYONLY) configure_file("${SOURCE_PATH}/license.txt" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/quickfast) file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

View File

@ -1,11 +1,19 @@
{ {
"name": "quickfast", "name": "quickfast",
"version-string": "1.5", "version-string": "1.5",
"port-version": 1, "port-version": 2,
"description": "QuickFAST is an Open Source native C++ implementation of the FAST Protocol [SM].", "description": "QuickFAST is an Open Source native C++ implementation of the FAST Protocol [SM].",
"homepage": "https://github.com/objectcomputing/quickfast", "homepage": "https://github.com/objectcomputing/quickfast",
"dependencies": [ "dependencies": [
"boost-asio", "boost-asio",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"xerces-c" "xerces-c"
] ]
} }

View File

@ -6,11 +6,10 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_copy_pdbs() 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)

View File

@ -1,7 +1,7 @@
{ {
"name": "qwtw", "name": "qwtw",
"version": "3.1.0", "version": "3.1.0",
"port-version": 2, "port-version": 3,
"description": "qwt-based 2D plotting library", "description": "qwt-based 2D plotting library",
"homepage": "https://github.com/ig-or/qwtw", "homepage": "https://github.com/ig-or/qwtw",
"supports": "windows & x64 & !static", "supports": "windows & x64 & !static",
@ -18,6 +18,14 @@
"qt5-base", "qt5-base",
"qt5-networkauth", "qt5-networkauth",
"qt5-svg", "qt5-svg",
"qwt" "qwt",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
] ]
} }

View File

@ -11,24 +11,22 @@ vcpkg_from_github(
PATCHES fix-file-conflict.patch PATCHES fix-file-conflict.patch
) )
file(REMOVE_RECURSE ${SOURCE_PATH}/include/dmlc) file(REMOVE_RECURSE "${SOURCE_PATH}/include/dmlc")
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DRABIT_BUILD_TESTS=OFF -DRABIT_BUILD_TESTS=OFF
-DRABIT_BUILD_MPI=OFF -DRABIT_BUILD_MPI=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT}) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
# Handle copyright # Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)

View File

@ -1,11 +1,19 @@
{ {
"name": "rabit", "name": "rabit",
"version-string": "0.1", "version-string": "0.1",
"port-version": 3, "port-version": 4,
"description": "rabit is a light weight library that provides a fault tolerant interface of Allreduce and Broadcast. It is designed to support easy implementations of distributed machine learning programs, many of which fall naturally under the Allreduce abstraction.", "description": "rabit is a light weight library that provides a fault tolerant interface of Allreduce and Broadcast. It is designed to support easy implementations of distributed machine learning programs, many of which fall naturally under the Allreduce abstraction.",
"homepage": "https://github.com/dmlc/rabit", "homepage": "https://github.com/dmlc/rabit",
"supports": "!uwp", "supports": "!uwp",
"dependencies": [ "dependencies": [
"dmlc" "dmlc",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
] ]
} }

View File

@ -4,26 +4,24 @@ vcpkg_download_distfile(ARCHIVE
SHA512 6c1fe4f6fa8546ae28b92ccfbae94355ff0d3cea346b9ae8ce4cf6c2bdbeb823e0ccd355332643ea72d3befd533a8b3030ddbf82be7ffa811c2c58cbb01aaa38 SHA512 6c1fe4f6fa8546ae28b92ccfbae94355ff0d3cea346b9ae8ce4cf6c2bdbeb823e0ccd355332643ea72d3befd533a8b3030ddbf82be7ffa811c2c58cbb01aaa38
) )
vcpkg_extract_source_archive_ex( vcpkg_extract_source_archive(
OUT_SOURCE_PATH SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE} ARCHIVE "${ARCHIVE}"
PATCHES PATCHES
0001-remove-unistd-h.patch 0001-remove-unistd-h.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}/ragel) file(COPY "${CMAKE_CURRENT_LIST_DIR}/config.h" DESTINATION "${SOURCE_PATH}/ragel")
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
# Allow empty include directory # Allow empty include directory
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
# Handle copyright # Handle copyright
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/ragel) file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/ragel/COPYING ${CURRENT_PACKAGES_DIR}/share/ragel/copyright)

View File

@ -1,7 +1,17 @@
{ {
"name": "ragel", "name": "ragel",
"version-string": "6.10", "version-string": "6.10",
"port-version": 4, "port-version": 5,
"description": "Ragel State Machine Compiler", "description": "Ragel State Machine Compiler",
"homepage": "https://www.colm.net/files/ragel" "homepage": "https://www.colm.net/files/ragel",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -6,18 +6,16 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DRIFFCPP_INSTALL_EXAMPLE=OFF -DRIFFCPP_INSTALL_EXAMPLE=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets() 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")
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/riffcpp) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/riffcpp/LICENSE ${CURRENT_PACKAGES_DIR}/share/riffcpp/copyright)

View File

@ -1,7 +1,17 @@
{ {
"name": "riffcpp", "name": "riffcpp",
"version-string": "2.2.4", "version-string": "2.2.4",
"port-version": 1, "port-version": 2,
"description": "Simple library for reading RIFF files", "description": "Simple library for reading RIFF files",
"homepage": "https://github.com/libdmusic/riffcpp" "homepage": "https://github.com/libdmusic/riffcpp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -5,17 +5,16 @@ vcpkg_from_github(
SHA512 1C3C9560BC1F8CBDF9CDFD5593233020D8403CE707D8B129FED82080CB806E82E83CBB839BEA64D53B022A58400F817A54FFB30099A0D7D7B300E8D0103F483B SHA512 1C3C9560BC1F8CBDF9CDFD5593233020D8403CE707D8B129FED82080CB806E82E83CBB839BEA64D53B022A58400F817A54FFB30099A0D7D7B300E8D0103F483B
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}" SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DRING_SPAN_LITE_OPT_BUILD_TESTS=OFF -DRING_SPAN_LITE_OPT_BUILD_TESTS=OFF
-DRING_SPAN_LITE_OPT_BUILD_EXAMPLES=OFF -DRING_SPAN_LITE_OPT_BUILD_EXAMPLES=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets( vcpkg_cmake_config_fixup(
CONFIG_PATH "lib/cmake/${PORT}" CONFIG_PATH "lib/cmake/${PORT}"
) )

View File

@ -1,6 +1,17 @@
{ {
"name": "ring-span-lite", "name": "ring-span-lite",
"version": "0.6.0", "version": "0.6.0",
"port-version": 1,
"description": "A C++yy-like ring_span type for C++98, C++11 and later in a single-file header-only library", "description": "A C++yy-like ring_span type for C++98, C++11 and later in a single-file header-only library",
"homepage": "https://github.com/martinmoene/ring-span-lite" "homepage": "https://github.com/martinmoene/ring-span-lite",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -8,17 +8,16 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}" SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE DISABLE_PARALLEL_CONFIGURE
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/rpclib") vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/rpclib")
vcpkg_copy_pdbs() vcpkg_copy_pdbs()

View File

@ -1,7 +1,17 @@
{ {
"name": "rpclib", "name": "rpclib",
"version-semver": "2.3.0", "version-semver": "2.3.0",
"port-version": 1, "port-version": 2,
"description": "a RPC library for C++, providing both a client and server implementation. It is built using modern C++14.", "description": "a RPC library for C++, providing both a client and server implementation. It is built using modern C++14.",
"homepage": "https://github.com/rpclib/rpclib" "homepage": "https://github.com/rpclib/rpclib",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -7,27 +7,26 @@ vcpkg_download_distfile(ARCHIVE
SHA512 be389780b8ca74658433f271682d91e89709ced588c4012c152ccf4014557692a1afd37b1bd5e567cedf9c412d42721eb0412ff3331f38717e527bd5d29c27a7 SHA512 be389780b8ca74658433f271682d91e89709ced588c4012c152ccf4014557692a1afd37b1bd5e567cedf9c412d42721eb0412ff3331f38717e527bd5d29c27a7
) )
vcpkg_extract_source_archive_ex( vcpkg_extract_source_archive(
OUT_SOURCE_PATH SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE} ARCHIVE "${ARCHIVE}"
REF ${VERSION} SOURCE_BASE "${VERSION}"
PATCHES PATCHES
fix-uninitialized-local-variable.patch fix-uninitialized-local-variable.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}/rply.def DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/rply.def" DESTINATION "${SOURCE_PATH}")
file(COPY ${CMAKE_CURRENT_LIST_DIR}/rply-config.cmake.in DESTINATION ${SOURCE_PATH}) file(COPY "${CMAKE_CURRENT_LIST_DIR}/rply-config.cmake.in" DESTINATION "${SOURCE_PATH}")
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets() vcpkg_cmake_config_fixup()
# Handle copyright # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/rply RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,17 @@
{ {
"name": "rply", "name": "rply",
"version-string": "1.1.4", "version-string": "1.1.4",
"port-version": 1, "port-version": 2,
"description": "ANSI C Library for PLY file format input and output", "description": "ANSI C Library for PLY file format input and output",
"homepage": "http://w3.impa.br/~diego/software/rply" "homepage": "http://w3.impa.br/~diego/software/rply",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -10,36 +10,35 @@ vcpkg_from_github(
) )
file( file(
COPY ${CMAKE_CURRENT_LIST_DIR}/Findlibusb.cmake COPY "${CMAKE_CURRENT_LIST_DIR}/Findlibusb.cmake"
DESTINATION ${SOURCE_PATH}/cmake/Modules DESTINATION "${SOURCE_PATH}/cmake/Modules"
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/rtlsdr) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/rtlsdr)
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
file( file(
INSTALL ${SOURCE_PATH}/COPYING INSTALL "${SOURCE_PATH}/COPYING"
DESTINATION ${CURRENT_PACKAGES_DIR}/share/rtlsdr DESTINATION "${CURRENT_PACKAGES_DIR}/share/rtlsdr"
RENAME copyright 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")
else() else()
file(GLOB DEBUG_TOOLS "${CURRENT_PACKAGES_DIR}/debug/bin/*.exe") file(GLOB DEBUG_TOOLS "${CURRENT_PACKAGES_DIR}/debug/bin/*.exe")
file(GLOB RELEASE_TOOLS "${CURRENT_PACKAGES_DIR}/bin/*.exe") file(GLOB RELEASE_TOOLS "${CURRENT_PACKAGES_DIR}/bin/*.exe")
file( file(
INSTALL ${RELEASE_TOOLS} INSTALL ${RELEASE_TOOLS}
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}")
file(REMOVE ${DEBUG_TOOLS} ${RELEASE_TOOLS}) file(REMOVE ${DEBUG_TOOLS} ${RELEASE_TOOLS})
endif() endif()

View File

@ -1,7 +1,7 @@
{ {
"name": "rtlsdr", "name": "rtlsdr",
"version-date": "2020-04-16", "version-date": "2020-04-16",
"port-version": 3, "port-version": 4,
"description": "rtl-sdr is a library that turns your Realtek RTL2832 based DVB dongle into a SDR receiver", "description": "rtl-sdr is a library that turns your Realtek RTL2832 based DVB dongle into a SDR receiver",
"homepage": "https://osmocom.org/projects/rtl-sdr", "homepage": "https://osmocom.org/projects/rtl-sdr",
"supports": "windows & (x86 | x64)", "supports": "windows & (x86 | x64)",
@ -10,6 +10,14 @@
{ {
"name": "pthreads", "name": "pthreads",
"platform": "windows" "platform": "windows"
},
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
} }
] ]
} }

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