mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/philc/4898
This commit is contained in:
commit
b6f18a90e2
@ -1,3 +1,4 @@
|
||||
Source: brynet
|
||||
Version: 1.0.0
|
||||
Version: 1.0.0-1
|
||||
Description: A C++ cross platform high performance tcp network library, and support SSL/HTTP/Websocket.
|
||||
Build-Depends: openssl
|
||||
|
@ -1,9 +1,6 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(STATUS "brynet does not support dynamic linkage. Building statically.")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
|
4
ports/cppgraphqlgen/CONTROL
Normal file
4
ports/cppgraphqlgen/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: cppgraphqlgen
|
||||
Version: 0.6
|
||||
Build-Depends: pegtl, rapidjson
|
||||
Description: C++ GraphQL schema service generator
|
27
ports/cppgraphqlgen/portfile.cmake
Normal file
27
ports/cppgraphqlgen/portfile.cmake
Normal file
@ -0,0 +1,27 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Microsoft/cppgraphqlgen
|
||||
REF v0.6
|
||||
SHA512 cc2596f5cd975377fcc9432eee11973e2ff044c244c3ac13c3f45549874c2fe0ac5c48bccb96813b48a1b7c940bb54decc194d9eb358c6ae39d1288b9ce58b01
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
||||
OPTIONS -DBUILD_TESTS=OFF -DUPDATE_SAMPLES=OFF
|
||||
# OPTIONS_RELEASE -DOPTIMIZE=1
|
||||
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/cppgraphqlgen/copyright COPYONLY)
|
||||
|
||||
vcpkg_test_cmake(PACKAGE_NAME cppgraphqlgen)
|
@ -1,4 +1,4 @@
|
||||
Source: cppzmq
|
||||
Version: 4.2.2-1
|
||||
Version: 4.3.0-1
|
||||
Build-Depends: zeromq
|
||||
Description: lightweight messaging kernel, C++ bindings
|
||||
|
@ -1,24 +1,24 @@
|
||||
#header-only library
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO zeromq/cppzmq
|
||||
REF v4.2.2
|
||||
SHA512 5f61ea4a16987c1363c3029cf46b3e83ddd86d65e8d639b0332d691f8fdb5cee121b5d72a9b8c89221daf52ea5892219e0bc4ea4e761bb1e7deb1659011dd3c9
|
||||
REF v4.3.0
|
||||
SHA512 c9e08e48795b9043c689ffa6953ac59e0fe79d9110d79e06609ab67bf76bea52147b59ecf033f7a06e57d5eb0c3c6bc79634af789966ff22d7d80091d19b135d
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS -DCPPZMQ_BUILD_TESTS=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/cppzmq)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/share/cppzmq/libzmq-pkg-config)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cppzmq)
|
||||
|
@ -1,5 +1,5 @@
|
||||
Source: devil
|
||||
Version: 1.8.0-2
|
||||
Version: 1.8.0-3
|
||||
Build-Depends:
|
||||
Description: A full featured cross-platform image library
|
||||
Default-Features: libpng, tiff, libjpeg, openexr, jasper, lcms
|
||||
|
@ -1,11 +1,9 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
set(DEVIL_VERSION 1.8.0)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO DentonW/DevIL
|
||||
REF v${DEVIL_VERSION}
|
||||
REF v1.8.0
|
||||
SHA512 4aed5e50a730ece8b1eb6b2f6204374c6fb6f5334cf7c880d84c0f79645ea7c6b5118f57a7868a487510fc59c452f51472b272215d4c852f265f58b5857e17c7
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
@ -20,7 +18,7 @@ if("libpng" IN_LIST FEATURES)
|
||||
endif()
|
||||
|
||||
set(IL_NO_TIF 1)
|
||||
if("libtiff" IN_LIST FEATURES)
|
||||
if("tiff" IN_LIST FEATURES)
|
||||
set(IL_NO_TIF 0)
|
||||
endif()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: discord-rpc
|
||||
Version: 3.3.0-1
|
||||
Version: 3.3.0-2
|
||||
Description: Rich Presence allows you to leverage the totally overhauled "Now Playing" section in a Discord user's profile to help people play your game together.
|
||||
Build-Depends: rapidjson
|
||||
|
21
ports/discord-rpc/disable-downloading.patch
Normal file
21
ports/discord-rpc/disable-downloading.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 5dad9e9..961f02d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -12,6 +12,7 @@ file(GLOB_RECURSE ALL_SOURCE_FILES
|
||||
src/*.cpp src/*.h src/*.c
|
||||
)
|
||||
|
||||
+if(0)
|
||||
# Set CLANG_FORMAT_SUFFIX if you are using custom clang-format, e.g. clang-format-5.0
|
||||
find_program(CLANG_FORMAT_CMD clang-format${CLANG_FORMAT_SUFFIX})
|
||||
|
||||
@@ -43,7 +44,7 @@ if (NOT RAPIDJSONTEST)
|
||||
)
|
||||
file(REMOVE ${RJ_TAR_FILE})
|
||||
endif(NOT RAPIDJSONTEST)
|
||||
-
|
||||
+endif()
|
||||
find_file(RAPIDJSON NAMES rapidjson rapidjson-1.1.0 PATHS ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty CMAKE_FIND_ROOT_PATH_BOTH)
|
||||
|
||||
add_library(rapidjson STATIC IMPORTED ${RAPIDJSON})
|
@ -6,6 +6,7 @@ vcpkg_from_github(
|
||||
REF v3.3.0
|
||||
SHA512 8bb2674edefabf75670ceca29364d69e2002152bff9fe55757f4cda03544b4d827ff33595d98e6d8acdc73ca61cef8ab8054ad0a1ffc905cb26496068b15025f
|
||||
HEAD_REF master
|
||||
PATCHES disable-downloading.patch
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
||||
@ -21,6 +22,10 @@ vcpkg_configure_cmake(
|
||||
-DRAPIDJSON=${CURRENT_INSTALLED_DIR}
|
||||
)
|
||||
|
||||
if(EXISTS ${SOURCE_PATH}/thirdparty)
|
||||
message(FATAL_ERROR "The source directory should not be modified during the build.")
|
||||
endif()
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: fastrtps
|
||||
Version: 1.5.0-1
|
||||
Version: 1.5.0-2
|
||||
Description: Eprosima Fast RTPS is a C++ implementation of the RTPS (Real Time Publish Subscribe) protocol, which provides publisher-subscriber communications over unreliable transports such as UDP, as defined and maintained by the Object Management Group (OMG) consortium.
|
||||
Build-Depends: openssl, asio, tinyxml2
|
17
ports/fastrtps/namespace_tinyxml2.patch
Normal file
17
ports/fastrtps/namespace_tinyxml2.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff --git a/cmake/modules/FindTinyXML2.cmake b/cmake/modules/FindTinyXML2.cmake
|
||||
index 24aa98a..4e2188e 100644
|
||||
--- a/cmake/modules/FindTinyXML2.cmake
|
||||
+++ b/cmake/modules/FindTinyXML2.cmake
|
||||
@@ -7,10 +7,10 @@ option(TINYXML2_FROM_SOURCE "Integrate TinyXML2 source code inside Fast RTPS" OF
|
||||
find_package(TinyXML2 CONFIG QUIET)
|
||||
if(TinyXML2_FOUND)
|
||||
message(STATUS "Found TinyXML2: ${TinyXML2_DIR}")
|
||||
- if(NOT TINYXML2_LIBRARY AND TARGET tinyxml2)
|
||||
+ if(NOT TINYXML2_LIBRARY AND TARGET tinyxml2::tinyxml2)
|
||||
# in this case, we're probably using TinyXML2 version 5.0.0 or greater
|
||||
# in which case tinyxml2 is an exported target and we should use that
|
||||
- set(TINYXML2_LIBRARY tinyxml2)
|
||||
+ set(TINYXML2_LIBRARY tinyxml2::tinyxml2)
|
||||
endif()
|
||||
else()
|
||||
if(THIRDPARTY)
|
@ -6,7 +6,9 @@ vcpkg_from_github(
|
||||
REF b1779b608c7b5b2dcb101728f4213c58bdde74ee # waiting for next release
|
||||
SHA512 9ec4a1e41296df1c0bc00926d925e0947602fabb68e9b28311e92739b0e1909a2993b15fc05eb31aeb9842ed50127f8d56571d09e57dd64ac6f37d0fed6cea73
|
||||
HEAD_REF master
|
||||
PATCHES fix-install.patch
|
||||
PATCHES
|
||||
fix-install.patch
|
||||
namespace_tinyxml2.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: flatbuffers
|
||||
Version: 1.9.0-2
|
||||
Version: 1.9.0-3
|
||||
Description: Memory Efficient Serialization Library http://google.github.io/flatbuffers/
|
||||
FlatBuffers is an efficient cross platform serialization library for games and other memory constrained apps. It allows you to directly access serialized data without unpacking/parsing it first, while still having great forwards/backwards compatibility.
|
||||
|
23
ports/flatbuffers/no-werror.patch
Normal file
23
ports/flatbuffers/no-werror.patch
Normal file
@ -0,0 +1,23 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index a3388dd..f0626e5 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -119,12 +119,16 @@ elseif(CMAKE_COMPILER_IS_GNUCXX)
|
||||
"${CMAKE_CXX_FLAGS} -std=c++0x")
|
||||
endif(CYGWIN)
|
||||
set(CMAKE_CXX_FLAGS
|
||||
- "${CMAKE_CXX_FLAGS} -Wall -pedantic -Werror -Wextra -Werror=shadow")
|
||||
+ "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra -Werror=shadow")
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.4)
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
|
||||
set(CMAKE_CXX_FLAGS
|
||||
"${CMAKE_CXX_FLAGS} -faligned-new")
|
||||
endif()
|
||||
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)
|
||||
+ set(CMAKE_CXX_FLAGS
|
||||
+ "${CMAKE_CXX_FLAGS} -Wextra")
|
||||
+ endif()
|
||||
set(CMAKE_CXX_FLAGS
|
||||
"${CMAKE_CXX_FLAGS} -Wunused-result -Werror=unused-result -Wunused-parameter -Werror=unused-parameter")
|
||||
endif()
|
||||
|
@ -10,7 +10,9 @@ vcpkg_from_github(
|
||||
REF v1.9.0
|
||||
SHA512 0ba07dbe5b2fde1d0a6e14ee26ee2816062541d934eda204b846a30c019362f2626761b628c900293928b9b546dba8ca477c13182e022c3e0e0a142fd67f0696
|
||||
HEAD_REF master
|
||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/ignore_use_of_cmake_toolchain_file.patch
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/ignore_use_of_cmake_toolchain_file.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/no-werror.patch
|
||||
)
|
||||
|
||||
set(OPTIONS)
|
||||
|
@ -23,10 +23,31 @@ else()
|
||||
set(HAVE_ASPRINTF 1)
|
||||
set(HAVE_WPRINTF 1)
|
||||
set(HAVE_NEWLOCALE 1)
|
||||
add_definitions(-DHAVE_NEWLOCALE=1)
|
||||
add_definitions(-DHAVE_NEWLOCALE=1)
|
||||
|
||||
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
||||
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
|
||||
find_package(Threads REQUIRED)
|
||||
if(NOT CMAKE_USE_PTHREADS_INIT)
|
||||
message(FATAL_ERROR "Error: Only pthreads is currently supported.")
|
||||
endif()
|
||||
|
||||
include(CheckFunctionExists)
|
||||
include(CheckIncludeFiles)
|
||||
|
||||
if(APPLE)
|
||||
set(HAVE_CFLOCALECOPYCURRENT 1)
|
||||
set(HAVE_CFPREFERENCESCOPYAPPVALUE 1)
|
||||
endif()
|
||||
check_function_exists(dcgettext HAVE_DCGETTEXT)
|
||||
check_include_files(features.h HAVE_FEATURES_H)
|
||||
check_function_exists(gettext HAVE_GETTEXT)
|
||||
check_include_files(mach-o/dyld.h HAVE_MACH_O_DYLD_H)
|
||||
check_function_exists(mempcpy HAVE_MEMPCPY)
|
||||
check_include_files(xlocale.h HAVE_XLOCALE_H)
|
||||
|
||||
configure_file(intl/libgnuintl.in.h config/libgnuintl.h @ONLY)
|
||||
configure_file(config.win32.h config/config.h COPYONLY)
|
||||
configure_file(config.unix.h.in config/config.h @ONLY)
|
||||
endif()
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
@ -85,7 +106,14 @@ add_definitions("-DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIB
|
||||
add_definitions("-DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS")
|
||||
|
||||
add_library(libintl ${SOURCES})
|
||||
target_link_libraries(libintl PRIVATE unofficial::iconv::libcharset unofficial::iconv::libiconv)
|
||||
target_link_libraries(libintl PRIVATE unofficial::iconv::libcharset unofficial::iconv::libiconv)
|
||||
if(APPLE)
|
||||
find_library(COREFOUNDATION_LIBRARY CoreFoundation REQUIRED)
|
||||
target_link_libraries(libintl PRIVATE ${COREFOUNDATION_LIBRARY})
|
||||
endif()
|
||||
if(NOT WIN32)
|
||||
target_link_libraries(libintl PRIVATE Threads::Threads)
|
||||
endif()
|
||||
|
||||
install(TARGETS libintl
|
||||
RUNTIME DESTINATION bin
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: gettext
|
||||
Version: 0.19-4
|
||||
Version: 0.19-5
|
||||
Description: The GNU gettext utilities are a set of tools that provides a framework to help other GNU packages produce multi-lingual messages
|
||||
Build-Depends: libiconv
|
||||
|
1009
ports/gettext/config.unix.h.in
Normal file
1009
ports/gettext/config.unix.h.in
Normal file
File diff suppressed because it is too large
Load Diff
@ -17,6 +17,7 @@ vcpkg_extract_source_archive(${ARCHIVE})
|
||||
file(COPY
|
||||
${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_LIST_DIR}/config.win32.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/config.unix.h.in
|
||||
DESTINATION ${SOURCE_PATH}/gettext-runtime
|
||||
)
|
||||
file(REMOVE ${SOURCE_PATH}/gettext-runtime/intl/libgnuintl.h ${SOURCE_PATH}/gettext-runtime/config.h)
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: libbson
|
||||
Version: 1.9.2
|
||||
Version: 1.9.5-1
|
||||
Description: libbson is a library providing useful routines related to building, parsing, and iterating BSON documents.
|
||||
|
@ -1,15 +1,11 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
set(LIBBSON_VERSION 1.9.2)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/mongodb/libbson/archive/${LIBBSON_VERSION}.tar.gz"
|
||||
FILENAME "libbson-${LIBBSON_VERSION}.tar.gz"
|
||||
SHA512 a05f1e8fbabb34e847692397e2e41fc5923ddd18dba861e5ab8a31acdf6738e13ab719eae8f9f8563f08fc43aab5c8d1f53cb6a47c38c96e132fa4a62a48d2bf
|
||||
)
|
||||
vcpkg_extract_source_archive_ex(
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
REF ${LIBBSON_VERSION}
|
||||
REPO mongodb/libbson
|
||||
REF 1.9.5
|
||||
SHA512 14bc75989baac550f42939ea161fa7872b950e5b669dc8f19e897f0783b04e0212e5e722b3fcdf946308b9a68bc066502ed8238dad92e342e5f49b8b2cc8f484
|
||||
HEAD_REF master
|
||||
PATCHES fix-uwp.patch
|
||||
)
|
||||
|
||||
@ -70,7 +66,7 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin ${CURRENT_PACKAGES_DIR}/bin)
|
||||
endif()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libbson RENAME copyright)
|
||||
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/libbson/copyright COPYONLY)
|
||||
file(COPY ${SOURCE_PATH}/THIRD_PARTY_NOTICES DESTINATION ${CURRENT_PACKAGES_DIR}/share/libbson)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
@ -79,6 +75,7 @@ else()
|
||||
set(PORT_POSTFIX "1.0")
|
||||
endif()
|
||||
|
||||
# Create cmake files for _both_ find_package(libbson) and find_package(libbson-static-1.0)/find_package(libbson-1.0)
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/share/libbson/libbson-${PORT_POSTFIX}-config.cmake LIBBSON_CONFIG_CMAKE)
|
||||
string(REPLACE "/include/libbson-1.0" "/include" LIBBSON_CONFIG_CMAKE "${LIBBSON_CONFIG_CMAKE}")
|
||||
string(REPLACE "bson-static-1.0" "bson-1.0" LIBBSON_CONFIG_CMAKE "${LIBBSON_CONFIG_CMAKE}")
|
||||
@ -88,4 +85,4 @@ file(COPY ${CURRENT_PACKAGES_DIR}/share/libbson/libbson-${PORT_POSTFIX}-config-v
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libbson/libbson-${PORT_POSTFIX}-config.cmake ${CURRENT_PACKAGES_DIR}/share/libbson/libbson-config.cmake)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libbson/libbson-${PORT_POSTFIX}-config-version.cmake ${CURRENT_PACKAGES_DIR}/share/libbson/libbson-config-version.cmake)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_copy_pdbs()
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: mongo-c-driver
|
||||
Version: 1.9.2
|
||||
Version: 1.9.5-1
|
||||
Build-Depends: libbson, openssl (uwp)
|
||||
Description: Client library written in C for MongoDB.
|
||||
|
@ -1,16 +1,11 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mongo-c-driver-1.9.2)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/mongodb/mongo-c-driver/archive/1.9.2.tar.gz"
|
||||
FILENAME "mongo-c-driver-1.9.2.tar.gz"
|
||||
SHA512 a2c819da77aef93ce261093e98e8e8c41c449af56bd03d875e2838a067ae71b5ceb16fed2fb8df9458c84310451b813464377592806fc9ac39d9df2f4ddba83b
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/fix-uwp.patch
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO mongodb/mongo-c-driver
|
||||
REF 1.9.5
|
||||
SHA512 bee584c83bb317802eb855fececc98f2013d7c3134f063c3146521ab535c8a89c2dfe89ccfa6ebbe2d7c64edec0e53105ead361da83b885c7778b40e4801de62
|
||||
HEAD_REF master
|
||||
PATCHES fix-uwp.patch
|
||||
)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
@ -36,7 +31,7 @@ vcpkg_configure_cmake(
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/libmongoc-static-1.0")
|
||||
else()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/libmongoc-1.0")
|
||||
@ -64,13 +59,13 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${CURRENT_PACKAGES_DIR}/include
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/static.patch
|
||||
static.patch
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin ${CURRENT_PACKAGES_DIR}/bin)
|
||||
endif()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/mongo-c-driver RENAME copyright)
|
||||
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/mongo-c-driver/copyright COPYONLY)
|
||||
file(COPY ${SOURCE_PATH}/THIRD_PARTY_NOTICES DESTINATION ${CURRENT_PACKAGES_DIR}/share/mongo-c-driver)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
@ -79,6 +74,7 @@ else()
|
||||
set(PORT_POSTFIX "1.0")
|
||||
endif()
|
||||
|
||||
# Create cmake files for _both_ find_package(mongo-c-driver) and find_package(libmongoc-static-1.0)/find_package(libmongoc-1.0)
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/share/mongo-c-driver/libmongoc-${PORT_POSTFIX}-config.cmake LIBMONGOC_CONFIG_CMAKE)
|
||||
string(REPLACE "/include/libmongoc-1.0" "/include" LIBMONGOC_CONFIG_CMAKE "${LIBMONGOC_CONFIG_CMAKE}")
|
||||
string(REPLACE "mongoc-static-1.0" "mongoc-1.0" LIBMONGOC_CONFIG_CMAKE "${LIBMONGOC_CONFIG_CMAKE}")
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: mpir
|
||||
Version: 3.0.0-5
|
||||
Version: 3.0.0-6
|
||||
Description: Multiple Precision Integers and Rationals.
|
||||
|
@ -71,7 +71,7 @@ if(VCPKG_CMAKE_SYSTEM_NAME)
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share ${CURRENT_PACKAGES_DIR}/share/info)
|
||||
configure_file(${SOURCE_PATH}/COPYING.lib ${CURRENT_PACKAGES_DIR}/share/mpir/copyright COPYONLY)
|
||||
configure_file(${SOURCE_PATH}/COPYING.LIB ${CURRENT_PACKAGES_DIR}/share/mpir/copyright COPYONLY)
|
||||
else()
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- a/cmake/CMakeLists.txt
|
||||
+++ b/cmake/CMakeLists.txt
|
||||
--- a/CMake/CMakeLists.txt
|
||||
+++ b/CMake/CMakeLists.txt
|
||||
@@ -13,10 +13,12 @@
|
||||
# directory, but can also be used for custom projects.
|
||||
#############################################################
|
||||
@ -8,7 +8,7 @@
|
||||
- set(OGRE_CMAKE_DIR "CMake")
|
||||
-else()
|
||||
- set(OGRE_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake")
|
||||
+if (NOT DEFINED OGRE_CMAKE_DIR)
|
||||
+if(NOT DEFINED OGRE_CMAKE_DIR)
|
||||
+ if(WIN32 OR APPLE)
|
||||
+ set(OGRE_CMAKE_DIR "CMake")
|
||||
+ else()
|
||||
@ -16,10 +16,10 @@
|
||||
+ endif()
|
||||
endif()
|
||||
|
||||
set(INST_FILES
|
||||
--- a/cmake/InstallResources.cmake
|
||||
+++ b/cmake/InstallResources.cmake
|
||||
@@ -241,10 +241,12 @@ endif ()
|
||||
set(INST_FILES Utils/FindPkgMacros.cmake)
|
||||
--- a/CMake/InstallResources.cmake
|
||||
+++ b/CMake/InstallResources.cmake
|
||||
@@ -242,10 +242,12 @@
|
||||
# Create the CMake package files
|
||||
include(CMakePackageConfigHelpers)
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
- set(OGRE_CMAKE_DIR "CMake")
|
||||
-else()
|
||||
- set(OGRE_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake")
|
||||
+if (NOT DEFINED OGRE_CMAKE_DIR)
|
||||
+if(NOT DEFINED OGRE_CMAKE_DIR)
|
||||
+ if(WIN32 OR APPLE)
|
||||
+ set(OGRE_CMAKE_DIR "CMake")
|
||||
+ else()
|
||||
|
37
ports/ogre/002-link-optimized-lib-workaround.patch
Normal file
37
ports/ogre/002-link-optimized-lib-workaround.patch
Normal file
@ -0,0 +1,37 @@
|
||||
--- a/CMake/Dependencies.cmake
|
||||
+++ b/CMake/Dependencies.cmake
|
||||
@@ -199,6 +199,11 @@
|
||||
# Find zlib
|
||||
find_package(ZLIB)
|
||||
macro_log_feature(ZLIB_FOUND "zlib" "Simple data compression library" "http://www.zlib.net" FALSE "" "")
|
||||
+# replace optimized/debug keyword with generator expression
|
||||
+unset(ZLIB_LIBRARY)
|
||||
+set(ZLIB_LIBRARY $<$<CONFIG:Release>:${ZLIB_LIBRARY_RELEASE}> $<$<CONFIG:Debug>:${ZLIB_LIBRARY_DEBUG}>)
|
||||
+unset(ZLIB_LIBRARIES)
|
||||
+set(ZLIB_LIBRARIES ${ZLIB_LIBRARY})
|
||||
|
||||
if (ZLIB_FOUND)
|
||||
# Find zziplib
|
||||
@@ -213,6 +218,11 @@
|
||||
# Find FreeType
|
||||
find_package(Freetype)
|
||||
macro_log_feature(FREETYPE_FOUND "freetype" "Portable font engine" "http://www.freetype.org" FALSE "" "")
|
||||
+# replace optimized/debug keyword with generator expression
|
||||
+unset(FREETYPE_LIBRARY)
|
||||
+set(FREETYPE_LIBRARY $<$<CONFIG:Release>:${FREETYPE_LIBRARY_RELEASE}> $<$<CONFIG:Debug>:${FREETYPE_LIBRARY_DEBUG}>)
|
||||
+unset(FREETYPE_LIBRARIES)
|
||||
+set(FREETYPE_LIBRARIES ${FREETYPE_LIBRARY})
|
||||
|
||||
# Find X11
|
||||
if (UNIX AND NOT APPLE AND NOT ANDROID AND NOT EMSCRIPTEN)
|
||||
--- src.orig/CMake/Utils/FindPkgMacros.cmake
|
||||
+++ src.new/CMake/Utils/FindPkgMacros.cmake
|
||||
@@ -82,7 +82,7 @@
|
||||
if (${PREFIX}_FWK)
|
||||
set(${PREFIX} ${${PREFIX}_FWK})
|
||||
elseif (${PREFIX}_REL AND ${PREFIX}_DBG)
|
||||
- set(${PREFIX} optimized ${${PREFIX}_REL} debug ${${PREFIX}_DBG})
|
||||
+ set(${PREFIX} $<$<CONFIG:Release>:${${PREFIX}_REL}> $<$<CONFIG:Debug>:${${PREFIX}_DBG}>)
|
||||
elseif (${PREFIX}_REL)
|
||||
set(${PREFIX} ${${PREFIX}_REL})
|
||||
elseif (${PREFIX}_DBG)
|
@ -1,5 +1,5 @@
|
||||
Source: ogre
|
||||
Version: 1.10.11
|
||||
Version: 1.11.3-3
|
||||
Build-Depends: freeimage, freetype, zlib, zziplib
|
||||
Description: 3D Object-Oriented Graphics Rendering Engine
|
||||
|
||||
|
@ -3,15 +3,12 @@ include(vcpkg_common_functions)
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO OGRECave/ogre
|
||||
REF v1.10.11
|
||||
SHA512 2dfedd6f0a0de1a8c687c001439138b233200ca11e5c9940debf43d8a0380ca6472e0b5f4d599f0e22ca2049d0a5d34066ef41b6bc4912130694fa5d851fc900
|
||||
REF v1.11.3
|
||||
SHA512 af52821022ab6148e64fdf183b1aa4607b101c7d0edc20d2ccc909f50eed218d7a283fa3b58260fd41cd3f324ecafad8c5137c66e05786580b043240551b2c42
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
"${CMAKE_CURRENT_LIST_DIR}/001-cmake-install-dir.patch"
|
||||
001-cmake-install-dir.patch
|
||||
002-link-optimized-lib-workaround.patch
|
||||
)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
@ -58,10 +55,7 @@ vcpkg_configure_cmake(
|
||||
-DOGRE_INSTALL_CMAKE=ON
|
||||
-DOGRE_INSTALL_VSPROPS=OFF
|
||||
-DOGRE_STATIC=${OGRE_STATIC}
|
||||
-DOGRE_UNITY_BUILD=OFF
|
||||
-DOGRE_USE_STD11=ON
|
||||
-DOGRE_CONFIG_THREAD_PROVIDER=std
|
||||
-DOGRE_NODE_STORAGE_LEGACY=OFF
|
||||
-DOGRE_BUILD_RENDERSYSTEM_D3D11=ON
|
||||
-DOGRE_BUILD_RENDERSYSTEM_GL=ON
|
||||
-DOGRE_BUILD_RENDERSYSTEM_GL3PLUS=ON
|
||||
@ -95,33 +89,31 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
endif()
|
||||
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/lib/manual-link ${CURRENT_PACKAGES_DIR}/lib/manual-link)
|
||||
if(NOT VCPKG_CMAKE_SYSTEM_NAME)
|
||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/lib/manual-link)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/OgreMain.lib ${CURRENT_PACKAGES_DIR}/lib/manual-link/OgreMain.lib)
|
||||
else()
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/OgreMainStatic.lib ${CURRENT_PACKAGES_DIR}/lib/manual-link/OgreMainStatic.lib)
|
||||
endif()
|
||||
endif()
|
||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/lib/manual-link)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/OgreMain_d.lib ${CURRENT_PACKAGES_DIR}/debug/lib/manual-link/OgreMain_d.lib)
|
||||
else()
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/OgreMainStatic_d.lib ${CURRENT_PACKAGES_DIR}/debug/lib/manual-link/OgreMainStatic_d.lib)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
file(GLOB MAIN_REL ${CURRENT_PACKAGES_DIR}/lib/OgreMain.lib ${CURRENT_PACKAGES_DIR}/lib/OgreMainStatic.lib)
|
||||
file(COPY ${MAIN_REL} DESTINATION ${CURRENT_PACKAGES_DIR}/lib/manual-link)
|
||||
file(GLOB MAIN_DBG ${CURRENT_PACKAGES_DIR}/debug/lib/OgreMain_d.lib ${CURRENT_PACKAGES_DIR}/debug/lib/OgreMainStatic_d.lib)
|
||||
file(COPY ${MAIN_DBG} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib/manual-link)
|
||||
file(REMOVE ${MAIN_REL} ${MAIN_DBG})
|
||||
|
||||
# Ogre installs custom cmake config files which don't follow the normal pattern.
|
||||
# This normally makes them completely incompatible with multi-config generators, but with some effort it can be done.
|
||||
file(READ "${CURRENT_PACKAGES_DIR}/share/ogre/OGREConfig.cmake" _contents)
|
||||
string(REPLACE "${CURRENT_INSTALLED_DIR}" "\${PACKAGE_PREFIX_DIR}" _contents "${_contents}")
|
||||
string(REPLACE "SDL2main.lib" "SDL2main$<$<CONFIG:Debug>:d>.lib" _contents "${_contents}")
|
||||
string(REPLACE "SDL2.lib" "SDL2$<$<CONFIG:Debug>:d>.lib" _contents "${_contents}")
|
||||
string(REPLACE "\${PACKAGE_PREFIX_DIR}/lib" "\${PACKAGE_PREFIX_DIR}$<$<CONFIG:Debug>:/debug>/lib" _contents "${_contents}")
|
||||
string(REPLACE "{OGRE_PREFIX_DIR}/lib" "{OGRE_PREFIX_DIR}$<$<CONFIG:Debug>:/debug>/lib" _contents "${_contents}")
|
||||
|
||||
string(REPLACE "\"Ogre\${COMPONENT}\"" "\"Ogre\${COMPONENT}$<$<CONFIG:Debug>:_d>\"" _contents "${_contents}")
|
||||
string(REPLACE "\"Ogre\${COMPONENT}Static\"" "\"Ogre\${COMPONENT}Static$<$<CONFIG:Debug>:_d>\"" _contents "${_contents}")
|
||||
|
||||
string(REPLACE "\"\${TYPE}_\${COMPONENT}\"" "\"\${TYPE}_\${COMPONENT}$<$<CONFIG:Debug>:_d>\"" _contents "${_contents}")
|
||||
string(REPLACE "\"\${TYPE}_\${COMPONENT}Static\"" "\"\${TYPE}_\${COMPONENT}Static$<$<CONFIG:Debug>:_d>\"" _contents "${_contents}")
|
||||
|
||||
string(REPLACE "\"OgreMain\"" "\"\${PACKAGE_PREFIX_DIR}/lib/manual-link/OgreMain$<$<CONFIG:Debug>:_d>.lib\"" _contents "${_contents}")
|
||||
string(REPLACE "\"OgreMainStatic\"" "\"\${PACKAGE_PREFIX_DIR}/lib/manual-link/OgreMainStatic$<$<CONFIG:Debug>:_d>.lib\"" _contents "${_contents}")
|
||||
|
||||
file(WRITE "${CURRENT_PACKAGES_DIR}/share/ogre/OGREConfig.cmake" "${_contents}")
|
||||
file(GLOB SHARE_FILES ${CURRENT_PACKAGES_DIR}/share/ogre/*.cmake)
|
||||
foreach(SHARE_FILE ${SHARE_FILES})
|
||||
file(READ "${SHARE_FILE}" _contents)
|
||||
string(REPLACE "lib/OgreMain" "lib/manual-link/OgreMain" _contents "${_contents}")
|
||||
file(WRITE "${SHARE_FILE}" "${_contents}")
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/ogre RENAME copyright)
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: openssl-windows
|
||||
Version: 1.0.2p-1
|
||||
Version: 1.0.2q
|
||||
Description: OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library.
|
||||
|
@ -3,7 +3,7 @@ if(VCPKG_CMAKE_SYSTEM_NAME)
|
||||
endif()
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(OPENSSL_VERSION 1.0.2p)
|
||||
set(OPENSSL_VERSION 1.0.2q)
|
||||
set(MASTER_COPY_SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/openssl-${OPENSSL_VERSION})
|
||||
|
||||
vcpkg_find_acquire_program(PERL)
|
||||
@ -14,7 +14,7 @@ set(ENV{PATH} "$ENV{PATH};${PERL_EXE_PATH}")
|
||||
vcpkg_download_distfile(OPENSSL_SOURCE_ARCHIVE
|
||||
URLS "https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz" "https://www.openssl.org/source/old/1.0.2/openssl-${OPENSSL_VERSION}.tar.gz"
|
||||
FILENAME "openssl-${OPENSSL_VERSION}.tar.gz"
|
||||
SHA512 958c5a7c3324bbdc8f07dfb13e11329d9a1b4452c07cf41fbd2d42b5fe29c95679332a3476d24c2dc2b88be16e4a24744aba675a05a388c0905756c77a8a2f16
|
||||
SHA512 403e6cad42db3ba860c3fa4fa81c1b7b02f0b873259e5c19a7fc8e42de0854602555f1b1ca74f4e3a7737a4cbd3aac063061e628ec86534586500819fae7fec0
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive(${OPENSSL_SOURCE_ARCHIVE})
|
||||
|
@ -5,9 +5,14 @@ set(PANGO_LIB_SUFFIX 1.0)
|
||||
set(PANGO_DLL_SUFFIX 1)
|
||||
set(GLIB_LIB_VERSION 2.0)
|
||||
|
||||
configure_file(./config.h.win32 ${CMAKE_SOURCE_DIR}/config.h COPYONLY)
|
||||
if(WIN32)
|
||||
configure_file(./config.h.win32 ${CMAKE_CURRENT_BINARY_DIR}/config.h COPYONLY)
|
||||
else()
|
||||
configure_file(./config.h.unix ${CMAKE_CURRENT_BINARY_DIR}/config.h COPYONLY)
|
||||
endif()
|
||||
|
||||
add_definitions(-DHAVE_CONFIG_H)
|
||||
include_directories(. ./pango)
|
||||
include_directories(. ./pango ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
# find libintl
|
||||
find_path(LIBINTL_INCLUDE_DIR libintl.h)
|
||||
@ -100,12 +105,14 @@ pango_add_module(pango
|
||||
pango/shape.c
|
||||
pango/pango-enum-types.c)
|
||||
|
||||
if(WIN32)
|
||||
pango_add_module(pangowin32
|
||||
pango/pangowin32.c
|
||||
pango/pangowin32-fontcache.c
|
||||
pango/pangowin32-fontmap.c
|
||||
pango/pangowin32-shape.c)
|
||||
target_link_libraries(pangowin32 usp10 pango)
|
||||
endif()
|
||||
|
||||
pango_add_module(pangoft2
|
||||
pango/pangofc-font.c
|
||||
@ -122,18 +129,25 @@ pango_add_module(pangoft2
|
||||
target_link_libraries(pangoft2 pango ${FONT_LIBRARIES})
|
||||
target_include_directories(pangoft2 PRIVATE ${FONT_INCLUDE_DIRS})
|
||||
|
||||
pango_add_module(pangocairo
|
||||
pango/pangocairo-fcfont.c
|
||||
list(APPEND PANGO_CAIRO_SOURCES
|
||||
pango/pangocairo-fcfont.c
|
||||
pango/pangocairo-fcfontmap.c
|
||||
pango/pangocairo-win32font.c
|
||||
pango/pangocairo-win32fontmap.c
|
||||
pango/pangocairo-context.c
|
||||
pango/pangocairo-font.c
|
||||
pango/pangocairo-fontmap.c
|
||||
pango/pangocairo-render.c)
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND PANGO_CAIRO_SOURCES
|
||||
pango/pangocairo-win32font.c
|
||||
pango/pangocairo-win32fontmap.c)
|
||||
endif()
|
||||
|
||||
pango_add_module(pangocairo ${PANGO_CAIRO_SOURCES})
|
||||
target_link_libraries(pangocairo ${CAIRO_LIBRARIES} pango pangowin32 pangoft2 ${FONT_LIBRARIES})
|
||||
target_include_directories(pangocairo PRIVATE ${CAIRO_INCLUDE_DIR} ${FONT_INCLUDE_DIRS})
|
||||
|
||||
|
||||
if(NOT PANGO_SKIP_HEADERS)
|
||||
install(FILES
|
||||
pango/pango.h
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: pango
|
||||
Version: 1.40.11-1
|
||||
Version: 1.40.11-2
|
||||
Description: Text and font handling library.
|
||||
Build-Depends: glib, gettext, cairo, fontconfig, freetype, harfbuzz[glib] (!windows-static)
|
||||
|
153
ports/pango/config.h.unix
Normal file
153
ports/pango/config.h.unix
Normal file
@ -0,0 +1,153 @@
|
||||
/* config.h. Generated from config.h.in by configure. */
|
||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Have usable Cairo library and font backend */
|
||||
#define HAVE_CAIRO 1
|
||||
|
||||
/* Whether Cairo can use FreeType for fonts */
|
||||
#define HAVE_CAIRO_FREETYPE 1
|
||||
|
||||
/* Whether Cairo has PDF support */
|
||||
/* #undef HAVE_CAIRO_PDF */
|
||||
|
||||
/* Whether Cairo has PNG support */
|
||||
/* #undef HAVE_CAIRO_PNG */
|
||||
|
||||
/* Whether Cairo has PS support */
|
||||
/* #undef HAVE_CAIRO_PS */
|
||||
|
||||
/* Whether Cairo can use Quartz for fonts */
|
||||
/* #undef HAVE_CAIRO_QUARTZ */
|
||||
|
||||
/* Whether Cairo can use the Win32 GDI for fonts */
|
||||
/* #undef HAVE_CAIRO_WIN32 */
|
||||
|
||||
/* Whether Cairo has Xlib support */
|
||||
/* #undef HAVE_CAIRO_XLIB */
|
||||
|
||||
/* Whether CoreText is available on the system */
|
||||
#ifdef __APPLE_CC__
|
||||
#define HAVE_CORE_TEXT 1
|
||||
#else
|
||||
#undef HAVE_CORE_TEXT
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
#define HAVE_DIRENT_H 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#define HAVE_DLFCN_H 1
|
||||
|
||||
/* Define to 1 if you have the `FcWeightFromOpenType' function. */
|
||||
/* #undef HAVE_FCWEIGHTFROMOPENTYPE */
|
||||
|
||||
/* Define to 1 if you have the `flockfile' function. */
|
||||
#define HAVE_FLOCKFILE 1
|
||||
|
||||
/* Have FreeType 2 library */
|
||||
#define HAVE_FREETYPE 1
|
||||
|
||||
/* Define to 1 if you have the `getpagesize' function. */
|
||||
#define HAVE_GETPAGESIZE 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#define HAVE_INTTYPES_H 1
|
||||
|
||||
/* Whether libthai is available */
|
||||
/* #undef HAVE_LIBTHAI */
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
|
||||
/* #undef HAVE_NDIR_H */
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#define HAVE_STDINT_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#define HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the `strtok_r' function. */
|
||||
#define HAVE_STRTOK_R 1
|
||||
|
||||
/* Define to 1 if you have the `sysconf' function. */
|
||||
#define HAVE_SYSCONF 1
|
||||
|
||||
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
/* #undef HAVE_SYS_DIR_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/mman.h> header file. */
|
||||
#define HAVE_SYS_MMAN_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
/* #undef HAVE_SYS_NDIR_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#define HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* Have Xft library */
|
||||
/* #undef HAVE_XFT */
|
||||
|
||||
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
||||
#define LT_OBJDIR ".libs/"
|
||||
|
||||
/* Name of package */
|
||||
#define PACKAGE "pango"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=pango"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "pango"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "pango 1.40.11"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "pango"
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#define PACKAGE_URL ""
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "1.40.11"
|
||||
|
||||
/* PANGO binary age */
|
||||
#define PANGO_BINARY_AGE 4011
|
||||
|
||||
/* PANGO interface age */
|
||||
#define PANGO_INTERFACE_AGE 11
|
||||
|
||||
/* PANGO major version */
|
||||
#define PANGO_VERSION_MAJOR 1
|
||||
|
||||
/* PANGO micro version */
|
||||
#define PANGO_VERSION_MICRO 11
|
||||
|
||||
/* PANGO minor version */
|
||||
#define PANGO_VERSION_MINOR 40
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "1.40.11"
|
||||
|
||||
/* defines how to decorate public symbols while building */
|
||||
#define _PANGO_EXTERN __attribute__((visibility("default"))) extern
|
@ -1,24 +1,26 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
set(PANGO_VERSION 1.40.11)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/pango-${PANGO_VERSION})
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://ftp.gnome.org/pub/GNOME/sources/pango/1.40/pango-${PANGO_VERSION}.tar.xz"
|
||||
FILENAME "pango-${PANGO_VERSION}.tar.xz"
|
||||
SHA512 e4ac40f8da9c326e1e4dfaf4b1d2070601b17f88f5a12991a9a8bbc58bb08640404e2a794a5c68c5ebb2e7e80d9c186d4b26cd417bb63a23f024ef8a38bb152a)
|
||||
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
REF ${PANGO_VERSION}
|
||||
PATCHES 0001-fix-static-symbols-export.diff
|
||||
)
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/0001-fix-static-symbols-export.diff)
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h.unix DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG
|
||||
-DPANGO_SKIP_HEADERS=ON)
|
||||
OPTIONS_DEBUG
|
||||
-DPANGO_SKIP_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
4
ports/pbc/CONTROL
Normal file
4
ports/pbc/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: pbc
|
||||
Version: 0.5.14
|
||||
Build-Depends: mpir
|
||||
Description: Pairing-Based Crypto library provides low-level routines for pairing-based cryptosystems.
|
45
ports/pbc/linux.patch
Normal file
45
ports/pbc/linux.patch
Normal file
@ -0,0 +1,45 @@
|
||||
--- configure.ac 2018-11-29 13:51:14.495012138 +0100
|
||||
+++ configure.ac 2018-11-29 13:51:45.308095312 +0100
|
||||
@@ -10,7 +10,6 @@
|
||||
LT_INIT
|
||||
#AC_CANONICAL_HOST
|
||||
|
||||
-CFLAGS=
|
||||
default_fink_path=/sw
|
||||
case $host_os in
|
||||
darwin*)
|
||||
@@ -78,20 +77,7 @@
|
||||
AC_PROG_MAKE_SET
|
||||
|
||||
AC_PROG_LEX
|
||||
-if test "x$LEX" != xflex; then
|
||||
- echo "************************"
|
||||
- echo "flex not found"
|
||||
- echo "************************"
|
||||
- exit -1
|
||||
-fi
|
||||
-
|
||||
AC_PROG_YACC
|
||||
-if test "x$YACC" != "xbison -y"; then
|
||||
- echo "************************"
|
||||
- echo "bison not found"
|
||||
- echo "************************"
|
||||
- exit -1
|
||||
-fi
|
||||
|
||||
# Checks for libraries.
|
||||
lib_err_msg="add its path to LDFLAGS\nsee ./configure --help"
|
||||
@@ -121,13 +134,6 @@
|
||||
|
||||
CFLAGS="$CFLAGS -Wall -W -Wfloat-equal -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wredundant-decls \
|
||||
-Wendif-labels -Wshadow -pipe -ffast-math -U__STRICT_ANSI__ -std=gnu99"
|
||||
-if test "$with_debug" == "y"; then
|
||||
- CFLAGS="$CFLAGS -g3 -O0"
|
||||
-elif test "$with_enable_optimized" != "no"; then
|
||||
- CFLAGS="$CFLAGS -g -O2"
|
||||
-else
|
||||
- CFLAGS="$CFLAGS -fomit-frame-pointer -O3"
|
||||
-fi
|
||||
|
||||
if test "$with_safe_clean" != "n"; then
|
||||
CFLAGS="$CFLAGS -DSAFE_CLEAN"
|
153
ports/pbc/portfile.cmake
Normal file
153
ports/pbc/portfile.cmake
Normal file
@ -0,0 +1,153 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
message(FATAL_ERROR "PBC currently can only be built for desktop")
|
||||
endif()
|
||||
|
||||
if(VCPKG_CRT_LINKAGE STREQUAL "static" AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
message(FATAL_ERROR "PBC currently can only be built using the dynamic CRT when building DLLs")
|
||||
endif()
|
||||
|
||||
set(PBC_VERSION 0.5.14)
|
||||
|
||||
if(VCPKG_CMAKE_SYSTEM_NAME)
|
||||
vcpkg_download_distfile(
|
||||
ARCHIVE
|
||||
URLS "https://crypto.stanford.edu/pbc/files/pbc-${PBC_VERSION}.tar.gz"
|
||||
FILENAME pbc-${PBC_VERSION}.tar.gz
|
||||
SHA512 d75d4ceb3f67ee62c7ca41e2a91ee914fbffaeb70256675aed6734d586950ea8e64e2f16dc069d71481eddb703624df8d46497005fb58e75cf098dd7e7961333
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
REF ${PBC_VERSION}
|
||||
PATCHES linux.patch
|
||||
)
|
||||
|
||||
vcpkg_find_acquire_program(BISON)
|
||||
vcpkg_find_acquire_program(FLEX)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
set(SHARED_STATIC --enable-static --disable-shared)
|
||||
else()
|
||||
set(SHARED_STATIC --disable-static --enable-shared)
|
||||
endif()
|
||||
|
||||
set(OPTIONS ${SHARED_STATIC} LEX=${FLEX} YACC=${BISON}\ -y)
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${SOURCE_PATH}/setup
|
||||
WORKING_DIRECTORY ${SOURCE_PATH}
|
||||
LOGNAME setup-${TARGET_TRIPLET}
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg)
|
||||
file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg)
|
||||
message(STATUS "Configuring ${TARGET_TRIPLET}-dbg")
|
||||
set(ENV{CFLAGS} "${VCPKG_C_FLAGS} ${VCPKG_C_FLAGS_DEBUG} -O0 -g -I${SOURCE_PATH}/include")
|
||||
set(ENV{LDFLAGS} "${VCPKG_LINKER_FLAGS}")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${SOURCE_PATH}/configure --prefix=${CURRENT_PACKAGES_DIR}/debug ${OPTIONS} --with-sysroot=${CURRENT_INSTALLED_DIR}/debug
|
||||
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg
|
||||
LOGNAME configure-${TARGET_TRIPLET}-dbg
|
||||
)
|
||||
message(STATUS "Building ${TARGET_TRIPLET}-dbg")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND make -j install
|
||||
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg
|
||||
LOGNAME install-${TARGET_TRIPLET}-dbg
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel)
|
||||
file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel)
|
||||
message(STATUS "Configuring ${TARGET_TRIPLET}-rel")
|
||||
set(ENV{CFLAGS} "${VCPKG_C_FLAGS} ${VCPKG_C_FLAGS_RELEASE} -O3 -I${SOURCE_PATH}/include")
|
||||
set(ENV{LDFLAGS} "${VCPKG_LINKER_FLAGS}")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${SOURCE_PATH}/configure --prefix=${CURRENT_PACKAGES_DIR} ${OPTIONS} --with-sysroot=${CURRENT_INSTALLED_DIR}
|
||||
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel
|
||||
LOGNAME configure-${TARGET_TRIPLET}-rel
|
||||
)
|
||||
message(STATUS "Building ${TARGET_TRIPLET}-rel")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND make -j install
|
||||
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel
|
||||
LOGNAME install-${TARGET_TRIPLET}-rel
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share ${CURRENT_PACKAGES_DIR}/share/info)
|
||||
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/pbc/copyright COPYONLY)
|
||||
else()
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO blynn/pbc
|
||||
REF fbf4589036ce4f662e2d06905862c9e816cf9d08
|
||||
SHA512 9348afd3866090b9fca189ae3a6bbb86c842b5f6ee7e1972f1a579993e589952c5926cb0795d4db1e647e3af263827e22c7602314c39bd97e03ffe9ad0fb48ab
|
||||
HEAD_REF master
|
||||
PATCHES windows.patch
|
||||
)
|
||||
|
||||
set(CMAKE_FIND_LIBRARY_PREFIXES "")
|
||||
set(CMAKE_FIND_LIBRARY_SUFFIXES "")
|
||||
|
||||
find_path(MPIR_INCLUDE_DIR "gmp.h" HINTS ${CURRENT_INSTALLED_DIR} PATH_SUFFIXES include)
|
||||
if(NOT MPIR_INCLUDE_DIR)
|
||||
message(FATAL_ERROR "GMP includes not found")
|
||||
endif()
|
||||
|
||||
find_library(MPIR_LIBRARIES_REL NAMES "mpir.lib" HINTS ${CURRENT_INSTALLED_DIR} PATH_SUFFIXES lib)
|
||||
if(NOT MPIR_LIBRARIES_REL)
|
||||
message(FATAL_ERROR "mpir library not found")
|
||||
endif()
|
||||
|
||||
find_library(MPIR_LIBRARIES_DBG NAMES "mpir.lib" HINTS ${CURRENT_INSTALLED_DIR} PATH_SUFFIXES debug/lib)
|
||||
if(NOT MPIR_LIBRARIES_DBG)
|
||||
message(FATAL_ERROR "mpir debug library not found")
|
||||
endif()
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
set(LibrarySuffix "lib")
|
||||
set(ConfigurationSuffix "")
|
||||
else()
|
||||
set(LibrarySuffix "dll")
|
||||
set(ConfigurationSuffix " DLL")
|
||||
endif()
|
||||
|
||||
if(VCPKG_CRT_LINKAGE STREQUAL "static")
|
||||
set(RuntimeLibraryExt "")
|
||||
else()
|
||||
set(RuntimeLibraryExt "DLL")
|
||||
endif()
|
||||
|
||||
if(TRIPLET_SYSTEM_ARCH STREQUAL "x86")
|
||||
set(Platform "Win32")
|
||||
else()
|
||||
set(Platform ${TRIPLET_SYSTEM_ARCH})
|
||||
endif()
|
||||
|
||||
# PBC expects mpir directory in build root
|
||||
get_filename_component(SOURCE_PATH_PARENT ${SOURCE_PATH} DIRECTORY)
|
||||
file(REMOVE_RECURSE ${SOURCE_PATH_PARENT}/mpir)
|
||||
file(MAKE_DIRECTORY ${SOURCE_PATH_PARENT}/mpir)
|
||||
file(GLOB FILES ${MPIR_INCLUDE_DIR}/gmp*.h)
|
||||
file(COPY ${FILES} ${MPIR_LIBRARIES_REL} DESTINATION "${SOURCE_PATH_PARENT}/mpir/${LibrarySuffix}/${Platform}/Release")
|
||||
file(COPY ${FILES} ${MPIR_LIBRARIES_DBG} DESTINATION "${SOURCE_PATH_PARENT}/mpir/${LibrarySuffix}/${Platform}/Debug")
|
||||
|
||||
get_filename_component(SOURCE_PATH_SUFFIX ${SOURCE_PATH} NAME)
|
||||
vcpkg_install_msbuild(SOURCE_PATH ${SOURCE_PATH_PARENT}
|
||||
PROJECT_SUBPATH ${SOURCE_PATH_SUFFIX}/pbcwin/projects/pbclib.vcxproj
|
||||
INCLUDES_SUBPATH ${SOURCE_PATH_SUFFIX}/include
|
||||
LICENSE_SUBPATH ${SOURCE_PATH_SUFFIX}/COPYING
|
||||
RELEASE_CONFIGURATION "Release${ConfigurationSuffix}"
|
||||
DEBUG_CONFIGURATION "Debug${ConfigurationSuffix}"
|
||||
OPTIONS_DEBUG "/p:RuntimeLibrary=MultiThreadedDebug${RuntimeLibraryExt}"
|
||||
OPTIONS_RELEASE "/p:RuntimeLibrary=MultiThreaded${RuntimeLibraryExt}"
|
||||
OPTIONS /p:SolutionDir=../
|
||||
ALLOW_ROOT_INCLUDES ON
|
||||
)
|
||||
|
||||
# clean up mpir stuff
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/mpir.lib ${CURRENT_PACKAGES_DIR}/debug/lib/mpir.lib)
|
||||
endif()
|
108
ports/pbc/windows.patch
Normal file
108
ports/pbc/windows.patch
Normal file
@ -0,0 +1,108 @@
|
||||
diff --git "a/include/pbc_vc_compat.win32.h" "b/include/pbc_vc_compat.win32.h"
|
||||
index 27d3bba..7f772d4 100644
|
||||
--- "a/include/pbc_vc_compat.win32.h"
|
||||
+++ "b/include/pbc_vc_compat.win32.h"
|
||||
@@ -3,7 +3,3 @@
|
||||
#define __attribute__(X)
|
||||
#define inline
|
||||
#define __func__ __FUNCTION__
|
||||
-
|
||||
-#define NULL 0
|
||||
-
|
||||
-#define snprintf _snprintf
|
||||
\ No newline at end of file
|
||||
diff --git "a/pbcwin/projects/pbclib.vcxproj" "b/pbcwin/projects/pbclib.vcxproj"
|
||||
index f0a9b3f..507c24d 100644
|
||||
--- "a/pbcwin/projects/pbclib.vcxproj"
|
||||
+++ "b/pbcwin/projects/pbclib.vcxproj"
|
||||
@@ -214,13 +214,13 @@ <?xml version="1.0" encoding="utf-8"?>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<IncludePath>$(SolutionDir)..\include;$(SolutionDir)..;$(SolutionDir)..\..\mpir\lib\$(Platform)\Release;$(IncludePath)</IncludePath>
|
||||
- <LibraryPath>$(SolutionDir)..\..\mpir\lib\x64\Release;$(LibraryPath)</LibraryPath>
|
||||
+ <LibraryPath>$(SolutionDir)..\..\mpir\lib\$(Platform)\Release;$(LibraryPath)</LibraryPath>
|
||||
<OutDir>$(SolutionDir)lib\$(Platform)\Release\</OutDir>
|
||||
<IntDir>$(SolutionDir)obj\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
- <IncludePath>$(SolutionDir)..\include;$(SolutionDir)..;$(SolutionDir)..\..\mpir\lib\x64\Release;$(IncludePath)</IncludePath>
|
||||
- <LibraryPath>$(SolutionDir)..\..\mpir\lib\x64\Release;$(LibraryPath)</LibraryPath>
|
||||
+ <IncludePath>$(SolutionDir)..\include;$(SolutionDir)..;$(SolutionDir)..\..\mpir\lib\$(Platform)\Release;$(IncludePath)</IncludePath>
|
||||
+ <LibraryPath>$(SolutionDir)..\..\mpir\lib\$(Platform)\Release;$(LibraryPath)</LibraryPath>
|
||||
<OutDir>$(SolutionDir)lib\$(Platform)\Release\</OutDir>
|
||||
<IntDir>$(SolutionDir)obj\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
|
||||
</PropertyGroup>
|
||||
@@ -245,7 +245,8 @@ <?xml version="1.0" encoding="utf-8"?>
|
||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ForcedIncludeFiles>pbc_vc_compat.win32.h</ForcedIncludeFiles>
|
||||
<DisableSpecificWarnings>4068</DisableSpecificWarnings>
|
||||
- <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
||||
+ <DebugInformationFormat>OldStyle</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
@@ -275,7 +276,8 @@ echo ***************************************************************************
|
||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ForcedIncludeFiles>pbc_vc_compat.win32.h</ForcedIncludeFiles>
|
||||
<DisableSpecificWarnings>4068</DisableSpecificWarnings>
|
||||
- <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
||||
+ <DebugInformationFormat>OldStyle</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
@@ -305,7 +307,7 @@ echo ***************************************************************************
|
||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ForcedIncludeFiles>pbc_vc_compat.win32.h</ForcedIncludeFiles>
|
||||
<DisableSpecificWarnings>4068</DisableSpecificWarnings>
|
||||
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
@@ -332,7 +334,7 @@ echo ***************************************************************************
|
||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ForcedIncludeFiles>pbc_vc_compat.win32.h</ForcedIncludeFiles>
|
||||
<DisableSpecificWarnings>4068</DisableSpecificWarnings>
|
||||
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
@@ -361,7 +363,7 @@ echo ***************************************************************************
|
||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ForcedIncludeFiles>pbc_vc_compat.win32.h</ForcedIncludeFiles>
|
||||
<DisableSpecificWarnings>4068</DisableSpecificWarnings>
|
||||
- <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
@@ -395,7 +397,7 @@ echo ***************************************************************************
|
||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ForcedIncludeFiles>pbc_vc_compat.win32.h</ForcedIncludeFiles>
|
||||
<DisableSpecificWarnings>4068</DisableSpecificWarnings>
|
||||
- <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
@@ -429,7 +431,7 @@ echo ***************************************************************************
|
||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ForcedIncludeFiles>pbc_vc_compat.win32.h</ForcedIncludeFiles>
|
||||
<DisableSpecificWarnings>4068</DisableSpecificWarnings>
|
||||
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
@@ -460,7 +462,7 @@ echo ***************************************************************************
|
||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ForcedIncludeFiles>pbc_vc_compat.win32.h</ForcedIncludeFiles>
|
||||
<DisableSpecificWarnings>4068</DisableSpecificWarnings>
|
||||
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
@ -1,4 +1,4 @@
|
||||
Source: physfs
|
||||
Version: 3.0.1
|
||||
Version: 3.0.1-1
|
||||
Description: a library to provide abstract access to various archives
|
||||
Build-Depends: zlib
|
||||
|
25
ports/physfs/physfs.3.0.1.GetUserProfileDirectory.patch
Normal file
25
ports/physfs/physfs.3.0.1.GetUserProfileDirectory.patch
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
diff -r a29fef4a20fd -r ece6769c0676 src/physfs_platform_windows.c
|
||||
--- a/src/physfs_platform_windows.c Wed May 16 19:54:51 2018 -0400
|
||||
+++ b/src/physfs_platform_windows.c Wed Oct 03 22:40:57 2018 -0400
|
||||
@@ -566,7 +566,6 @@
|
||||
else
|
||||
{
|
||||
DWORD psize = 0;
|
||||
- WCHAR dummy = 0;
|
||||
LPWSTR wstr = NULL;
|
||||
BOOL rc = 0;
|
||||
|
||||
@@ -575,7 +574,7 @@
|
||||
* psize. Also note that the second parameter can't be
|
||||
* NULL or the function fails.
|
||||
*/
|
||||
- rc = pGetDir(accessToken, &dummy, &psize);
|
||||
+ rc = pGetDir(accessToken, NULL, &psize);
|
||||
GOTO_IF(rc, PHYSFS_ERR_OS_ERROR, done); /* should have failed! */
|
||||
|
||||
/* Allocate memory for the profile directory */
|
||||
|
||||
|
||||
|
||||
|
@ -6,7 +6,13 @@ vcpkg_download_distfile(ARCHIVE
|
||||
FILENAME "physfs-${PHYSFS_VERSION}.tar.bz2"
|
||||
SHA512 ddf3b075ccb506da5e9a1ce96001be402752b9b777c2e816a85d48aff3626ff0886ea43eb07bd300fe3a9f59b9a002f54d822c51d483a4ee94b38378534c1879
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
REF ${PHYSFS_VERSION}
|
||||
PATCHES
|
||||
physfs.3.0.1.GetUserProfileDirectory.patch # Fixes GetUserProfileDirectory issue on Win10 build 1809(+?); See: https://hg.icculus.org/icculus/physfs/rev/ece6769c0676
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" PHYSFS_STATIC)
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PHYSFS_SHARED)
|
||||
|
@ -1,5 +1,5 @@
|
||||
Source: podofo
|
||||
Version: 0.9.6
|
||||
Version: 0.9.6-1
|
||||
Description: PoDoFo is a library to work with the PDF file format
|
||||
Build-Depends: zlib, libpng, libjpeg-turbo, tiff, openssl (!windows&!uwp), freetype
|
||||
|
||||
|
@ -1,11 +1,16 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/podofo-0.9.6)
|
||||
|
||||
set(PODOFO_VERSION 0.9.6)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://sourceforge.net/projects/podofo/files/podofo/0.9.6/podofo-0.9.6.tar.gz/download"
|
||||
FILENAME "podofo-0.9.6.tar.gz"
|
||||
URLS "https://sourceforge.net/projects/podofo/files/podofo/${PODOFO_VERSION}/podofo-${PODOFO_VERSION}.tar.gz/download"
|
||||
FILENAME "podofo-${PODOFO_VERSION}.tar.gz"
|
||||
SHA512 35c1a457758768bdadc93632385f6b9214824fead279f1b85420443fb2135837cefca9ced476df0d47066f060e9150e12fcd40f60fa1606b177da433feb20130
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
REF ${PODOFO_VERSION}
|
||||
)
|
||||
|
||||
set(PODOFO_NO_FONTMANAGER ON)
|
||||
if("fontconfig" IN_LIST FEATURES)
|
||||
@ -22,6 +27,7 @@ endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DPODOFO_BUILD_LIB_ONLY=1
|
||||
-DPODOFO_BUILD_SHARED=${PODOFO_BUILD_SHARED}
|
||||
@ -30,11 +36,13 @@ vcpkg_configure_cmake(
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_FONTCONFIG=${PODOFO_NO_FONTMANAGER}
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_LIBCRYPTO=${IS_WIN32}
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_LIBIDN=ON
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_CppUnit=ON
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Boost=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
# Handle copyright
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/podofo)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/podofo/COPYING ${CURRENT_PACKAGES_DIR}/share/podofo/copyright)
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: qca
|
||||
Version: 2.2.0-2
|
||||
Version: 2.2.0-3
|
||||
Description: Qt Cryptographic Architecture (QCA). Sources: https://cgit.kde.org/qca.git/
|
||||
Build-Depends: qt5-base
|
||||
|
@ -5,50 +5,24 @@
|
||||
# Updated certstore. See certstore.pem in the output dirs
|
||||
#
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
message(STATUS "Warning: Static building not supported yet. Building dynamic.")
|
||||
set(VCPKG_LIBRARY_LINKAGE dynamic)
|
||||
endif()
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
find_program(GIT git)
|
||||
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
||||
|
||||
vcpkg_find_acquire_program(PERL)
|
||||
get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY)
|
||||
set(ENV{PATH} "$ENV{PATH};${PERL_EXE_PATH}")
|
||||
vcpkg_add_to_path(${PERL_EXE_PATH})
|
||||
|
||||
# Set git variables to qca version 2.2.0 commit
|
||||
set(GIT_URL "git://anongit.kde.org/qca.git")
|
||||
set(GIT_REF "19ec49f89a0a560590ec733c549b92e199792837") # Commit
|
||||
|
||||
# Prepare source dir
|
||||
if(NOT EXISTS "${DOWNLOADS}/qca.git")
|
||||
message(STATUS "Cloning")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${GIT} clone --bare ${GIT_URL} ${DOWNLOADS}/qca.git
|
||||
WORKING_DIRECTORY ${DOWNLOADS}
|
||||
LOGNAME clone
|
||||
)
|
||||
if(EXISTS "${CURRENT_BUILDTREES_DIR}/src/.git")
|
||||
file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/src)
|
||||
endif()
|
||||
message(STATUS "Cloning done")
|
||||
|
||||
if(NOT EXISTS "${CURRENT_BUILDTREES_DIR}/src/.git")
|
||||
message(STATUS "Adding worktree")
|
||||
file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR})
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${GIT} worktree add -f --detach ${CURRENT_BUILDTREES_DIR}/src ${GIT_REF}
|
||||
WORKING_DIRECTORY ${DOWNLOADS}/qca.git
|
||||
LOGNAME worktree
|
||||
)
|
||||
endif()
|
||||
message(STATUS "Adding worktree done")
|
||||
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/)
|
||||
|
||||
# Apply the patch to install to the expected folders
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/0001-fix-path-for-vcpkg.patch
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO KDE/qca
|
||||
REF 19ec49f89a0a560590ec733c549b92e199792837
|
||||
SHA512 6a83ee6715a9a922f4fde5af571e2aad043ac5cbd522f57365038dd31879b44eb57a099ff797793d7ee19e320e0a151e5beacdff3bed525d39ea0b8e46efca9a
|
||||
PATCHES 0001-fix-path-for-vcpkg.patch
|
||||
)
|
||||
|
||||
# According to:
|
||||
@ -72,9 +46,8 @@ message(STATUS "Importing certstore done")
|
||||
# Configure and build
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
CURRENT_PACKAGES_DIR ${CURRENT_PACKAGES_DIR}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DUSE_RELATIVE_PATHS=ON
|
||||
-DQT4_BUILD=OFF
|
||||
-DBUILD_TESTS=OFF
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: re2
|
||||
Version: 2018-11-01
|
||||
Source: re2
|
||||
Version: 2018-11-01-1
|
||||
Description: RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library.
|
@ -15,6 +15,8 @@ vcpkg_configure_cmake(
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/re2 RENAME copyright)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: tinyexif
|
||||
Version: 1.0.1-1
|
||||
Version: 1.0.1-2
|
||||
Build-Depends: tinyxml2
|
||||
Description: tiny ISO-compliant C++ EXIF and XMP parsing library for JPEG images
|
||||
|
31
ports/tinyexif/namespace_tinyxml2.patch
Normal file
31
ports/tinyexif/namespace_tinyxml2.patch
Normal file
@ -0,0 +1,31 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f22584b..1ba8329 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -84,7 +84,7 @@ if(BUILD_SHARED_LIBS)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4251") # needs to have dll-interface
|
||||
endif()
|
||||
|
||||
- target_link_libraries(TinyEXIF tinyxml2)
|
||||
+ target_link_libraries(TinyEXIF tinyxml2::tinyxml2)
|
||||
set_target_properties(TinyEXIF PROPERTIES
|
||||
COMPILE_DEFINITIONS "TINYEXIF_EXPORT"
|
||||
VERSION "${GENERIC_LIB_VERSION}"
|
||||
@@ -121,7 +121,7 @@ endif()
|
||||
if(BUILD_STATIC_LIBS)
|
||||
add_library(TinyEXIFstatic STATIC TinyEXIF.cpp TinyEXIF.h)
|
||||
|
||||
- target_link_libraries(TinyEXIFstatic tinyxml2)
|
||||
+ target_link_libraries(TinyEXIFstatic tinyxml2::tinyxml2)
|
||||
set_target_properties(TinyEXIFstatic PROPERTIES
|
||||
OUTPUT_NAME TinyEXIF
|
||||
VERSION "${GENERIC_LIB_VERSION}"
|
||||
@@ -162,7 +162,7 @@ if(BUILD_DEMO)
|
||||
target_compile_definitions(TinyEXIFdemo PRIVATE TINYEXIF_IMPORT)
|
||||
else(BUILD_STATIC_LIBS)
|
||||
add_dependencies(TinyEXIFdemo TinyEXIFstatic)
|
||||
- target_link_libraries(TinyEXIFdemo TinyEXIFstatic tinyxml2)
|
||||
+ target_link_libraries(TinyEXIFdemo TinyEXIFstatic tinyxml2::tinyxml2)
|
||||
endif()
|
||||
endif()
|
||||
|
@ -6,6 +6,8 @@ vcpkg_from_github(
|
||||
REF 1.0.1
|
||||
SHA512 d018d882adbcebf9fa8ad67a78304a1dd21ffd3a01e3cf2d269fa34efedc5ec5f293767f3a21d62cb1bb9b88b2c364977a9125e9b88b2eac7866a8d6b27c2f23
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
namespace_tinyxml2.patch
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC_LIBS)
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: tinyxml2
|
||||
Version: 6.2.0
|
||||
Version: 7.0.1
|
||||
Description: A simple, small, efficient, C++ XML parser
|
||||
|
@ -3,21 +3,13 @@ include(vcpkg_common_functions)
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO leethomason/tinyxml2
|
||||
REF 6.2.0
|
||||
SHA512 ef784240aeb090ab04aad659352ad4b224c431feecf485f33aca7936bcaa0ef4ab9d0a2e0692d3cf6036ac3e8012019d65665e780a920bbad3d4820f736445b1
|
||||
REF 7.0.1
|
||||
SHA512 623cd7eff542d20b434a67111ac98110101c95a18767318bf906e5e56d8cc25622269f740f50477fe907a4c52d875b614cb6167f4760d42ab18dc55b9d4bf380
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
set(BUILD_STATIC_LIBS 1)
|
||||
else()
|
||||
set(BUILD_STATIC_LIBS 0)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DBUILD_STATIC_LIBS=${BUILD_STATIC_LIBS}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
@ -31,7 +23,6 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
file(COPY
|
||||
${SOURCE_PATH}/readme.md
|
||||
${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyxml2
|
||||
)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/tinyxml2/readme.md ${CURRENT_PACKAGES_DIR}/share/tinyxml2/copyright)
|
||||
|
@ -1,5 +0,0 @@
|
||||
_find_package(${ARGS})
|
||||
if(TARGET tinyxml2_static AND NOT TARGET tinyxml2)
|
||||
_add_library(tinyxml2 INTERFACE IMPORTED)
|
||||
set_target_properties(tinyxml2 PROPERTIES INTERFACE_LINK_LIBRARIES "tinyxml2_static")
|
||||
endif()
|
@ -1,3 +1,3 @@
|
||||
Source: usrsctp
|
||||
Version: 35c1d97020a
|
||||
Version: 35c1d97020a-2
|
||||
Description: This is a userland SCTP stack supporting FreeBSD, Linux, Mac OS X and Windows.
|
||||
|
@ -1,7 +1,7 @@
|
||||
include(vcpkg_common_functions)
|
||||
vcpkg_check_linkage(
|
||||
ONLY_STATIC_LIBRARY
|
||||
)
|
||||
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO sctplab/usrsctp
|
||||
@ -10,27 +10,20 @@ vcpkg_from_github(
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS -Dsctp_werror=OFF -Dsctp_build_programs=OFF
|
||||
)
|
||||
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/debug/include
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/usrsctp.dll
|
||||
${CURRENT_PACKAGES_DIR}/lib/usrsctp.dll
|
||||
)
|
||||
|
||||
configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/usrsctp/copyright COPYONLY)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
file(GLOB_RECURSE release_dlls ${CURRENT_PACKAGES_DIR}/lib/*.dll)
|
||||
file(GLOB_RECURSE debug_dlls ${CURRENT_PACKAGES_DIR}/debug/lib/*.dll)
|
||||
|
||||
if(release_dlls)
|
||||
file(REMOVE ${release_dlls})
|
||||
endif()
|
||||
if(debug_dlls)
|
||||
file(REMOVE ${debug_dlls})
|
||||
endif()
|
||||
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/usrsctp RENAME copyright)
|
||||
|
@ -17,3 +17,19 @@ if(NOT EXISTS "${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake")
|
||||
endif()
|
||||
|
||||
include("${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake")
|
||||
|
||||
if(NOT _VCPKG_ANDROID_TOOLCHAIN)
|
||||
set(_VCPKG_ANDROID_TOOLCHAIN 1)
|
||||
get_property( _CMAKE_IN_TRY_COMPILE GLOBAL PROPERTY IN_TRY_COMPILE )
|
||||
if(NOT _CMAKE_IN_TRY_COMPILE)
|
||||
string(APPEND CMAKE_C_FLAGS_INIT " -fPIC ${VCPKG_C_FLAGS} ")
|
||||
string(APPEND CMAKE_CXX_FLAGS_INIT " -fPIC ${VCPKG_CXX_FLAGS} ")
|
||||
string(APPEND CMAKE_C_FLAGS_DEBUG_INIT " ${VCPKG_C_FLAGS_DEBUG} ")
|
||||
string(APPEND CMAKE_CXX_FLAGS_DEBUG_INIT " ${VCPKG_CXX_FLAGS_DEBUG} ")
|
||||
string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " ${VCPKG_C_FLAGS_RELEASE} ")
|
||||
string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " ${VCPKG_CXX_FLAGS_RELEASE} ")
|
||||
|
||||
string(APPEND CMAKE_SHARED_LINKER_FLAGS_INIT " ${VCPKG_LINKER_FLAGS} ")
|
||||
string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT " ${VCPKG_LINKER_FLAGS} ")
|
||||
endif()
|
||||
endif()
|
||||
|
@ -1,3 +1,5 @@
|
||||
if(NOT _VCPKG_FREEBSD_TOOLCHAIN)
|
||||
set(_VCPKG_FREEBSD_TOOLCHAIN 1)
|
||||
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "FreeBSD")
|
||||
set(CMAKE_CROSSCOMPILING OFF CACHE BOOL "")
|
||||
endif()
|
||||
@ -5,14 +7,14 @@ set(CMAKE_SYSTEM_NAME FreeBSD CACHE STRING "")
|
||||
|
||||
get_property( _CMAKE_IN_TRY_COMPILE GLOBAL PROPERTY IN_TRY_COMPILE )
|
||||
if(NOT _CMAKE_IN_TRY_COMPILE)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${VCPKG_CXX_FLAGS} -fPIC" CACHE STRING "")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${VCPKG_C_FLAGS} -fPIC" CACHE STRING "")
|
||||
string(APPEND CMAKE_C_FLAGS_INIT " -fPIC ${VCPKG_C_FLAGS} ")
|
||||
string(APPEND CMAKE_CXX_FLAGS_INIT " -fPIC ${VCPKG_CXX_FLAGS} ")
|
||||
string(APPEND CMAKE_C_FLAGS_DEBUG_INIT " ${VCPKG_C_FLAGS_DEBUG} ")
|
||||
string(APPEND CMAKE_CXX_FLAGS_DEBUG_INIT " ${VCPKG_CXX_FLAGS_DEBUG} ")
|
||||
string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " ${VCPKG_C_FLAGS_RELEASE} ")
|
||||
string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " ${VCPKG_CXX_FLAGS_RELEASE} ")
|
||||
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${VCPKG_CXX_FLAGS_DEBUG}" CACHE STRING "")
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${VCPKG_C_FLAGS_DEBUG}" CACHE STRING "")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${VCPKG_CXX_FLAGS_RELEASE}" CACHE STRING "")
|
||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${VCPKG_C_FLAGS_RELEASE}" CACHE STRING "")
|
||||
|
||||
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} ${VCPKG_LINKER_FLAGS}" CACHE STRING "")
|
||||
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} ${VCPKG_LINKER_FLAGS}" CACHE STRING "")
|
||||
string(APPEND CMAKE_SHARED_LINKER_FLAGS_INIT " ${VCPKG_LINKER_FLAGS} ")
|
||||
string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT " ${VCPKG_LINKER_FLAGS} ")
|
||||
endif()
|
||||
endif()
|
||||
|
@ -1,3 +1,5 @@
|
||||
if(NOT _VCPKG_LINUX_TOOLCHAIN)
|
||||
set(_VCPKG_LINUX_TOOLCHAIN 1)
|
||||
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
|
||||
set(CMAKE_CROSSCOMPILING OFF CACHE BOOL "")
|
||||
endif()
|
||||
@ -5,14 +7,14 @@ set(CMAKE_SYSTEM_NAME Linux CACHE STRING "")
|
||||
|
||||
get_property( _CMAKE_IN_TRY_COMPILE GLOBAL PROPERTY IN_TRY_COMPILE )
|
||||
if(NOT _CMAKE_IN_TRY_COMPILE)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${VCPKG_CXX_FLAGS} -fPIC" CACHE STRING "")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${VCPKG_C_FLAGS} -fPIC" CACHE STRING "")
|
||||
string(APPEND CMAKE_C_FLAGS_INIT " -fPIC ${VCPKG_C_FLAGS} ")
|
||||
string(APPEND CMAKE_CXX_FLAGS_INIT " -fPIC ${VCPKG_CXX_FLAGS} ")
|
||||
string(APPEND CMAKE_C_FLAGS_DEBUG_INIT " ${VCPKG_C_FLAGS_DEBUG} ")
|
||||
string(APPEND CMAKE_CXX_FLAGS_DEBUG_INIT " ${VCPKG_CXX_FLAGS_DEBUG} ")
|
||||
string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " ${VCPKG_C_FLAGS_RELEASE} ")
|
||||
string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " ${VCPKG_CXX_FLAGS_RELEASE} ")
|
||||
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${VCPKG_CXX_FLAGS_DEBUG}" CACHE STRING "")
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${VCPKG_C_FLAGS_DEBUG}" CACHE STRING "")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${VCPKG_CXX_FLAGS_RELEASE}" CACHE STRING "")
|
||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${VCPKG_C_FLAGS_RELEASE}" CACHE STRING "")
|
||||
|
||||
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} ${VCPKG_LINKER_FLAGS}" CACHE STRING "")
|
||||
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} ${VCPKG_LINKER_FLAGS}" CACHE STRING "")
|
||||
string(APPEND CMAKE_SHARED_LINKER_FLAGS_INIT " ${VCPKG_LINKER_FLAGS} ")
|
||||
string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT " ${VCPKG_LINKER_FLAGS} ")
|
||||
endif()
|
||||
endif()
|
||||
|
@ -1,3 +1,5 @@
|
||||
if(NOT _VCPKG_OSX_TOOLCHAIN)
|
||||
set(_VCPKG_OSX_TOOLCHAIN 1)
|
||||
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
|
||||
set(CMAKE_CROSSCOMPILING OFF CACHE BOOL "")
|
||||
|
||||
@ -13,14 +15,14 @@ set(CMAKE_MACOSX_RPATH ON CACHE BOOL "")
|
||||
|
||||
get_property( _CMAKE_IN_TRY_COMPILE GLOBAL PROPERTY IN_TRY_COMPILE )
|
||||
if(NOT _CMAKE_IN_TRY_COMPILE)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${VCPKG_CXX_FLAGS} -fPIC" CACHE STRING "")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${VCPKG_C_FLAGS} -fPIC" CACHE STRING "")
|
||||
string(APPEND CMAKE_C_FLAGS_INIT " -fPIC ${VCPKG_C_FLAGS} ")
|
||||
string(APPEND CMAKE_CXX_FLAGS_INIT " -fPIC ${VCPKG_CXX_FLAGS} ")
|
||||
string(APPEND CMAKE_C_FLAGS_DEBUG_INIT " ${VCPKG_C_FLAGS_DEBUG} ")
|
||||
string(APPEND CMAKE_CXX_FLAGS_DEBUG_INIT " ${VCPKG_CXX_FLAGS_DEBUG} ")
|
||||
string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " ${VCPKG_C_FLAGS_RELEASE} ")
|
||||
string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " ${VCPKG_CXX_FLAGS_RELEASE} ")
|
||||
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${VCPKG_CXX_FLAGS_DEBUG}" CACHE STRING "")
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${VCPKG_C_FLAGS_DEBUG}" CACHE STRING "")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${VCPKG_CXX_FLAGS_RELEASE}" CACHE STRING "")
|
||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${VCPKG_C_FLAGS_RELEASE}" CACHE STRING "")
|
||||
|
||||
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} ${VCPKG_LINKER_FLAGS}" CACHE STRING "")
|
||||
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} ${VCPKG_LINKER_FLAGS}" CACHE STRING "")
|
||||
string(APPEND CMAKE_SHARED_LINKER_FLAGS_INIT " ${VCPKG_LINKER_FLAGS} ")
|
||||
string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT " ${VCPKG_LINKER_FLAGS} ")
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user