mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 14:09:01 +08:00
Merge branch 'master' of http://github.com/Microsoft/vcpkg
This commit is contained in:
commit
32dd084dea
45
CHANGELOG.md
45
CHANGELOG.md
@ -1,3 +1,48 @@
|
||||
vcpkg (0.0.65)
|
||||
--------------
|
||||
* Add ports:
|
||||
- anax 2.1.0-1
|
||||
- aws-sdk-cpp 1.0.34-1
|
||||
- azure-storage-cpp 2.5.0
|
||||
- charls 2.0.0
|
||||
- dimcli 1.0.3
|
||||
- entityx 1.2.0
|
||||
- freeimage 3.17.0
|
||||
- gdal 1.11.3
|
||||
- globjects 1.0.0
|
||||
- http-parser 2.7.1
|
||||
- icu 58.1
|
||||
- libflac 1.3.1-1
|
||||
- libssh2 1.8.0
|
||||
- nana 1.4.1
|
||||
- qca 2.2.0
|
||||
- sfml 2.4.1
|
||||
- shaderc 2df47b51d83ad83cbc2e7f8ff2b56776293e8958
|
||||
- uwebsockets 0.12.0
|
||||
- yaml-cpp 0.5.4 candidate
|
||||
* Update ports:
|
||||
- boost 1.62-6 -> 1.62-8
|
||||
- curl 7.51.0-1 -> 7.51.0-2
|
||||
- gflags 2.1.2 -> 2.2.0-2
|
||||
- glbinding 2.1.1 -> 2.1.1-1
|
||||
- glslang 1c573fbcfba6b3d631008b1babc838501ca925d3 -> 1c573fbcfba6b3d631008b1babc838501ca925d3-1
|
||||
- harfbuzz 1.3.2 -> 1.3.4
|
||||
- jxrlib 1.1-1 -> 1.1-2
|
||||
- libraw 0.17.2 -> 0.17.2-2
|
||||
- lua 5.3.3 -> 5.3.3-1
|
||||
- openssl 1.0.2j -> 1.0.2j-1
|
||||
* Improvements in the post-build checks:
|
||||
- Add check for files in the `<package>\` dir and `<package>\debug\` dir
|
||||
* Introduce pre-install checks:
|
||||
- The `install` command now checks that files will not be overwrriten when installing a package. A particular file can only be owned by a single package
|
||||
* Introduce 'lib\manul-link\' directory. Libraries placing the lib files in that directory are not automatically added to the link line
|
||||
* Disable all interactions with CMake registry
|
||||
* `vcpkg /?` is now a valid equivalent of `vcpkg help`
|
||||
* Fixes and improvements in existing portfiles and the `vcpkg` tool itself
|
||||
|
||||
-- vcpkg team <vcpkg@microsoft.com> MON, 12 Dec 2016 18:15:00 -0800
|
||||
|
||||
|
||||
vcpkg (0.0.61)
|
||||
--------------
|
||||
* Add ports:
|
||||
|
@ -27,7 +27,7 @@ Finally, create a New Project (or open an existing one) in Visual Studio 2015 or
|
||||
## Examples
|
||||
See the [`docs\EXAMPLES.md`](docs/EXAMPLES.md) document for specific walkthroughs, including using a package and adding a new package.
|
||||
|
||||
See a 4 mm [demo in video](https://www.youtube.com/watch?v=y41WFKbQFTw).
|
||||
See a 4 minute [demo in video](https://www.youtube.com/watch?v=y41WFKbQFTw).
|
||||
|
||||
## Contributing
|
||||
Vcpkg is built with your contributions. Here are some ways you can contribute:
|
||||
|
@ -61,6 +61,9 @@ In a corporate scenario, we currently recommend building the libraries once and
|
||||
## What Visual C++ toolsets are supported?
|
||||
We plan to only support Visual Studio 2015 and above.
|
||||
|
||||
## Why does Visual Studio not use my libraries with user-wide integration enabled?
|
||||
Enabling user-wide integration (`vcpkg integrate install`) changes the default for some project properties. In particular, "C/C++/General/Additional Include Directories" and "Linker/General/Additional Library Directories" are normally blank *without* user-wide integration. *With* integration, a blank value means that the augmented default supplied by vcpkg is overridden, and headers/libraries will not be found. To reinstate the default, set the properties to inherit from parent.
|
||||
|
||||
## Can I acquire my package's sources by Git url+tag?
|
||||
Yes, however we prefer compressed archives of the specific release/commit since the internal downloads and build trees are meant to be read only. Github provides archives for every commit, tag, and branch, so it's always possible to perform this substitution for repositories hosted there.
|
||||
|
||||
|
10
ports/anax/Add-bin-output.patch
Normal file
10
ports/anax/Add-bin-output.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- a/CMakeLists.txt Tue Oct 13 13:47:40 2015
|
||||
+++ b/CMakeLists.txt Tue Dec 06 11:13:23 2016
|
||||
@@ -161,6 +161,7 @@
|
||||
# Library files
|
||||
install(
|
||||
TARGETS ${ANAX_LIBRARY_NAME}
|
||||
+ RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
@ -1,3 +1,3 @@
|
||||
Source: anax
|
||||
Version: 2.1.0
|
||||
Version: 2.1.0-1
|
||||
Description: An open source C++ entity system. <https://github.com/miguelmartin75/anax>
|
||||
|
@ -6,10 +6,6 @@
|
||||
# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
|
||||
#
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(STATUS "Warning: Dynamic building not supported yet. Building static.")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/anax-2.1.0)
|
||||
@ -20,8 +16,15 @@ vcpkg_download_distfile(ARCHIVE
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/Add-bin-output.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
3
ports/antlr4/CONTROL
Normal file
3
ports/antlr4/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: antlr4
|
||||
Version: 4.6
|
||||
Description: ANother Tool for Language Recognition
|
36
ports/antlr4/crt_mt.patch
Normal file
36
ports/antlr4/crt_mt.patch
Normal file
@ -0,0 +1,36 @@
|
||||
diff --git a/runtime/antlr4cpp-vs2015.vcxproj b/runtime/antlr4cpp-vs2015.vcxproj
|
||||
index 85fa3da..540f031 100644
|
||||
--- a/runtime/antlr4cpp-vs2015.vcxproj
|
||||
+++ b/runtime/antlr4cpp-vs2015.vcxproj
|
||||
@@ -201,6 +201,7 @@
|
||||
<DisableSpecificWarnings>4251</DisableSpecificWarnings>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
+ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
@@ -239,6 +240,7 @@
|
||||
<DisableSpecificWarnings>4251</DisableSpecificWarnings>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
+ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
@@ -281,6 +283,7 @@
|
||||
</ForcedIncludeFiles>
|
||||
<DisableSpecificWarnings>4251</DisableSpecificWarnings>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
+ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
@@ -325,6 +328,7 @@
|
||||
</ForcedIncludeFiles>
|
||||
<DisableSpecificWarnings>4251</DisableSpecificWarnings>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
+ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
74
ports/antlr4/portfile.cmake
Normal file
74
ports/antlr4/portfile.cmake
Normal file
@ -0,0 +1,74 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/runtime)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://www.antlr.org/download/antlr4-cpp-runtime-4.6-source.zip"
|
||||
FILENAME "antlr4-cpp-runtime-4.6-source.zip"
|
||||
SHA512 e123c2227e41ce80da5a3758725a018690ed70a4e10c23da26c966259e6bdafa192f4363f5a7e1181ef9a47bf3cc50d6b0ca7b26c8dd2b19222a7edf54de8de2
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src
|
||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/crt_mt.patch
|
||||
)
|
||||
|
||||
if (${VCPKG_LIBRARY_LINKAGE} STREQUAL static)
|
||||
set(DEBUG_CONFIG "Debug Static")
|
||||
set(RELEASE_CONFIG "Release Static")
|
||||
else()
|
||||
set(DEBUG_CONFIG "Debug DLL")
|
||||
set(RELEASE_CONFIG "Release DLL")
|
||||
endif()
|
||||
|
||||
vcpkg_build_msbuild(
|
||||
PROJECT_PATH ${SOURCE_PATH}/antlr4cpp-vs2015.vcxproj
|
||||
DEBUG_CONFIGURATION ${DEBUG_CONFIG}
|
||||
RELEASE_CONFIGURATION ${RELEASE_CONFIG}
|
||||
)
|
||||
|
||||
file (MAKE_DIRECTORY
|
||||
${CURRENT_PACKAGES_DIR}/include)
|
||||
FILE(COPY ${SOURCE_PATH}/src/
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
||||
FILES_MATCHING PATTERN "*.h")
|
||||
|
||||
file (MAKE_DIRECTORY
|
||||
${CURRENT_PACKAGES_DIR}/lib
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib)
|
||||
|
||||
file(COPY ${SOURCE_PATH}/bin/vs-2015/${TRIPLET_SYSTEM_ARCH}/${DEBUG_CONFIG}/antlr4-runtime.lib
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
||||
file(COPY ${SOURCE_PATH}/bin/vs-2015/${TRIPLET_SYSTEM_ARCH}/${RELEASE_CONFIG}/antlr4-runtime.lib
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
||||
|
||||
if (${VCPKG_LIBRARY_LINKAGE} STREQUAL static)
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${CURRENT_PACKAGES_DIR}/include
|
||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/static.patch
|
||||
)
|
||||
else()
|
||||
file (MAKE_DIRECTORY
|
||||
${CURRENT_PACKAGES_DIR}/bin
|
||||
${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
|
||||
file(COPY
|
||||
${SOURCE_PATH}/bin/vs-2015/${TRIPLET_SYSTEM_ARCH}/${DEBUG_CONFIG}/antlr4-runtime.dll
|
||||
${SOURCE_PATH}/bin/vs-2015/${TRIPLET_SYSTEM_ARCH}/${DEBUG_CONFIG}/antlr4-runtime.pdb
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(COPY
|
||||
${SOURCE_PATH}/bin/vs-2015/${TRIPLET_SYSTEM_ARCH}/${RELEASE_CONFIG}/antlr4-runtime.dll
|
||||
${SOURCE_PATH}/bin/vs-2015/${TRIPLET_SYSTEM_ARCH}/${RELEASE_CONFIG}/antlr4-runtime.pdb
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
|
||||
endif()
|
||||
|
||||
|
||||
# license not exist in antlr folder.
|
||||
vcpkg_download_distfile(LICENSE
|
||||
URLS https://raw.githubusercontent.com/antlr/antlr4/master/LICENSE.txt
|
||||
FILENAME "antlr4-copyright"
|
||||
SHA512 c72ae3d5c9f3f07160405b5ca44f01116a9602d82291d6cd218fcc5ec6e8baf985e4baa2acf3d621079585385708bd171c96ef44dd808e60c40a48bc1f56c9ae
|
||||
)
|
||||
file(INSTALL ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/antlr4 RENAME copyright)
|
||||
|
||||
message(STATUS "Installing done")
|
12
ports/antlr4/static.patch
Normal file
12
ports/antlr4/static.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git a/antlr4-common.h b/antlr4-common.h
|
||||
index 197fd6d..34a62c8 100644
|
||||
--- a/antlr4-common.h
|
||||
+++ b/antlr4-common.h
|
||||
@@ -34,6 +34,7 @@
|
||||
#include <bitset>
|
||||
#include <condition_variable>
|
||||
|
||||
+#define ANTLR4CPP_STATIC
|
||||
// Defines for the Guid class and other platform dependent stuff.
|
||||
#ifdef _WIN32
|
||||
#pragma warning (disable: 4250) // Class inherits by dominance.
|
@ -9,7 +9,7 @@ vcpkg_download_distfile(ARCHIVE
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/asio-asio-1-10-6/asio/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/asio)
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/asio)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/asio/COPYING ${CURRENT_PACKAGES_DIR}/share/asio/copyright)
|
||||
|
||||
# Copy the asio header files
|
||||
|
@ -7,6 +7,7 @@
|
||||
#
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
SET(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/assimp-3.3.1)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/assimp/assimp/archive/v3.3.1.zip"
|
||||
FILENAME "assimp-3.3.1.zip"
|
||||
@ -15,7 +16,7 @@ vcpkg_download_distfile(ARCHIVE
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/assimp-3.3.1
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS -DASSIMP_BUILD_TESTS=False
|
||||
-DASSIMP_BUILD_ASSIMP_VIEW=False
|
||||
-DASSIMP_BUILD_ZLIB=False
|
||||
@ -33,7 +34,7 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/assimp-3.3.1/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/assimp)
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/assimp)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/assimp/LICENSE ${CURRENT_PACKAGES_DIR}/share/assimp/copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
3
ports/aws-sdk-cpp/CONTROL
Normal file
3
ports/aws-sdk-cpp/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: aws-sdk-cpp
|
||||
Version: 1.0.47
|
||||
Description: AWS SDK for C++
|
13
ports/aws-sdk-cpp/drop_git.patch
Normal file
13
ports/aws-sdk-cpp/drop_git.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 9d2a98a..ce58b68 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -22,7 +22,7 @@ if(CMAKE_MAJOR_VERSION LESS 3)
|
||||
endif()
|
||||
|
||||
# git is required for Android builds and optional for all other platforms
|
||||
-find_package(Git)
|
||||
+#find_package(Git)
|
||||
|
||||
# Cmake invocation variables:
|
||||
# CUSTOM_MEMORY_MANAGEMENT - if set to 1, generates the sdk project files with custom memory management enabled, otherwise disables it
|
55
ports/aws-sdk-cpp/portfile.cmake
Normal file
55
ports/aws-sdk-cpp/portfile.cmake
Normal file
@ -0,0 +1,55 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/aws-sdk-cpp-1.0.47)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/aws/aws-sdk-cpp/archive/1.0.47.tar.gz"
|
||||
FILENAME "aws-sdk-cpp-1.0.47.tar.gz"
|
||||
SHA512 ce7471bafe2763f1c382eed8afeaf6422058599a3aa11ae52909da668c45d12827fcd06b9b3ce34e3c2fa33297fd2e09421b8a89833d581efaf62b7108232acf
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/drop_git.patch
|
||||
)
|
||||
|
||||
if(VCPKG_CRT_LINKAGE STREQUAL static)
|
||||
set(FORCE_SHARED_CRT OFF)
|
||||
else()
|
||||
set(FORCE_SHARED_CRT ON)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DENABLE_TESTING=OFF
|
||||
-DFORCE_SHARED_CRT=${FORCE_SHARED_CRT}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/debug/include
|
||||
${CURRENT_PACKAGES_DIR}/lib/cmake
|
||||
${CURRENT_PACKAGES_DIR}/lib/pkgconfig
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/cmake
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig
|
||||
${CURRENT_PACKAGES_DIR}/nuget
|
||||
${CURRENT_PACKAGES_DIR}/debug/nuget)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
file(GLOB LIB_FILES ${CURRENT_PACKAGES_DIR}/bin/*.lib)
|
||||
file(GLOB DEBUG_LIB_FILES ${CURRENT_PACKAGES_DIR}/debug/bin/*.lib)
|
||||
file(COPY ${LIB_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
||||
file(COPY ${DEBUG_LIB_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
||||
file(REMOVE ${LIB_FILES} ${DEBUG_LIB_FILES})
|
||||
|
||||
vcpkg_apply_patches( #define USE_IMPORT_EXPORT in SDKConfig.h
|
||||
SOURCE_PATH ${CURRENT_PACKAGES_DIR}/include
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/shared_define.patch
|
||||
)
|
||||
endif()
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/aws-sdk-cpp RENAME copyright)
|
10
ports/aws-sdk-cpp/shared_define.patch
Normal file
10
ports/aws-sdk-cpp/shared_define.patch
Normal file
@ -0,0 +1,10 @@
|
||||
diff --git a/aws/core/SDKConfig.h b/aws/core/SDKConfig.h
|
||||
index 130c9dd..66b2630 100644
|
||||
--- a/aws/core/SDKConfig.h
|
||||
+++ b/aws/core/SDKConfig.h
|
||||
@@ -17,3 +17,4 @@
|
||||
|
||||
#define JSON_USE_EXCEPTION 0
|
||||
|
||||
+#define USE_IMPORT_EXPORT
|
||||
\ No newline at end of file
|
5
ports/azure-storage-cpp/CONTROL
Normal file
5
ports/azure-storage-cpp/CONTROL
Normal file
@ -0,0 +1,5 @@
|
||||
Source: azure-storage-cpp
|
||||
Version: 2.6.0
|
||||
Build-Depends: cpprestsdk
|
||||
Description: Microsoft Azure Storage Client SDK for C++
|
||||
A client library for working with Microsoft Azure storage services including blobs, files, tables, and queues. This client library enables working with the Microsoft Azure storage services which include the blob service for storing binary and text data, the file service for storing binary and text data, the table service for storing structured non-relational data, and the queue service for storing messages that may be accessed by a client. Microsoft Azure Storage team's blog - http://blogs.msdn.com/b/windowsazurestorage/
|
169
ports/azure-storage-cpp/cmake.patch
Normal file
169
ports/azure-storage-cpp/cmake.patch
Normal file
@ -0,0 +1,169 @@
|
||||
diff --git a/Microsoft.WindowsAzure.Storage/CMakeLists.txt b/Microsoft.WindowsAzure.Storage/CMakeLists.txt
|
||||
index f037c7f..a4dd278 100644
|
||||
--- a/Microsoft.WindowsAzure.Storage/CMakeLists.txt
|
||||
+++ b/Microsoft.WindowsAzure.Storage/CMakeLists.txt
|
||||
@@ -51,20 +51,25 @@ if(UNIX)
|
||||
find_package(UnitTest++ REQUIRED)
|
||||
endif()
|
||||
|
||||
- option(BUILD_SHARED_LIBS "Build shared Libraries." ON)
|
||||
|
||||
- file(GLOB WAS_HEADERS includes/was/*.h)
|
||||
- install(FILES ${WAS_HEADERS} DESTINATION include/was)
|
||||
- file(GLOB WASCORE_HEADERS includes/wascore/*.h)
|
||||
- install(FILES ${WASCORE_HEADERS} DESTINATION include/wascore)
|
||||
- file(GLOB WASCORE_DATA includes/wascore/*.dat)
|
||||
- install(FILES ${WASCORE_DATA} DESTINATION include/wascore)
|
||||
+elseif(WIN32)
|
||||
+ message("-- Setting WIN32 options")
|
||||
+ find_package(Casablanca REQUIRED)
|
||||
+ add_definitions(-DUNICODE -D_UNICODE -D_WIN32)
|
||||
else()
|
||||
message("-- Unsupported Build Platform.")
|
||||
endif()
|
||||
|
||||
+option(BUILD_SHARED_LIBS "Build shared Libraries." ON)
|
||||
+option(WASTORE_INSTALL_HEADERS "Install header files." ON)
|
||||
+if(WASTORE_INSTALL_HEADERS)
|
||||
+ file(GLOB WAS_HEADERS includes/was/*.h)
|
||||
+ file(GLOB WASCORE_HEADERS includes/wascore/basic_types.h includes/wascore/constants.h)
|
||||
+ file(GLOB WASCORE_DATA includes/wascore/*.dat)
|
||||
+endif()
|
||||
+
|
||||
# Compiler (not platform) specific settings
|
||||
-if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
||||
+if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
||||
message("-- Setting gcc options")
|
||||
|
||||
set(WARNINGS "-Wall -Wextra -Wunused-parameter -Wcast-align -Wcast-qual -Wconversion -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wpacked -Wredundant-decls -Wunreachable-code")
|
||||
@@ -81,22 +86,29 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
||||
add_definitions(-DBOOST_LOG_DYN_LINK)
|
||||
endif()
|
||||
add_definitions(-D_TURN_OFF_PLATFORM_STRING)
|
||||
-elseif((CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
|
||||
- message("-- Setting clang options")
|
||||
+elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
+ message("-- Setting clang options")
|
||||
|
||||
- set(WARNINGS "-Wall -Wextra -Wcast-qual -Wconversion -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wpacked -Wredundant-decls")
|
||||
- set(OSX_SUPPRESSIONS "-Wno-overloaded-virtual -Wno-sign-conversion -Wno-deprecated -Wno-unknown-pragmas -Wno-reorder -Wno-char-subscripts -Wno-switch -Wno-unused-parameter -Wno-unused-variable -Wno-deprecated -Wno-unused-value -Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-unused-function -Wno-sign-compare -Wno-shorten-64-to-32 -Wno-reorder -Wno-unused-local-typedefs")
|
||||
- set(WARNINGS "${WARNINGS} ${OSX_SUPPRESSIONS}")
|
||||
+ set(WARNINGS "-Wall -Wextra -Wcast-qual -Wconversion -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wpacked -Wredundant-decls")
|
||||
+ set(OSX_SUPPRESSIONS "-Wno-overloaded-virtual -Wno-sign-conversion -Wno-deprecated -Wno-unknown-pragmas -Wno-reorder -Wno-char-subscripts -Wno-switch -Wno-unused-parameter -Wno-unused-variable -Wno-deprecated -Wno-unused-value -Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-unused-function -Wno-sign-compare -Wno-shorten-64-to-32 -Wno-reorder -Wno-unused-local-typedefs")
|
||||
+ set(WARNINGS "${WARNINGS} ${OSX_SUPPRESSIONS}")
|
||||
|
||||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -Wno-return-type-c-linkage -Wno-unneeded-internal-declaration")
|
||||
- set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
|
||||
- set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11")
|
||||
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -Wno-return-type-c-linkage -Wno-unneeded-internal-declaration")
|
||||
+ set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
|
||||
+ set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11")
|
||||
|
||||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-strict-aliasing")
|
||||
- if (BUILD_SHARED_LIBS)
|
||||
- add_definitions(-DBOOST_LOG_DYN_LINK)
|
||||
- endif()
|
||||
- add_definitions(-D_TURN_OFF_PLATFORM_STRING)
|
||||
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-strict-aliasing")
|
||||
+ if (BUILD_SHARED_LIBS)
|
||||
+ add_definitions(-DBOOST_LOG_DYN_LINK)
|
||||
+ endif()
|
||||
+ add_definitions(-D_TURN_OFF_PLATFORM_STRING)
|
||||
+elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||||
+ message("-- Setting MSVC options")
|
||||
+ add_compile_options(/bigobj)
|
||||
+ add_compile_options(/MP)
|
||||
+ if(BUILD_SHARED_LIBS)
|
||||
+ add_definitions(-DWASTORAGE_DLL -D_USRDLL)
|
||||
+ endif()
|
||||
else()
|
||||
message("-- Unknown compiler, success is doubtful.")
|
||||
endif()
|
||||
@@ -109,7 +121,6 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Binaries)
|
||||
set(AZURESTORAGE_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/includes)
|
||||
set(AZURESTORAGE_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/includes ${CASABLANCA_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIRS} ${LibXML++_INCLUDE_DIRS} ${UUID_INCLUDE_DIRS} ${Glibmm_INCLUDE_DIRS})
|
||||
|
||||
-
|
||||
set(AZURESTORAGE_LIBRARY azurestorage)
|
||||
set(AZURESTORAGE_LIBRARIES ${AZURESTORAGE_LIBRARY} ${CASABLANCA_LIBRARIES} ${Boost_LIBRARIES} ${Boost_FRAMEWORK} ${OPENSSL_LIBRARIES} ${LibXML++_LIBRARIES} ${UUID_LIBRARIES} ${Glibmm_LIBRARIES})
|
||||
|
||||
diff --git a/Microsoft.WindowsAzure.Storage/cmake/Modules/FindCasablanca.cmake b/Microsoft.WindowsAzure.Storage/cmake/Modules/FindCasablanca.cmake
|
||||
index 5c1df3c..da66eb4 100644
|
||||
--- a/Microsoft.WindowsAzure.Storage/cmake/Modules/FindCasablanca.cmake
|
||||
+++ b/Microsoft.WindowsAzure.Storage/cmake/Modules/FindCasablanca.cmake
|
||||
@@ -27,6 +27,7 @@ find_path(CASABLANCA_INCLUDE_DIR
|
||||
find_library(CASABLANCA_LIBRARY
|
||||
NAMES
|
||||
cpprest
|
||||
+ cpprest_2_9.lib
|
||||
PATHS
|
||||
${CASABLANCA_PKGCONF_LIBRARY_DIRS}
|
||||
${CASABLANCA_DIR}
|
||||
diff --git a/Microsoft.WindowsAzure.Storage/src/CMakeLists.txt b/Microsoft.WindowsAzure.Storage/src/CMakeLists.txt
|
||||
index b08111f..74ba2fb 100644
|
||||
--- a/Microsoft.WindowsAzure.Storage/src/CMakeLists.txt
|
||||
+++ b/Microsoft.WindowsAzure.Storage/src/CMakeLists.txt
|
||||
@@ -2,7 +2,7 @@ include_directories(${Boost_INCLUDE_DIR} ${OPENSSL_INCLUDE_DIR})
|
||||
include_directories(${AZURESTORAGE_INCLUDE_DIRS})
|
||||
|
||||
# THE ORDER OF FILES IS VERY /VERY/ IMPORTANT
|
||||
-if(UNIX)
|
||||
+if(UNIX OR WIN32)
|
||||
set(SOURCES
|
||||
xmlhelpers.cpp
|
||||
response_parsers.cpp
|
||||
@@ -64,24 +64,46 @@ if ("${CMAKE_BUILD_TYPE}" MATCHES "Debug")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
|
||||
endif()
|
||||
if (APPLE)
|
||||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNINGS}")
|
||||
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNINGS}")
|
||||
else()
|
||||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
+endif()
|
||||
+
|
||||
+if(MSVC)
|
||||
+ add_compile_options(/Yustdafx.h)
|
||||
+ set_source_files_properties(stdafx.cpp PROPERTIES COMPILE_FLAGS "/Ycstdafx.h")
|
||||
+
|
||||
+ if (NOT CMAKE_GENERATOR MATCHES "Visual Studio .*")
|
||||
+ set_property(SOURCE stdafx.cpp APPEND PROPERTY OBJECT_OUTPUTS "${CMAKE_CURRENT_BINARY_DIR}/stdafx.pch")
|
||||
+ set_property(SOURCE ${SOURCES} APPEND PROPERTY OBJECT_DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/stdafx.pch")
|
||||
+ endif()
|
||||
+
|
||||
+ list(APPEND SOURCES stdafx.cpp)
|
||||
endif()
|
||||
|
||||
add_library(${AZURESTORAGE_LIBRARY} ${SOURCES})
|
||||
|
||||
target_link_libraries(${AZURESTORAGE_LIBRARIES})
|
||||
+if(WIN32)
|
||||
+ target_link_libraries(${AZURESTORAGE_LIBRARY} Ws2_32.lib rpcrt4.lib xmllite.lib bcrypt.lib)
|
||||
+endif()
|
||||
|
||||
# Portions specific to azure storage binary versioning and installation.
|
||||
if(UNIX)
|
||||
set_target_properties(${AZURESTORAGE_LIBRARY} PROPERTIES
|
||||
SOVERSION ${AZURESTORAGE_VERSION_MAJOR}
|
||||
VERSION ${AZURESTORAGE_VERSION_MAJOR}.${AZURESTORAGE_VERSION_MINOR})
|
||||
-
|
||||
- install(
|
||||
- TARGETS ${AZURESTORAGE_LIBRARY}
|
||||
- LIBRARY DESTINATION lib
|
||||
- ARCHIVE DESTINATION lib
|
||||
- )
|
||||
+elseif(WIN32)
|
||||
+ set_target_properties(${AZURESTORAGE_LIBRARY} PROPERTIES OUTPUT_NAME "wastorage")
|
||||
endif()
|
||||
+
|
||||
+install(FILES ${WAS_HEADERS} DESTINATION include/was)
|
||||
+install(FILES ${WASCORE_HEADERS} DESTINATION include/wascore)
|
||||
+install(FILES ${WASCORE_DATA} DESTINATION include/wascore)
|
||||
+
|
||||
+install(
|
||||
+ TARGETS ${AZURESTORAGE_LIBRARY}
|
||||
+ RUNTIME DESTINATION bin
|
||||
+ LIBRARY DESTINATION lib
|
||||
+ ARCHIVE DESTINATION lib
|
||||
+)
|
33
ports/azure-storage-cpp/portfile.cmake
Normal file
33
ports/azure-storage-cpp/portfile.cmake
Normal file
@ -0,0 +1,33 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/azure-storage-cpp-2.6.0)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/Azure/azure-storage-cpp/archive/v2.6.0.tar.gz"
|
||||
FILENAME "azure-storage-cpp/v2.6.0.tar.gz"
|
||||
SHA512 383fc709b04b7a116b553575f27a95b95a66105fe9b96d412fc4f1938e51288f81e49a9578c02993d0bc2a4771265694117b82fd5beaeaf4c32f81eeb8f9be6a
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/cmake.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}/Microsoft.WindowsAzure.Storage
|
||||
OPTIONS
|
||||
-DBUILD_TESTS=OFF
|
||||
-DBUILD_SAMPLES=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/LICENSE.txt
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/share/azure-storage-cpp RENAME copyright)
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
@ -1,3 +1,4 @@
|
||||
Source: boost
|
||||
Version: 1.62-6
|
||||
Version: 1.62-9
|
||||
Description: Peer-reviewed portable C++ source libraries
|
||||
Build-Depends: zlib
|
||||
|
@ -31,12 +31,15 @@ endif()
|
||||
message(STATUS "Bootstrapping done")
|
||||
|
||||
set(B2_OPTIONS
|
||||
-sZLIB_BINARY=zlib
|
||||
-sZLIB_INCLUDE="${CURRENT_INSTALLED_DIR}\\include"
|
||||
-sZLIB_LIBPATH="${CURRENT_INSTALLED_DIR}\\lib"
|
||||
-sNO_BZIP2=1
|
||||
-j$ENV{NUMBER_OF_PROCESSORS}
|
||||
--debug-configuration
|
||||
--hash
|
||||
|
||||
--without-python
|
||||
--layout=system
|
||||
toolset=msvc
|
||||
threading=multi
|
||||
)
|
||||
@ -56,11 +59,20 @@ endif()
|
||||
if(TRIPLET_SYSTEM_ARCH MATCHES "x64")
|
||||
list(APPEND B2_OPTIONS address-model=64)
|
||||
endif()
|
||||
if(TRIPLET_SYSTEM_NAME MATCHES "WindowsStore")
|
||||
if(VCPKG_CMAKE_SYSTEM_NAME MATCHES "WindowsStore")
|
||||
list(APPEND B2_OPTIONS windows-api=store)
|
||||
set(ENV{BOOST_BUILD_PATH} ${CMAKE_CURRENT_LIST_DIR})
|
||||
endif()
|
||||
|
||||
# Add build type specific options
|
||||
set(B2_OPTIONS_DBG
|
||||
${B2_OPTIONS}
|
||||
-sZLIB_LIBPATH="${CURRENT_INSTALLED_DIR}\\debug\\lib"
|
||||
)
|
||||
set(B2_OPTIONS_REL
|
||||
${B2_OPTIONS}
|
||||
-sZLIB_LIBPATH="${CURRENT_INSTALLED_DIR}\\lib"
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg)
|
||||
|
||||
@ -70,7 +82,7 @@ vcpkg_execute_required_process_repeat(
|
||||
COMMAND "${SOURCE_PATH}/b2.exe"
|
||||
--stagedir=${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/stage
|
||||
--build-dir=${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel
|
||||
${B2_OPTIONS}
|
||||
${B2_OPTIONS_REL}
|
||||
variant=release
|
||||
debug-symbols=on
|
||||
WORKING_DIRECTORY ${SOURCE_PATH}
|
||||
@ -83,7 +95,7 @@ vcpkg_execute_required_process_repeat(
|
||||
COMMAND "${SOURCE_PATH}/b2.exe"
|
||||
--stagedir=${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/stage
|
||||
--build-dir=${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg
|
||||
${B2_OPTIONS}
|
||||
${B2_OPTIONS_DBG}
|
||||
variant=debug
|
||||
WORKING_DIRECTORY ${SOURCE_PATH}
|
||||
LOGNAME build-${TARGET_TRIPLET}-dbg
|
||||
@ -101,16 +113,19 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
"\n#define BOOST_ALL_DYN_LINK\n"
|
||||
)
|
||||
endif()
|
||||
file(APPEND ${CURRENT_PACKAGES_DIR}/include/boost/config/user.hpp "\n#define BOOST_AUTO_LINK_NOMANGLE\n")
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/boost RENAME copyright)
|
||||
message(STATUS "Packaging headers done")
|
||||
|
||||
function(boost_remove_lib_prefix_from_lib_files LIBS)
|
||||
# This function makes the static build lib names match the dynamic build lib names which FindBoost.cmake is looking for by default.
|
||||
# It also renames a couple of "libboost" lib files in the dynamic build (for example libboost_exception-vc140-mt-1_62.lib).
|
||||
function(boost_rename_libs LIBS)
|
||||
foreach(LIB ${${LIBS}})
|
||||
get_filename_component(OLD_FILENAME ${LIB} NAME)
|
||||
get_filename_component(DIRECTORY_OF_LIB_FILE ${LIB} DIRECTORY)
|
||||
string(REPLACE "libboost_" "boost_" NEW_FILENAME ${OLD_FILENAME})
|
||||
string(REPLACE "-s-" "-" NEW_FILENAME ${NEW_FILENAME}) # For Release libs
|
||||
string(REPLACE "-sgd-" "-gd-" NEW_FILENAME ${NEW_FILENAME}) # For Debug libs
|
||||
if (EXISTS ${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME})
|
||||
file(REMOVE ${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME})
|
||||
else()
|
||||
@ -129,7 +144,7 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
FILES_MATCHING PATTERN "*.dll")
|
||||
endif()
|
||||
file(GLOB RELEASE_LIBS ${CURRENT_PACKAGES_DIR}/lib/libboost*.lib)
|
||||
boost_remove_lib_prefix_from_lib_files(RELEASE_LIBS)
|
||||
boost_rename_libs(RELEASE_LIBS)
|
||||
message(STATUS "Packaging ${TARGET_TRIPLET}-rel done")
|
||||
|
||||
message(STATUS "Packaging ${TARGET_TRIPLET}-dbg")
|
||||
@ -142,7 +157,7 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
FILES_MATCHING PATTERN "*.dll")
|
||||
endif()
|
||||
file(GLOB DEBUG_LIBS ${CURRENT_PACKAGES_DIR}/debug/lib/libboost*.lib)
|
||||
boost_remove_lib_prefix_from_lib_files(DEBUG_LIBS)
|
||||
boost_rename_libs(DEBUG_LIBS)
|
||||
message(STATUS "Packaging ${TARGET_TRIPLET}-dbg done")
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
12
ports/charls/0001_cmake.patch
Normal file
12
ports/charls/0001_cmake.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 1aa40a8..1051997 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -33,6 +33,7 @@ option (BUILD_TESTING "Build tests" ON)
|
||||
if (WIN32)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_definitions(-D CHARLS_DLL)
|
||||
+ set_source_files_properties(src/interface.cpp PROPERTIES COMPILE_FLAGS -DCHARLS_DLL_BUILD)
|
||||
else()
|
||||
add_definitions(-D CHARLS_STATIC)
|
||||
endif()
|
3
ports/charls/CONTROL
Normal file
3
ports/charls/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: charls
|
||||
Version: 2.0.0
|
||||
Description: CharLS, a C++ JPEG-LS library implementation.
|
27
ports/charls/portfile.cmake
Normal file
27
ports/charls/portfile.cmake
Normal file
@ -0,0 +1,27 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/charls-2.0.0)
|
||||
vcpkg_download_distfile(ARCHIVE_FILE
|
||||
URLS "https://github.com/team-charls/charls/archive/2.0.0.tar.gz"
|
||||
FILENAME "charls-2.0.0.tar.gz"
|
||||
SHA512 0a2862fad6d65b941c81f5f838db1fdc6a4625887281ddbf27e21be9084f607d27c8a27d246d6252e08358b2ed4aa0c2b7407048ca559fb40e94313ca72487dd
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/0001_cmake.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DBUILD_TESTING=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(INSTALL ${SOURCE_PATH}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/charls RENAME copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
13
ports/curl/0001_cmake.patch
Normal file
13
ports/curl/0001_cmake.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/CMake/FindLibSSH2.cmake b/CMake/FindLibSSH2.cmake
|
||||
index 12a7c61..9839c67 100644
|
||||
--- a/CMake/FindLibSSH2.cmake
|
||||
+++ b/CMake/FindLibSSH2.cmake
|
||||
@@ -12,7 +12,7 @@ endif (LIBSSH2_INCLUDE_DIR AND LIBSSH2_LIBRARY)
|
||||
FIND_PATH(LIBSSH2_INCLUDE_DIR libssh2.h
|
||||
)
|
||||
|
||||
-FIND_LIBRARY(LIBSSH2_LIBRARY NAMES ssh2
|
||||
+FIND_LIBRARY(LIBSSH2_LIBRARY NAMES ssh2 libssh2
|
||||
)
|
||||
|
||||
if(LIBSSH2_INCLUDE_DIR)
|
@ -1,4 +1,4 @@
|
||||
Source: curl
|
||||
Version: 7.51.0-1
|
||||
Build-Depends: zlib, openssl
|
||||
Version: 7.51.0-2
|
||||
Build-Depends: zlib, openssl, libssh2
|
||||
Description: A library for transferring data with URLs
|
||||
|
@ -7,6 +7,12 @@ vcpkg_download_distfile(ARCHIVE_FILE
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/0001_cmake.patch
|
||||
)
|
||||
|
||||
if (VCPKG_CRT_LINKAGE STREQUAL dynamic)
|
||||
SET(CURL_STATICLIB OFF)
|
||||
else()
|
||||
|
4
ports/dimcli/CONTROL
Normal file
4
ports/dimcli/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: dimcli
|
||||
Version: 1.0.3
|
||||
Description: C++ command line parser toolkit
|
||||
|
37
ports/dimcli/portfile.cmake
Normal file
37
ports/dimcli/portfile.cmake
Normal file
@ -0,0 +1,37 @@
|
||||
# Common Ambient Variables:
|
||||
# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
|
||||
# TARGET_TRIPLET is the current triplet (x86-windows, etc)
|
||||
# PORT is the current port name (zlib, etc)
|
||||
# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
|
||||
# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
|
||||
#
|
||||
|
||||
set(ver 1.0.3)
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/dimcli-${ver})
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/gknowles/dimcli/archive/v${ver}.zip"
|
||||
FILENAME "dimcli-${ver}.zip"
|
||||
SHA512 5168aff22223cb85421fabd4ce82f3ec0bcab6551704484bc5b05be02ead23bd3d4a629c558a15f214e9d999eccc9c129649d066fdacfda3c839a40b48f8ec17
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
set(staticCrt OFF)
|
||||
if(VCPKG_CRT_LINKAGE STREQUAL static)
|
||||
set(staticCrt ON)
|
||||
endif()
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS -DLINK_STATIC_RUNTIME:BOOL=${staticCrt}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
# Remove includes from ${CMAKE_INSTALL_PREFIX}/debug
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/share/dimcli"
|
||||
RENAME copyright)
|
||||
|
@ -1,8 +1,9 @@
|
||||
set(FASTLZ_HASH f1217348a868bdb9ee0730244475aee05ab329c5)
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/FastLZ-master)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/FastLZ-${FASTLZ_HASH})
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/ariya/FastLZ/archive/f1217348a868bdb9ee0730244475aee05ab329c5.zip"
|
||||
FILENAME "fastlz.zip"
|
||||
URLS "https://github.com/ariya/FastLZ/archive/${FASTLZ_HASH}.zip"
|
||||
FILENAME "fastlz-${FASTLZ_HASH}.zip"
|
||||
SHA512 edfefbf4151e7ea6451a6fbb6d464a2a0f48ab50622f936634ec3ea4542ad3e1f075892a422e0fc5a23f2092be4ec890e6f91c4622bcd0d195fed84d4044d5df
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
@ -1,4 +1,5 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/freeglut-3.0.0)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://downloads.sourceforge.net/project/freeglut/freeglut/3.0.0/freeglut-3.0.0.tar.gz"
|
||||
FILENAME "freeglut-3.0.0.tar.gz"
|
||||
@ -15,7 +16,7 @@ else()
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/freeglut-3.0.0
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DFREEGLUT_BUILD_STATIC_LIBS=${FREEGLUT_STATIC}
|
||||
-DFREEGLUT_BUILD_SHARED_LIBS=${FREEGLUT_DYNAMIC}
|
||||
@ -28,7 +29,7 @@ vcpkg_install_cmake()
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/freeglut-3.0.0/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/freeglut)
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/freeglut)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/freeglut/COPYING ${CURRENT_PACKAGES_DIR}/share/freeglut/copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
@ -0,0 +1,70 @@
|
||||
From 823171a129401d226ac4821fb997ce585045170c Mon Sep 17 00:00:00 2001
|
||||
From: Manuel Massing <m.massing@warped-space.de>
|
||||
Date: Wed, 23 Nov 2016 23:50:12 +0100
|
||||
Subject: [PATCH] Add support for MSVC1900 (backported from GDAL2)
|
||||
|
||||
---
|
||||
nmake.opt | 6 ++++++
|
||||
port/cpl_config.h.vc | 8 +++++---
|
||||
2 files changed, 11 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/nmake.opt b/nmake.opt
|
||||
index 8900135..4d1c4fa 100644
|
||||
--- a/nmake.opt
|
||||
+++ b/nmake.opt
|
||||
@@ -31,6 +31,7 @@
|
||||
# Check version of Visual C++ compiler:
|
||||
# nmake -f makefile.vc MSVC_VER=xxxx
|
||||
# where xxxx is one of following:
|
||||
+# 1900 = 14.0(2015)
|
||||
# 1800 = 12.0(2013)
|
||||
# 1700 = 11.0(2012)
|
||||
# 1600 = 10.0(2010)
|
||||
@@ -627,8 +628,13 @@ GDALLIB = $(GDAL_ROOT)/gdal.lib
|
||||
!ENDIF
|
||||
|
||||
!IFDEF ODBC_SUPPORTED
|
||||
+!IF $(MSVC_VER) >= 1900
|
||||
+# legacy_stdio_definitions.lib : https://connect.microsoft.com/VisualStudio/feedback/details/1134693/vs-2015-ctp-5-c-vsnwprintf-s-and-other-functions-are-not-exported-in-appcrt140-dll-breaking-linkage-of-static-libraries
|
||||
+ODBCLIB = legacy_stdio_definitions.lib odbc32.lib odbccp32.lib user32.lib
|
||||
+!ELSE
|
||||
ODBCLIB = odbc32.lib odbccp32.lib user32.lib
|
||||
!ENDIF
|
||||
+!ENDIF
|
||||
|
||||
!IF DEFINED(MRSID_DIR) || DEFINED(MRSID_RASTER_DIR) || DEFINED(MRSID_LIDAR_DIR)
|
||||
!IF "$(MRSID_PLUGIN)" != "YES"
|
||||
diff --git a/port/cpl_config.h.vc b/port/cpl_config.h.vc
|
||||
index bfff8f6..fe7b82a 100644
|
||||
--- a/port/cpl_config.h.vc
|
||||
+++ b/port/cpl_config.h.vc
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
-/* We define this here in general so that a VC++ build will publically
|
||||
+/* We define this here in general so that a VC++ build will publicly
|
||||
declare STDCALL interfaces even if an application is built against it
|
||||
using MinGW */
|
||||
|
||||
@@ -17,7 +17,9 @@
|
||||
#if defined(_MSC_VER) && (_MSC_VER < 1500)
|
||||
# define vsnprintf _vsnprintf
|
||||
#endif
|
||||
-#define snprintf _snprintf
|
||||
+#if defined(_MSC_VER) && (_MSC_VER < 1900)
|
||||
+# define snprintf _snprintf
|
||||
+#endif
|
||||
|
||||
#define HAVE_GETCWD 1
|
||||
/* gmt_notunix.h from GMT project also redefines getcwd. See #3138 */
|
||||
@@ -86,7 +88,7 @@
|
||||
/* Set the native cpu bit order */
|
||||
#define HOST_FILLORDER FILLORDER_LSB2MSB
|
||||
|
||||
-/* Define as 0 or 1 according to the floating point format suported by the
|
||||
+/* Define as 0 or 1 according to the floating point format supported by the
|
||||
machine */
|
||||
#define HAVE_IEEEFP 1
|
||||
|
||||
--
|
||||
2.10.1.windows.1
|
||||
|
@ -0,0 +1,50 @@
|
||||
From b25c3dc49ca1bcf9a789cf64c9fa8694e35127f0 Mon Sep 17 00:00:00 2001
|
||||
From: Manuel Massing <m.massing@warped-space.de>
|
||||
Date: Sun, 27 Nov 2016 09:57:04 +0100
|
||||
Subject: [PATCH 2/2] Add variable CXX_CRT_FLAGS to allow for selection of C
|
||||
runtime linkage in nmake build.
|
||||
|
||||
---
|
||||
nmake.opt | 18 ++++++++++++++----
|
||||
1 file changed, 14 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/nmake.opt b/nmake.opt
|
||||
index 4d1c4fa..47c2df8 100644
|
||||
--- a/nmake.opt
|
||||
+++ b/nmake.opt
|
||||
@@ -125,18 +125,28 @@ CXX_PDB_FLAGS=/Zi /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb
|
||||
CXX_PDB_FLAGS=
|
||||
!ENDIF
|
||||
|
||||
+# Flags to choose CRT variant to link against (e.g. static: /MT, /MTd, dynamic: /MD, /MDd)
|
||||
+# Ensure MRSID_CONFIG in mrsid/nmake.opt is set appropriately as well
|
||||
+!IFNDEF CXX_CRT_FLAGS
|
||||
+!IFNDEF DEBUG
|
||||
+CXX_CRT_FLAGS=/MD
|
||||
+!ELSE
|
||||
+CXX_CRT_FLAGS=/MDd
|
||||
+!ENDIF
|
||||
+!ENDIF
|
||||
+
|
||||
!IFNDEF OPTFLAGS
|
||||
!IF $(MSVC_VER) >= 1400
|
||||
!IFNDEF DEBUG
|
||||
-OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MD /EHsc /Ox /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG
|
||||
+OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo $(CXX_CRT_FLAGS) /EHsc /Ox /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG
|
||||
!ELSE
|
||||
-OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MD /EHsc /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DDEBUG
|
||||
+OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo $(CXX_CRT_FLAGS) /EHsc /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DDEBUG
|
||||
!ENDIF
|
||||
!ELSE
|
||||
!IFNDEF DEBUG
|
||||
-OPTFLAGS= $(CXX_PDB_FLAGS) /nologo /MD /EHsc /GR /Ox /DNDEBUG
|
||||
+OPTFLAGS= $(CXX_PDB_FLAGS) /nologo $(CXX_CRT_FLAGS) /EHsc /GR /Ox /DNDEBUG
|
||||
!ELSE
|
||||
-OPTFLAGS= $(CXX_PDB_FLAGS) /nologo /MD /EHsc /GR /DDEBUG
|
||||
+OPTFLAGS= $(CXX_PDB_FLAGS) /nologo $(CXX_CRT_FLAGS) /EHsc /GR /DDEBUG
|
||||
!ENDIF
|
||||
!ENDIF #MSVC_VER
|
||||
!ENDIF # OPTFLAGS
|
||||
--
|
||||
2.10.1.windows.1
|
||||
|
@ -0,0 +1,26 @@
|
||||
From 9da0cb6eed442ebf3eea232cd85e26c155c963ef Mon Sep 17 00:00:00 2001
|
||||
From: Manuel Massing <m.massing@warped-space.de>
|
||||
Date: Tue, 29 Nov 2016 12:43:58 +0100
|
||||
Subject: [PATCH 3/4] - Ensures inclusion of PDB in release dll if so requested
|
||||
|
||||
---
|
||||
gdal/nmake.opt | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/nmake.opt b/nmake.opt
|
||||
index 47c2df8..4844d22 100644
|
||||
--- a/nmake.opt
|
||||
+++ b/nmake.opt
|
||||
@@ -174,6 +174,9 @@ SOFTWARNFLAGS= /wd4244 /wd4702 /wd4701 /wd4013 /wd4706 /wd4057 /wd4210 /wd4305
|
||||
# Linker debug options
|
||||
!IFDEF DEBUG
|
||||
LDEBUG= /debug
|
||||
+!ELSEIFDEF WITH_PDB
|
||||
+# Ensures that PDB is included in release DLL if so requested
|
||||
+LDEBUG= /debug /opt:ref /opt:icf
|
||||
!ENDIF
|
||||
|
||||
# Uncomment the following if you are building for 64-bit windows
|
||||
--
|
||||
2.10.1.windows.1
|
||||
|
4
ports/gdal/CONTROL
Normal file
4
ports/gdal/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: gdal
|
||||
Version: 1.11.3
|
||||
Description: The Geographic Data Abstraction Library for reading and writing geospatial raster and vector data.
|
||||
Build-Depends: proj
|
133
ports/gdal/portfile.cmake
Normal file
133
ports/gdal/portfile.cmake
Normal file
@ -0,0 +1,133 @@
|
||||
if (TRIPLET_SYSTEM_ARCH MATCHES "arm")
|
||||
message(FATAL_ERROR " ARM is currently not supported.")
|
||||
endif()
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://download.osgeo.org/gdal/1.11.3/gdal1113.zip"
|
||||
FILENAME "gdal1113.zip"
|
||||
SHA512 42feb98a54019d3b6ac54f598f299a57e117db500c662d39faa9d5f5090f03c1b8d7680242e1abd8035738edc4fc3197ae118a0ce50733691a76a5cf377bcd46
|
||||
)
|
||||
|
||||
# Extract source into archictecture specific directory, because GDALs' nmake based build currently does not
|
||||
# support out of source builds.
|
||||
set(SOURCE_PATH_DEBUG ${CURRENT_BUILDTREES_DIR}/src-${TARGET_TRIPLET}-debug/gdal-1.11.3)
|
||||
set(SOURCE_PATH_RELEASE ${CURRENT_BUILDTREES_DIR}/src-${TARGET_TRIPLET}-release/gdal-1.11.3)
|
||||
|
||||
foreach(BUILD_TYPE debug release)
|
||||
vcpkg_extract_source_archive(${ARCHIVE} ${CURRENT_BUILDTREES_DIR}/src-${TARGET_TRIPLET}-${BUILD_TYPE})
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src-${TARGET_TRIPLET}-${BUILD_TYPE}/gdal-1.11.3
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/0001-Add-support-for-MSVC1900-backported-from-GDAL2.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/0002-Add-variable-CXX_CRT_FLAGS-to-allow-for-selection-of.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/0003-Ensures-inclusion-of-PDB-in-release-dll-if-so-reques.patch
|
||||
)
|
||||
endforeach()
|
||||
|
||||
find_program(NMAKE nmake REQUIRED)
|
||||
|
||||
file(TO_NATIVE_PATH "${CURRENT_PACKAGES_DIR}" NATIVE_PACKAGES_DIR)
|
||||
file(TO_NATIVE_PATH "${CURRENT_PACKAGES_DIR}/share/gdal" NATIVE_DATA_DIR)
|
||||
file(TO_NATIVE_PATH "${CURRENT_PACKAGES_DIR}/share/gdal/html" NATIVE_HTML_DIR)
|
||||
|
||||
file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}/include" PROJ_INCLUDE_DIR)
|
||||
file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}/lib/proj.lib" PROJ_LIBRARY_REL)
|
||||
file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}/debug/lib/projd.lib" PROJ_LIBRARY_DBG)
|
||||
|
||||
set(NMAKE_OPTIONS
|
||||
GDAL_HOME=${NATIVE_PACKAGES_DIR}
|
||||
DATADIR=${NATIVE_DATA_DIR}
|
||||
HTMLDIR=${NATIVE_HTML_DIR}
|
||||
PROJ_INCLUDE=-I${PROJ_INCLUDE_DIR}
|
||||
MSVC_VER=1900
|
||||
)
|
||||
|
||||
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||
list(APPEND NMAKE_OPTIONS WIN64=YES)
|
||||
endif()
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
list(APPEND NMAKE_OPTIONS PROJ_FLAGS=-DPROJ_STATIC)
|
||||
else()
|
||||
# Enables PDBs for release and debug builds
|
||||
list(APPEND NMAKE_OPTIONS WITH_PDB=1)
|
||||
endif()
|
||||
|
||||
if (VCPKG_CRT_LINKAGE STREQUAL static)
|
||||
set(LINKAGE_FLAGS "/MT")
|
||||
else()
|
||||
set(LINKAGE_FLAGS "/MD")
|
||||
endif()
|
||||
|
||||
set(NMAKE_OPTIONS_REL
|
||||
"${NMAKE_OPTIONS}"
|
||||
CXX_CRT_FLAGS=${LINKAGE_FLAGS}
|
||||
PROJ_LIBRARY=${PROJ_LIBRARY_REL}
|
||||
)
|
||||
|
||||
set(NMAKE_OPTIONS_DBG
|
||||
"${NMAKE_OPTIONS}"
|
||||
CXX_CRT_FLAGS="${LINKAGE_FLAGS}d"
|
||||
PROJ_LIBRARY=${PROJ_LIBRARY_DBG}
|
||||
DEBUG=1
|
||||
)
|
||||
################
|
||||
# Release build
|
||||
################
|
||||
message(STATUS "Building ${TARGET_TRIPLET}-rel")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${NMAKE} -f makefile.vc
|
||||
"${NMAKE_OPTIONS_REL}"
|
||||
WORKING_DIRECTORY ${SOURCE_PATH_RELEASE}
|
||||
LOGNAME nmake-build-${TARGET_TRIPLET}-release
|
||||
)
|
||||
message(STATUS "Building ${TARGET_TRIPLET}-rel done")
|
||||
|
||||
################
|
||||
# Debug build
|
||||
################
|
||||
message(STATUS "Building ${TARGET_TRIPLET}-dbg")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${NMAKE} /G -f makefile.vc
|
||||
"${NMAKE_OPTIONS_DBG}"
|
||||
WORKING_DIRECTORY ${SOURCE_PATH_DEBUG}
|
||||
LOGNAME nmake-build-${TARGET_TRIPLET}-debug
|
||||
)
|
||||
message(STATUS "Building ${TARGET_TRIPLET}-dbg done")
|
||||
|
||||
message(STATUS "Packaging ${TARGET_TRIPLET}")
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/gdal/html)
|
||||
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${NMAKE} -f makefile.vc
|
||||
"${NMAKE_OPTIONS_REL}"
|
||||
"install"
|
||||
"devinstall"
|
||||
WORKING_DIRECTORY ${SOURCE_PATH_RELEASE}
|
||||
LOGNAME nmake-install-${TARGET_TRIPLET}
|
||||
)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/gdal_i.lib)
|
||||
file(COPY ${SOURCE_PATH_DEBUG}/gdal.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
||||
file(COPY ${SOURCE_PATH_RELEASE}/gdal.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/gdal.lib ${CURRENT_PACKAGES_DIR}/debug/lib/gdald.lib)
|
||||
else()
|
||||
file(GLOB EXE_FILES ${CURRENT_PACKAGES_DIR}/bin/*.exe)
|
||||
file(REMOVE ${EXE_FILES} ${CURRENT_PACKAGES_DIR}/lib/gdal.lib)
|
||||
file(COPY ${SOURCE_PATH_DEBUG}/gdal111.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(COPY ${SOURCE_PATH_DEBUG}/gdal_i.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/gdal_i.lib ${CURRENT_PACKAGES_DIR}/lib/gdal.lib)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/gdal_i.lib ${CURRENT_PACKAGES_DIR}/debug/lib/gdald.lib)
|
||||
endif()
|
||||
|
||||
# Copy over PDBs
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
# Handle copyright
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/gdal/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/gdal/copyright)
|
||||
|
||||
message(STATUS "Packaging ${TARGET_TRIPLET} done")
|
@ -7,6 +7,7 @@
|
||||
#
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/3.5)
|
||||
#downloading 3.5 from their SVN repo and not the release tarball
|
||||
#because the 3.5 release did not build on windows, and fixes were backported
|
||||
#without generating a new release tarball (I don't think very many GIS people use win)
|
||||
@ -17,12 +18,12 @@ vcpkg_download_distfile(ARCHIVE
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
#we need to do this because GOES deploy process is totally broken for cmake
|
||||
#we need to do this because GEOS deploy process is totally broken for cmake
|
||||
#file(DOWNLOAD http://svn.osgeo.org/geos/tags/3.5.0/cmake/modules/GenerateSourceGroups.cmake
|
||||
# ${CURRENT_BUILDTREES_DIR}/src/geos-3.5.0/cmake/modules/GenerateSourceGroups.cmake)
|
||||
file(WRITE ${CURRENT_BUILDTREES_DIR}/src/3.5/geos_svn_revision.h "#define GEOS_SVN_REVISION 4261")
|
||||
# ${SOURCE_PATH}/cmake/modules/GenerateSourceGroups.cmake)
|
||||
file(WRITE ${SOURCE_PATH}/geos_svn_revision.h "#define GEOS_SVN_REVISION 4261")
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/3.5
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS -DGEOS_ENABLE_TESTS=False
|
||||
-DBUILD_TESTING=False
|
||||
)
|
||||
@ -31,7 +32,7 @@ vcpkg_build_cmake()
|
||||
vcpkg_install_cmake()
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
# Handle copyright
|
||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/3.5/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/geos)
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/geos)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/geos/COPYING ${CURRENT_PACKAGES_DIR}/share/geos/copyright)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/libgeos.lib ${CURRENT_PACKAGES_DIR}/debug/lib/libgeos.lib)
|
||||
|
@ -1,51 +0,0 @@
|
||||
From 5af642bdfe023a7c857d1d26593af586516bf696 Mon Sep 17 00:00:00 2001
|
||||
From: Sergey Sharybin <sergey.vfx@gmail.com>
|
||||
Date: Thu, 31 Dec 2015 17:16:26 +0500
|
||||
Subject: [PATCH] Fix some compilation warnings with MSVC 2015
|
||||
|
||||
MSVC 2015 already defines vsnprintf() and va_copy().
|
||||
---
|
||||
src/windows_port.cc | 2 ++
|
||||
src/windows_port.h | 2 ++
|
||||
2 files changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/windows_port.cc b/src/windows_port.cc
|
||||
index 1f40458..b5b7194 100644
|
||||
--- a/src/windows_port.cc
|
||||
+++ b/src/windows_port.cc
|
||||
@@ -44,6 +44,7 @@
|
||||
|
||||
// These call the windows _vsnprintf, but always NUL-terminate.
|
||||
#if !defined(__MINGW32__) && !defined(__MINGW64__) /* mingw already defines */
|
||||
+#if !(defined(_MSC_VER) && _MSC_VER >= 1900) /* msvc 2015 already defines */
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# pragma warning(push)
|
||||
@@ -68,4 +69,5 @@ int snprintf(char *str, size_t size, const char *format, ...) {
|
||||
return r;
|
||||
}
|
||||
|
||||
+#endif /* if !(defined(_MSC_VER) && _MSC_VER >= 1900) */
|
||||
#endif /* #if !defined(__MINGW32__) && !defined(__MINGW64__) */
|
||||
diff --git a/src/windows_port.h b/src/windows_port.h
|
||||
index c8ff24f..554b9c9 100644
|
||||
--- a/src/windows_port.h
|
||||
+++ b/src/windows_port.h
|
||||
@@ -63,12 +63,14 @@
|
||||
* name vsnprintf, since windows defines that (but not snprintf (!)).
|
||||
*/
|
||||
#if !defined(__MINGW32__) && !defined(__MINGW64__) /* mingw already defines */
|
||||
+#if !(defined(_MSC_VER) && _MSC_VER >= 1900) /* msvc 2015 already defines */
|
||||
extern GFLAGS_DLL_DECL int snprintf(char *str, size_t size,
|
||||
const char *format, ...);
|
||||
extern int GFLAGS_DLL_DECL safe_vsnprintf(char *str, size_t size,
|
||||
const char *format, va_list ap);
|
||||
#define vsnprintf(str, size, format, ap) safe_vsnprintf(str, size, format, ap)
|
||||
#define va_copy(dst, src) (dst) = (src)
|
||||
+#endif
|
||||
#endif /* #if !defined(__MINGW32__) && !defined(__MINGW64__) */
|
||||
|
||||
#ifdef _MSC_VER
|
||||
--
|
||||
2.10.0.windows.1
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: gflags
|
||||
Version: 2.1.2
|
||||
Version: 2.2.0-2
|
||||
Description: A C++ library that implements commandline flags processing
|
||||
|
@ -1,38 +1,21 @@
|
||||
include(vcpkg_common_functions)
|
||||
find_program(GIT git)
|
||||
|
||||
set(GIT_URL "https://github.com/gflags/gflags.git")
|
||||
set(GIT_TAG "v2.1.2")
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/gflags/gflags/archive/v2.2.0.zip"
|
||||
FILENAME "gflags-v2.2.0.zip"
|
||||
SHA512 638d094cdcc759a35ebd0e57900216deec6113242d2dcc964beff7b88cf56e3dbab3dce6e10a055bfd94cb5daebb8632382219a5ef40a689e14c76b263d3eca5)
|
||||
|
||||
if(NOT EXISTS "${DOWNLOADS}/gflags.git")
|
||||
message(STATUS "Cloning")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${GIT} clone --bare ${GIT_URL} ${DOWNLOADS}/gflags.git
|
||||
WORKING_DIRECTORY ${DOWNLOADS}
|
||||
LOGNAME clone
|
||||
)
|
||||
endif()
|
||||
message(STATUS "Cloning done")
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
if(NOT EXISTS "${CURRENT_BUILDTREES_DIR}/src/.git")
|
||||
message(STATUS "Adding worktree and patching")
|
||||
file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR})
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${GIT} worktree add -f --detach ${CURRENT_BUILDTREES_DIR}/src ${GIT_TAG}
|
||||
WORKING_DIRECTORY ${DOWNLOADS}/gflags.git
|
||||
LOGNAME worktree
|
||||
)
|
||||
message(STATUS "Patching")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${GIT} apply ${CMAKE_CURRENT_LIST_DIR}/0001-Fix-some-compilation-warnings-with-MSVC-2015.patch --ignore-whitespace --whitespace=fix
|
||||
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/src
|
||||
LOGNAME patch
|
||||
)
|
||||
endif()
|
||||
message(STATUS "Adding worktree and patching done")
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/gflags-2.2.0)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DGFLAGS_REGISTER_BUILD_DIR:BOOL=OFF
|
||||
-DGFLAGS_REGISTER_INSTALL_PREFIX:BOOL=OFF
|
||||
-DBUILD_gflags_nothreads_LIB:BOOL=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
@ -40,35 +23,36 @@ vcpkg_install_cmake()
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/gflags.dll ${CURRENT_PACKAGES_DIR}/bin/gflags.dll)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/gflags_nothreads.dll ${CURRENT_PACKAGES_DIR}/bin/gflags_nothreads.dll)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/gflags.dll ${CURRENT_PACKAGES_DIR}/debug/bin/gflags.dll)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/gflags_nothreads.dll ${CURRENT_PACKAGES_DIR}/debug/bin/gflags_nothreads.dll)
|
||||
endif()
|
||||
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/cmake ${CURRENT_PACKAGES_DIR}/share/gflags)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/debug/cmake/gflags-export-debug.cmake GFLAGS_DEBUG_MODULE)
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/debug/cmake/gflags-targets-debug.cmake GFLAGS_DEBUG_MODULE)
|
||||
string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" GFLAGS_DEBUG_MODULE "${GFLAGS_DEBUG_MODULE}")
|
||||
string(REPLACE "/Lib/gflags.dll" "/bin/gflags.dll" GFLAGS_DEBUG_MODULE "${GFLAGS_DEBUG_MODULE}")
|
||||
string(REPLACE "/Lib/gflags_nothreads.dll" "/bin/gflags_nothreads.dll" GFLAGS_DEBUG_MODULE "${GFLAGS_DEBUG_MODULE}")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/gflags/gflags-export-debug.cmake "${GFLAGS_DEBUG_MODULE}")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/gflags/gflags-targets-debug.cmake "${GFLAGS_DEBUG_MODULE}")
|
||||
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/share/gflags/gflags-export-release.cmake GFLAGS_RELEASE_MODULE)
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/share/gflags/gflags-targets-release.cmake GFLAGS_RELEASE_MODULE)
|
||||
string(REPLACE "/Lib/gflags.dll" "/bin/gflags.dll" GFLAGS_RELEASE_MODULE "${GFLAGS_RELEASE_MODULE}")
|
||||
string(REPLACE "/Lib/gflags_nothreads.dll" "/bin/gflags_nothreads.dll" GFLAGS_RELEASE_MODULE "${GFLAGS_RELEASE_MODULE}")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/gflags/gflags-export-release.cmake "${GFLAGS_RELEASE_MODULE}")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/gflags/gflags-targets-release.cmake "${GFLAGS_RELEASE_MODULE}")
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/cmake)
|
||||
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/share/gflags/gflags-export.cmake GFLAGS_CONFIG_MODULE)
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/share/gflags/gflags-targets.cmake GFLAGS_CONFIG_MODULE)
|
||||
string(REPLACE "get_filename_component(_IMPORT_PREFIX \"\${_IMPORT_PREFIX}\" PATH)"
|
||||
"get_filename_component(_IMPORT_PREFIX \"\${_IMPORT_PREFIX}\" PATH)\nget_filename_component(_IMPORT_PREFIX \"\${_IMPORT_PREFIX}\" PATH)"
|
||||
GFLAGS_CONFIG_MODULE "${GFLAGS_CONFIG_MODULE}")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/gflags/gflags-export.cmake ${GFLAGS_CONFIG_MODULE})
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/gflags/gflags-targets.cmake "${GFLAGS_CONFIG_MODULE}")
|
||||
|
||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/COPYING.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/gflags RENAME copyright)
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/gflags RENAME copyright)
|
||||
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/Include ${CURRENT_PACKAGES_DIR}/include)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/Lib ${CURRENT_PACKAGES_DIR}/lib)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/Lib ${CURRENT_PACKAGES_DIR}/debug/lib)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
@ -7,14 +7,14 @@
|
||||
#
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glbinding-2.1.1)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/cginternals/glbinding/archive/v2.1.1.zip"
|
||||
FILENAME "glbinding-2.1.1.zip"
|
||||
SHA512 66b21853a4f4760b7b22cafd5211958769c513e83be999018fe79cf56a9271e0e28566caaa2286393f54ac2154d564a68d12159598d03c965adf6756f3753f11
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
vcpkg_configure_cmake(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glbinding-2.1.1)
|
||||
vcpkg_configure_cmake(SOURCE_PATH ${SOURCE_PATH})
|
||||
#vcpkg_build_cmake()
|
||||
vcpkg_install_cmake()
|
||||
|
||||
@ -54,7 +54,7 @@ file(REMOVE ${CURRENT_PACKAGES_DIR}/AUTHORS
|
||||
)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/glbinding-2.1.1/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/glbinding)
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/glbinding)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/glbinding/LICENSE ${CURRENT_PACKAGES_DIR}/share/glbinding/copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
@ -1,7 +1,3 @@
|
||||
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)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glew-2.0.0)
|
||||
vcpkg_download_distfile(ARCHIVE_FILE
|
||||
@ -19,45 +15,77 @@ ELSE()
|
||||
SET(BUILD_ARCH ${TRIPLET_SYSTEM_ARCH})
|
||||
ENDIF()
|
||||
|
||||
if(NOT EXISTS ${SOURCE_PATH}/build/vc12/glew_shared14.vcxproj)
|
||||
message(STATUS "Upgrading projects")
|
||||
file(READ ${SOURCE_PATH}/build/vc12/glew_shared.vcxproj PROJ)
|
||||
string(REPLACE
|
||||
"<PlatformToolset>v120</PlatformToolset>"
|
||||
"<PlatformToolset>v140</PlatformToolset>"
|
||||
PROJ ${PROJ})
|
||||
string(REPLACE
|
||||
"opengl32.lib%"
|
||||
"opengl32.lib\;%"
|
||||
PROJ ${PROJ})
|
||||
file(WRITE ${SOURCE_PATH}/build/vc12/glew_shared14.vcxproj ${PROJ})
|
||||
endif()
|
||||
# TODO: Maybe switch to glews' cmake build system in the future
|
||||
FOREACH(LINKAGE shared static)
|
||||
if(NOT EXISTS ${SOURCE_PATH}/build/vc12/glew_${LINKAGE}14.vcxproj)
|
||||
message(STATUS "Upgrading " ${LINKAGE} " project")
|
||||
file(READ ${SOURCE_PATH}/build/vc12/glew_${LINKAGE}.vcxproj PROJ)
|
||||
string(REPLACE
|
||||
"<PlatformToolset>v120</PlatformToolset>"
|
||||
"<PlatformToolset>v140</PlatformToolset>"
|
||||
PROJ ${PROJ})
|
||||
string(REPLACE
|
||||
"opengl32.lib%"
|
||||
"opengl32.lib\;%"
|
||||
PROJ ${PROJ})
|
||||
|
||||
if (LINKAGE STREQUAL "static")
|
||||
string(REPLACE
|
||||
"MultiThreadedDebugDLL"
|
||||
"MultiThreadedDebug"
|
||||
PROJ ${PROJ}
|
||||
)
|
||||
endif()
|
||||
file(WRITE ${SOURCE_PATH}/build/vc12/glew_${LINKAGE}14.vcxproj ${PROJ})
|
||||
endif()
|
||||
ENDFOREACH(LINKAGE)
|
||||
message(STATUS "Upgrading projects done")
|
||||
|
||||
vcpkg_build_msbuild(
|
||||
PROJECT_PATH ${SOURCE_PATH}/build/vc12/glew_shared14.vcxproj
|
||||
)
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
vcpkg_build_msbuild(
|
||||
PROJECT_PATH ${SOURCE_PATH}/build/vc12/glew_static14.vcxproj
|
||||
)
|
||||
else()
|
||||
vcpkg_build_msbuild(
|
||||
PROJECT_PATH ${SOURCE_PATH}/build/vc12/glew_shared14.vcxproj
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
message(STATUS "Installing")
|
||||
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/bin/Debug/${BUILD_ARCH}/glew32d.dll
|
||||
${SOURCE_PATH}/bin/Debug/${BUILD_ARCH}/glew32d.pdb
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin
|
||||
)
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/bin/Release/${BUILD_ARCH}/glew32.dll
|
||||
${SOURCE_PATH}/bin/Release/${BUILD_ARCH}/glew32.pdb
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/bin
|
||||
)
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/lib/Debug/${BUILD_ARCH}/glew32d.lib
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
||||
)
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/lib/Release/${BUILD_ARCH}/glew32.lib
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
||||
)
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/bin/Debug/${BUILD_ARCH}/glew32d.dll
|
||||
${SOURCE_PATH}/bin/Debug/${BUILD_ARCH}/glew32d.pdb
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin
|
||||
)
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/bin/Release/${BUILD_ARCH}/glew32.dll
|
||||
${SOURCE_PATH}/bin/Release/${BUILD_ARCH}/glew32.pdb
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/bin
|
||||
)
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/lib/Debug/${BUILD_ARCH}/glew32d.lib
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
||||
)
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/lib/Release/${BUILD_ARCH}/glew32.lib
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
||||
)
|
||||
else()
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/lib/Debug/${BUILD_ARCH}/glew32sd.lib
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
||||
RENAME glew32d.lib
|
||||
)
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/lib/Release/${BUILD_ARCH}/glew32s.lib
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
||||
RENAME glew32.lib
|
||||
)
|
||||
endif()
|
||||
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/include/GL
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
||||
|
3
ports/gli/CONTROL
Normal file
3
ports/gli/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: gli
|
||||
Version: 0.8.2
|
||||
Description: OpenGL Image (GLI) https://gli.g-truc.net
|
20
ports/gli/portfile.cmake
Normal file
20
ports/gli/portfile.cmake
Normal file
@ -0,0 +1,20 @@
|
||||
#header-only library
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/gli-0.8.2.0)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/g-truc/gli/archive/0.8.2.0.tar.gz"
|
||||
FILENAME "0.8.2.0.tar.gz"
|
||||
SHA512 c254a4e1497d0add985e4a882c552db99c512cc0e9cc72145d51a6e7deada817d624d9818099a47136a8a3ef1223a26a34e355e3c713166f0bb062e506059834
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
# Remove glm/CMakeLists.txt
|
||||
file(REMOVE ${SOURCE_PATH}/glm/CMakeLists.txt)
|
||||
|
||||
# Put the license file where vcpkg expects it
|
||||
file(COPY ${SOURCE_PATH}/external/glm/copying.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/gli/)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/gli/copying.txt ${CURRENT_PACKAGES_DIR}/share/gli/copyright)
|
||||
|
||||
# Copy the glm header files
|
||||
file(GLOB HEADER_FILES ${SOURCE_PATH}/gli/*)
|
||||
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/gli)
|
@ -15,7 +15,7 @@ vcpkg_download_distfile(ARCHIVE
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_configure_cmake(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/globjects-1.0.0)
|
||||
vcpkg_configure_cmake(SOURCE_PATH ${SOURCE_PATH})
|
||||
#vcpkg_build_cmake()
|
||||
vcpkg_install_cmake()
|
||||
|
||||
@ -55,7 +55,7 @@ file(REMOVE ${CURRENT_PACKAGES_DIR}/AUTHORS
|
||||
)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/globjects-1.0.0/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/globjects)
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/globjects)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/globjects/LICENSE ${CURRENT_PACKAGES_DIR}/share/globjects/copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: glslang
|
||||
Version: 1c573fbcfba6b3d631008b1babc838501ca925d3
|
||||
Version: 1c573fbcfba6b3d631008b1babc838501ca925d3-1
|
||||
Description: Khronos reference front-end for GLSL and ESSL, and sample SPIR-V generator
|
||||
|
@ -30,14 +30,9 @@ if(NOT EXISTS "${CURRENT_BUILDTREES_DIR}/src/.git")
|
||||
LOGNAME worktree
|
||||
)
|
||||
message(STATUS "Patching")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${GIT} apply ${CMAKE_CURRENT_LIST_DIR}/0001-Fix-export-symbol-for-Windows.patch --ignore-whitespace --whitespace=fix
|
||||
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/src
|
||||
LOGNAME patch
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
set(VCPKG_LIBRARY_LINKAGE "static")
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/src"
|
||||
@ -45,7 +40,12 @@ vcpkg_configure_cmake(
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(COPY "${CURRENT_BUILDTREES_DIR}/src/glslang/Public/ShaderLang.h" DESTINATION ${CURRENT_PACKAGES_DIR}/include/glslang)
|
||||
file(COPY "${CURRENT_BUILDTREES_DIR}/src/glslang/Public" DESTINATION ${CURRENT_PACKAGES_DIR}/include/glslang)
|
||||
file(COPY "${CURRENT_BUILDTREES_DIR}/src/glslang/Include" DESTINATION ${CURRENT_PACKAGES_DIR}/include/glslang)
|
||||
file(COPY "${CURRENT_BUILDTREES_DIR}/src/glslang/MachineIndependent/Versions.h" DESTINATION ${CURRENT_PACKAGES_DIR}/include/glslang/MachineIndependent)
|
||||
file(COPY "${CURRENT_BUILDTREES_DIR}/src/SPIRV/Logger.h" DESTINATION ${CURRENT_PACKAGES_DIR}/include/SPIRV)
|
||||
file(COPY "${CURRENT_BUILDTREES_DIR}/src/SPIRV/spirv.hpp" DESTINATION ${CURRENT_PACKAGES_DIR}/include/SPIRV)
|
||||
file(COPY "${CURRENT_BUILDTREES_DIR}/src/SPIRV/GlslangToSpv.h" DESTINATION ${CURRENT_PACKAGES_DIR}/include/SPIRV)
|
||||
file(COPY "${CURRENT_PACKAGES_DIR}/bin/glslangValidator.exe" DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
|
||||
file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/glslangValidator.exe")
|
||||
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/glslangValidator.exe")
|
||||
@ -56,12 +56,12 @@ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/spirv-remap.exe")
|
||||
file(GLOB BIN_DIR "${CURRENT_PACKAGES_DIR}/bin/*")
|
||||
list(LENGTH BIN_DIR BIN_DIR_SIZE)
|
||||
if(${BIN_DIR_SIZE} EQUAL 0)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
|
||||
endif()
|
||||
file(GLOB DEBUG_BIN_DIR "${CURRENT_PACKAGES_DIR}/debug/bin/*")
|
||||
list(LENGTH DEBUG_BIN_DIR DEBUG_BIN_DIR_SIZE)
|
||||
if(${DEBUG_BIN_DIR_SIZE} EQUAL 0)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||
endif()
|
||||
|
||||
# Handle copyright
|
||||
|
@ -1,40 +0,0 @@
|
||||
From be3c446b1dd798b835052188813ee4e7cf135a81 Mon Sep 17 00:00:00 2001
|
||||
From: Vincent Lejeune <vljn.ovi@gmail.com>
|
||||
Date: Wed, 12 Oct 2016 00:27:35 +0200
|
||||
Subject: [PATCH] Add an extra path input for Freetype.
|
||||
|
||||
---
|
||||
win32/config-msvc.mak | 3 +++
|
||||
win32/detectenv-msvc.mak | 2 +-
|
||||
2 files changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/win32/config-msvc.mak b/win32/config-msvc.mak
|
||||
index e0c6468..1ad0913 100644
|
||||
--- a/win32/config-msvc.mak
|
||||
+++ b/win32/config-msvc.mak
|
||||
@@ -124,6 +124,9 @@ HB_DEFINES = $(HB_DEFINES) /DHAVE_CAIRO=1
|
||||
|
||||
# Enable freetype if desired
|
||||
!if "$(FREETYPE)" == "1"
|
||||
+HB_CFLAGS = \
|
||||
+ $(HB_CFLAGS) \
|
||||
+ /I$(FREETYPE_DIR)
|
||||
HB_DEFINES = $(HB_DEFINES) /DHAVE_FREETYPE=1
|
||||
HB_SOURCES = $(HB_SOURCES) $(HB_FT_sources)
|
||||
HB_HEADERS = $(HB_HEADERS) $(HB_FT_headers)
|
||||
diff --git a/win32/detectenv-msvc.mak b/win32/detectenv-msvc.mak
|
||||
index 83d8786..ad67493 100644
|
||||
--- a/win32/detectenv-msvc.mak
|
||||
+++ b/win32/detectenv-msvc.mak
|
||||
@@ -129,7 +129,7 @@ LDFLAGS_ARCH = /machine:x86
|
||||
!if "$(VALID_CFGSET)" == "TRUE"
|
||||
CFLAGS = $(CFLAGS_ADD) /W3 /Zi /I.. /I..\src /I. /I$(PREFIX)\include
|
||||
|
||||
-LDFLAGS_BASE = $(LDFLAGS_ARCH) /libpath:$(PREFIX)\lib /DEBUG
|
||||
+LDFLAGS_BASE = $(LDFLAGS_ARCH) /libpath:$(PREFIX)\lib /libpath:$(VCPKG_LIB_DIR) /DEBUG
|
||||
|
||||
!if "$(CFG)" == "debug"
|
||||
LDFLAGS = $(LDFLAGS_BASE)
|
||||
--
|
||||
2.10.0.windows.1
|
||||
|
@ -1,28 +0,0 @@
|
||||
From 2be3a687a3079c3988d718293e4ee5d8fc9797b7 Mon Sep 17 00:00:00 2001
|
||||
From: vlj <vljn.ovi@gmail.com>
|
||||
Date: Sat, 8 Oct 2016 21:14:57 +0200
|
||||
Subject: [PATCH] Set d suffix for debug freetype lib.
|
||||
|
||||
---
|
||||
win32/config-msvc.mak | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/win32/config-msvc.mak b/win32/config-msvc.mak
|
||||
index 9cc6608..236aef7 100644
|
||||
--- a/win32/config-msvc.mak
|
||||
+++ b/win32/config-msvc.mak
|
||||
@@ -12,7 +12,11 @@ HB_GLIB_LIBS = glib-2.0.lib
|
||||
HB_GOBJECT_DEP_LIBS = gobject-2.0.lib $(HB_GLIB_LIBS)
|
||||
|
||||
# Freetype is needed for building FreeType support and hb-view
|
||||
+!if "$(CFG)" == "debug"
|
||||
+FREETYPE_LIB = freetyped.lib
|
||||
+!else
|
||||
FREETYPE_LIB = freetype.lib
|
||||
+!endif
|
||||
|
||||
# Cairo is needed for building hb-view
|
||||
CAIRO_LIB = cairo.lib
|
||||
--
|
||||
2.10.0.windows.1
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: harfbuzz
|
||||
Version: 1.3.2
|
||||
Version: 1.3.4
|
||||
Description: HarfBuzz OpenType text shaping engine
|
||||
Build-Depends: freetype
|
||||
|
@ -11,34 +11,28 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
set(VCPKG_LIBRARY_LINKAGE dynamic)
|
||||
endif()
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/harfbuzz-1.3.2)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/harfbuzz-1.3.4)
|
||||
find_program(NMAKE nmake)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.3.2.tar.bz2"
|
||||
FILENAME "harfbuzz-1.3.2.tar.bz2"
|
||||
SHA512 19f846ee75d8a2d94da2a2b489fa8e54a5120599f998e451187f6695aa3931b28c491bbc0837892eaaebbd1da3441effe01f5f2470454f83cfa6a7c510ebcb32
|
||||
URLS "https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.3.4.tar.bz2"
|
||||
FILENAME "harfbuzz-1.3.4.tar.bz2"
|
||||
SHA512 72027ce64d735f1f7ecabcc78ba426d6155cebd564439feb77cefdfc28b00bfd9f6314e6735addaa90cee1d98cf6d2c0b61f77b446ba34e11f7eb7cdfdcd386a
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/0001-Add-an-extra-path-input-for-Freetype.patch"
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/0001-Set-d-suffix-for-debug-freetype-lib.patch"
|
||||
)
|
||||
|
||||
file(TO_NATIVE_PATH "${VCPKG_ROOT_DIR}/installed/${TARGET_TRIPLET}/include" FREETYPE_INCLUDE_DIR)
|
||||
file(TO_NATIVE_PATH "${VCPKG_ROOT_DIR}/installed/${TARGET_TRIPLET}/debug/lib" FREETYPE_LIB_DIR_DBG)
|
||||
file(TO_NATIVE_PATH "${VCPKG_ROOT_DIR}/installed/${TARGET_TRIPLET}/lib" FREETYPE_LIB_DIR_REL)
|
||||
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${NMAKE} -f Makefile.vc CFG=debug FREETYPE=1 FREETYPE_DIR=${FREETYPE_INCLUDE_DIR} VCPKG_LIB_DIR=${FREETYPE_LIB_DIR_DBG}
|
||||
COMMAND ${NMAKE} -f Makefile.vc CFG=debug FREETYPE=1 FREETYPE_DIR=${FREETYPE_INCLUDE_DIR} ADDITIONAL_LIB_DIR=${FREETYPE_LIB_DIR_DBG}
|
||||
WORKING_DIRECTORY ${SOURCE_PATH}/win32/
|
||||
LOGNAME nmake-build-${TARGET_TRIPLET}-debug
|
||||
)
|
||||
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${NMAKE} -f Makefile.vc CFG=release FREETYPE=1 FREETYPE_DIR=${FREETYPE_INCLUDE_DIR} VCPKG_LIB_DIR=${FREETYPE_LIB_DIR_REL}
|
||||
COMMAND ${NMAKE} -f Makefile.vc CFG=release FREETYPE=1 FREETYPE_DIR=${FREETYPE_INCLUDE_DIR} ADDITIONAL_LIB_DIR=${FREETYPE_LIB_DIR_REL}
|
||||
WORKING_DIRECTORY ${SOURCE_PATH}/win32/
|
||||
LOGNAME nmake-build-${TARGET_TRIPLET}-release
|
||||
)
|
||||
@ -61,5 +55,5 @@ vcpkg_execute_required_process(
|
||||
)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/harfbuzz-1.3.2/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/harfbuzz)
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/harfbuzz)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/harfbuzz/COPYING ${CURRENT_PACKAGES_DIR}/share/harfbuzz/copyright)
|
||||
|
17
ports/http-parser/CMakeLists.txt
Normal file
17
ports/http-parser/CMakeLists.txt
Normal file
@ -0,0 +1,17 @@
|
||||
cmake_minimum_required (VERSION 3.4)
|
||||
project (http-parser)
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
SET(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
endif()
|
||||
|
||||
add_library(http_parser http_parser.c http_parser.h)
|
||||
|
||||
install(TARGETS http_parser
|
||||
RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin"
|
||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib"
|
||||
)
|
||||
|
||||
if (NOT SKIP_INSTALL_HEADERS)
|
||||
install(FILES http_parser.h DESTINATION "${CMAKE_INSTALL_PREFIX}/include")
|
||||
endif()
|
3
ports/http-parser/CONTROL
Normal file
3
ports/http-parser/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: http-parser
|
||||
Version: 2.7.1
|
||||
Description: HTTP Parser.
|
29
ports/http-parser/portfile.cmake
Normal file
29
ports/http-parser/portfile.cmake
Normal file
@ -0,0 +1,29 @@
|
||||
# Common Ambient Variables:
|
||||
# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
|
||||
# TARGET_TRIPLET is the current triplet (x86-windows, etc)
|
||||
# PORT is the current port name (zlib, etc)
|
||||
# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
|
||||
# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
|
||||
#
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/http-parser-2.7.1)
|
||||
vcpkg_download_distfile(ARCHIVE_FILE
|
||||
URLS "https://github.com/nodejs/http-parser/archive/v2.7.1.zip"
|
||||
FILENAME "http-parser-2.7.1.zip"
|
||||
SHA512 9fb8b855ba7edb47628c91ac062d7ffce9c4bb8d6b8237d861d7926af989fb3e354c113821bdab1b8ac910f5f1064ca1339947aa20d56f6806b919b0cd6b6eae
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS_DEBUG
|
||||
-DSKIP_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE-MIT DESTINATION ${CURRENT_PACKAGES_DIR}/share/http-parser)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/http-parser/LICENSE-MIT ${CURRENT_PACKAGES_DIR}/share/http-parser/copyright)
|
@ -1,3 +1,3 @@
|
||||
Source: icu
|
||||
Version: 58.1
|
||||
Version: 58.2-1
|
||||
Description: Mature and widely used Unicode and localization library.
|
||||
|
@ -10,9 +10,9 @@ endif()
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/icu)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://download.icu-project.org/files/icu4c/58.1/icu4c-58_1-src.zip"
|
||||
FILENAME "icu4c-58_1-src.zip"
|
||||
SHA512 b13b1d8aa5e6a08a5cecaea85252354150064ef98ed7bb66b70d32eac5c80874c11f1fc9e3a667075b867fcc848c33ad90e6cada3a279f65b62cb9d46e25181d)
|
||||
URLS "http://download.icu-project.org/files/icu4c/58.2/icu4c-58_2-src.zip"
|
||||
FILENAME "icu4c-58_2-src.zip"
|
||||
SHA512 b985b553186d11d9e5157fc981af5483c435a7b4f3df9574d253d6229ecaf8af0f722488542c3f64f9726ad25e17978eae970d78300a55479df74495f6745d16)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
if (TRIPLET_SYSTEM_ARCH MATCHES "x86")
|
||||
@ -25,6 +25,11 @@ vcpkg_build_msbuild(
|
||||
PROJECT_PATH ${SOURCE_PATH}/source/allinone/allinone.sln
|
||||
PLATFORM ${BUILD_ARCH})
|
||||
|
||||
# force rebuild of database as it sometimes gets overriden by dummy one
|
||||
vcpkg_build_msbuild(
|
||||
PROJECT_PATH ${SOURCE_PATH}/source/data/makedata.vcxproj
|
||||
PLATFORM ${BUILD_ARCH})
|
||||
|
||||
set(ICU_VERSION 58)
|
||||
if(TRIPLET_SYSTEM_ARCH MATCHES "x64")
|
||||
set(ICU_BIN bin64)
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: libbson
|
||||
Version: 1.5.0-rc6
|
||||
Version: 1.5.1
|
||||
Description: libbson is a library providing useful routines related to building, parsing, and iterating BSON documents.
|
@ -1,52 +1,52 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libbson-1.5.0-rc6)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/mongodb/libbson/archive/1.5.0-rc6.tar.gz"
|
||||
FILENAME "libbson-1.5.0-rc6.tar.gz"
|
||||
SHA512 15cf590b488f7de8d614ddcc2c1536b05b607311f3cd3353418469c7a62177124fb4fb1c53f51b0de4c7491b21051c1ec47fbc12856cc69e37baebb3d65897c5
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DENABLE_TESTS=OFF
|
||||
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/include/libbson-1.0
|
||||
${CURRENT_PACKAGES_DIR}/temp)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/temp ${CURRENT_PACKAGES_DIR}/include)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/bson-1.0.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/bson-1.0.lib)
|
||||
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/lib/bson-static-1.0.lib
|
||||
${CURRENT_PACKAGES_DIR}/lib/bson-1.0.lib)
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/bson-static-1.0.lib
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/bson-1.0.lib)
|
||||
|
||||
# drop the __declspec(dllimport) when building static
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${CURRENT_PACKAGES_DIR}/include
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/static.patch
|
||||
)
|
||||
else()
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/bson-static-1.0.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/bson-static-1.0.lib)
|
||||
endif()
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libbson-1.5.1)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/mongodb/libbson/archive/1.5.1.tar.gz"
|
||||
FILENAME "libbson-1.5.1.tar.gz"
|
||||
SHA512 b641e23ca041e532fe566167ad0292d12934e0fae2c110f81bf6ca3b71b5d01b651a604a7ce6da0d1b54b98cd95674ef331ef4e23c2dedfc706f371eac4efaec
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DENABLE_TESTS=OFF
|
||||
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/include/libbson-1.0
|
||||
${CURRENT_PACKAGES_DIR}/temp)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/temp ${CURRENT_PACKAGES_DIR}/include)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/bson-1.0.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/bson-1.0.lib)
|
||||
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/lib/bson-static-1.0.lib
|
||||
${CURRENT_PACKAGES_DIR}/lib/bson-1.0.lib)
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/bson-static-1.0.lib
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/bson-1.0.lib)
|
||||
|
||||
# drop the __declspec(dllimport) when building static
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${CURRENT_PACKAGES_DIR}/include
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/static.patch
|
||||
)
|
||||
else()
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/bson-static-1.0.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/bson-static-1.0.lib)
|
||||
endif()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libbson RENAME copyright)
|
73
ports/libflac/CMakeLists.txt
Normal file
73
ports/libflac/CMakeLists.txt
Normal file
@ -0,0 +1,73 @@
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
cmake_policy(SET CMP0005 NEW) # do not escape preprocessor defines
|
||||
|
||||
project(libflac)
|
||||
|
||||
if(NOT DEFINED LIBFLAC_ARCHITECTURE)
|
||||
message(FATAL_ERROR "Target architecture not specified")
|
||||
endif()
|
||||
|
||||
file(GLOB LIBFLAC_SOURCES
|
||||
${PROJECT_SOURCE_DIR}/src/libFLAC/*.c
|
||||
${PROJECT_SOURCE_DIR}/src/share/win_utf8_io/win_utf8_io.c)
|
||||
|
||||
file(GLOB LIBFLACXX_SOURCES
|
||||
${PROJECT_SOURCE_DIR}/src/libFLAC++/*.cpp)
|
||||
|
||||
include_directories(${PROJECT_SOURCE_DIR}/include)
|
||||
include_directories(${PROJECT_SOURCE_DIR}/src/libFLAC/include)
|
||||
|
||||
if(NOT LIBFLAC_ARCHITECTURE MATCHES arm)
|
||||
add_definitions(-DFLAC__SSE_OS)
|
||||
add_definitions(-DFLAC__HAS_X86INTRIN)
|
||||
endif()
|
||||
|
||||
if(LIBFLAC_ARCHITECTURE MATCHES x86)
|
||||
add_definitions(-DFLAC__CPU_IA32)
|
||||
elseif(LIBFLAC_ARCHITECTURE MATCHES x64)
|
||||
add_definitions(-DFLAC__CPU_X86_64)
|
||||
endif()
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
add_definitions(-DFLAC__OVERFLOW_DETECT)
|
||||
endif()
|
||||
|
||||
add_definitions(-DVERSION="1.3.1")
|
||||
add_definitions(-DFLAC__HAS_OGG)
|
||||
add_definitions(-DFLAC__ALIGN_MALLOC_DATA) # 32 byte boundary
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
add_definitions(-D_CRT_NONSTDC_NO_WARNINGS)
|
||||
|
||||
add_library(libFLAC ${LIBFLAC_SOURCES})
|
||||
add_library(libFLACXX ${LIBFLACXX_SOURCES})
|
||||
|
||||
set_target_properties(libFLAC PROPERTIES OUTPUT_NAME flac)
|
||||
set_target_properties(libFLACXX PROPERTIES OUTPUT_NAME flac++)
|
||||
|
||||
find_library(OGG_LIBRARY ogg)
|
||||
find_path(OGG_INCLUDE_DIR ogg/ogg.h)
|
||||
|
||||
include_directories(${OGG_INCLUDE_DIR})
|
||||
target_link_libraries(libFLAC ${OGG_LIBRARY})
|
||||
target_link_libraries(libFLACXX libFLAC)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set_target_properties(libFLACXX PROPERTIES COMPILE_FLAGS -DFLACPP_API_EXPORTS)
|
||||
set_target_properties(libFLAC PROPERTIES COMPILE_FLAGS -DFLAC_API_EXPORTS)
|
||||
else()
|
||||
add_definitions(-DFLAC__NO_DLL)
|
||||
endif()
|
||||
|
||||
install(TARGETS libFLAC libFLACXX
|
||||
RUNTIME DESTINATION bin
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib)
|
||||
|
||||
if(NOT DEFINED LIBFLAC_SKIP_HEADERS)
|
||||
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/FLAC/
|
||||
DESTINATION include/FLAC
|
||||
FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/FLAC++/
|
||||
DESTINATION include/FLAC++
|
||||
FILES_MATCHING PATTERN "*.h")
|
||||
endif()
|
4
ports/libflac/CONTROL
Normal file
4
ports/libflac/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: libflac
|
||||
Version: 1.3.1-1
|
||||
Description: Library for manipulating FLAC files
|
||||
Build-Depends: libogg
|
35
ports/libflac/portfile.cmake
Normal file
35
ports/libflac/portfile.cmake
Normal file
@ -0,0 +1,35 @@
|
||||
# libFLAC uses winapi functions not available in WindowsStore
|
||||
if (VCPKG_TARGET_ARCHITECTURE STREQUAL arm OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore)
|
||||
message(FATAL_ERROR "Error: UWP builds are currently not supported.")
|
||||
endif()
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/flac-1.3.1)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://downloads.xiph.org/releases/flac/flac-1.3.1.tar.xz"
|
||||
FILENAME "flac-1.3.1.tar.xz"
|
||||
SHA512 923cd0ffe2155636febf2b4633791bc83370d57080461b97ebb69ea21a4b1be7c0ff376c7fc8ca3979af4714e761112114a24b49ff6c80228b58b929db6e96d5)
|
||||
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DLIBFLAC_ARCHITECTURE=${VCPKG_TARGET_ARCHITECTURE}
|
||||
OPTIONS_DEBUG
|
||||
-DLIBFLAC_SKIP_HEADERS=ON)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(APPEND ${CURRENT_PACKAGES_DIR}/include/FLAC/export.h "#undef FLAC_API\n#define FLAC_API\n")
|
||||
file(APPEND ${CURRENT_PACKAGES_DIR}/include/FLAC++/export.h "#undef FLAC_API\n#define FLAC_API\n")
|
||||
endif()
|
||||
|
||||
# This license (BSD) is relevant only for library - if someone would want to install
|
||||
# FLAC cmd line tools as well additional license (GPL) should be included
|
||||
file(COPY ${SOURCE_PATH}/COPYING.Xiph DESTINATION ${CURRENT_PACKAGES_DIR}/share/libflac)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libflac/COPYING.Xiph ${CURRENT_PACKAGES_DIR}/share/libflac/copyright)
|
104
ports/liblzma/CMakeLists.txt
Normal file
104
ports/liblzma/CMakeLists.txt
Normal file
@ -0,0 +1,104 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
project(liblzma)
|
||||
|
||||
add_definitions(-DHAVE_CONFIG_H)
|
||||
if(BUILD_SHARED_LIBS)
|
||||
add_definitions(-DLIBLZMADLL_EXPORTS)
|
||||
add_definitions(-DDLL_EXPORT)
|
||||
endif()
|
||||
|
||||
include_directories(windows)
|
||||
include_directories(src/liblzma/common)
|
||||
include_directories(src/common)
|
||||
include_directories(src/liblzma/api)
|
||||
include_directories(src/liblzma/check)
|
||||
include_directories(src/liblzma/delta)
|
||||
include_directories(src/liblzma/lz)
|
||||
include_directories(src/liblzma/lzma)
|
||||
include_directories(src/liblzma/rangecoder)
|
||||
include_directories(src/liblzma/simple)
|
||||
|
||||
add_library(liblzma
|
||||
src/common/tuklib_cpucores.c
|
||||
src/common/tuklib_physmem.c
|
||||
src/liblzma/check/check.c
|
||||
src/liblzma/check/crc32_fast.c
|
||||
src/liblzma/check/crc32_table.c
|
||||
src/liblzma/check/crc64_fast.c
|
||||
src/liblzma/check/crc64_table.c
|
||||
src/liblzma/check/sha256.c
|
||||
src/liblzma/common/alone_decoder.c
|
||||
src/liblzma/common/alone_encoder.c
|
||||
src/liblzma/common/auto_decoder.c
|
||||
src/liblzma/common/block_buffer_decoder.c
|
||||
src/liblzma/common/block_buffer_encoder.c
|
||||
src/liblzma/common/block_decoder.c
|
||||
src/liblzma/common/block_encoder.c
|
||||
src/liblzma/common/block_header_decoder.c
|
||||
src/liblzma/common/block_header_encoder.c
|
||||
src/liblzma/common/block_util.c
|
||||
src/liblzma/common/common.c
|
||||
src/liblzma/common/easy_buffer_encoder.c
|
||||
src/liblzma/common/easy_decoder_memusage.c
|
||||
src/liblzma/common/easy_encoder.c
|
||||
src/liblzma/common/easy_encoder_memusage.c
|
||||
src/liblzma/common/easy_preset.c
|
||||
src/liblzma/common/filter_buffer_decoder.c
|
||||
src/liblzma/common/filter_buffer_encoder.c
|
||||
src/liblzma/common/filter_common.c
|
||||
src/liblzma/common/filter_decoder.c
|
||||
src/liblzma/common/filter_encoder.c
|
||||
src/liblzma/common/filter_flags_decoder.c
|
||||
src/liblzma/common/filter_flags_encoder.c
|
||||
src/liblzma/common/hardware_cputhreads.c
|
||||
src/liblzma/common/hardware_physmem.c
|
||||
src/liblzma/common/index.c
|
||||
src/liblzma/common/index_decoder.c
|
||||
src/liblzma/common/index_encoder.c
|
||||
src/liblzma/common/index_hash.c
|
||||
src/liblzma/common/outqueue.c
|
||||
src/liblzma/common/stream_buffer_decoder.c
|
||||
src/liblzma/common/stream_buffer_encoder.c
|
||||
src/liblzma/common/stream_decoder.c
|
||||
src/liblzma/common/stream_encoder.c
|
||||
src/liblzma/common/stream_encoder_mt.c
|
||||
src/liblzma/common/stream_flags_common.c
|
||||
src/liblzma/common/stream_flags_decoder.c
|
||||
src/liblzma/common/stream_flags_encoder.c
|
||||
src/liblzma/common/vli_decoder.c
|
||||
src/liblzma/common/vli_encoder.c
|
||||
src/liblzma/common/vli_size.c
|
||||
src/liblzma/delta/delta_common.c
|
||||
src/liblzma/delta/delta_decoder.c
|
||||
src/liblzma/delta/delta_encoder.c
|
||||
src/liblzma/lzma/fastpos_table.c
|
||||
src/liblzma/lzma/lzma2_decoder.c
|
||||
src/liblzma/lzma/lzma2_encoder.c
|
||||
src/liblzma/lzma/lzma_decoder.c
|
||||
src/liblzma/lzma/lzma_encoder.c
|
||||
src/liblzma/lzma/lzma_encoder_optimum_fast.c
|
||||
src/liblzma/lzma/lzma_encoder_optimum_normal.c
|
||||
src/liblzma/lzma/lzma_encoder_presets.c
|
||||
src/liblzma/lz/lz_decoder.c
|
||||
src/liblzma/lz/lz_encoder.c
|
||||
src/liblzma/lz/lz_encoder_mf.c
|
||||
src/liblzma/rangecoder/price_table.c
|
||||
src/liblzma/simple/arm.c
|
||||
src/liblzma/simple/armthumb.c
|
||||
src/liblzma/simple/ia64.c
|
||||
src/liblzma/simple/powerpc.c
|
||||
src/liblzma/simple/simple_coder.c
|
||||
src/liblzma/simple/simple_decoder.c
|
||||
src/liblzma/simple/simple_encoder.c
|
||||
src/liblzma/simple/sparc.c
|
||||
src/liblzma/simple/x86.c)
|
||||
|
||||
install(TARGETS liblzma
|
||||
RUNTIME DESTINATION bin
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib)
|
||||
|
||||
if(NOT LIBLZMA_SKIP_HEADERS)
|
||||
install(DIRECTORY ${PROJECT_SOURCE_DIR}/src/liblzma/api/lzma DESTINATION include)
|
||||
install(FILES ${PROJECT_SOURCE_DIR}/src/liblzma/api/lzma.h DESTINATION include)
|
||||
endif()
|
3
ports/liblzma/CONTROL
Normal file
3
ports/liblzma/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: liblzma
|
||||
Version: 5.2.2
|
||||
Description: Compression library with an API similar to that of zlib.
|
14
ports/liblzma/auto-define-lzma-api-static.patch
Normal file
14
ports/liblzma/auto-define-lzma-api-static.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git a/lzma.h b/lzma.h
|
||||
index ce675a7..ac0fc98 100644
|
||||
--- a/lzma.h
|
||||
+++ b/lzma.h
|
||||
@@ -187,6 +187,9 @@
|
||||
* need to worry about LZMA_API_STATIC. Also the calling convention is
|
||||
* omitted on Cygwin but not on MinGW.
|
||||
*/
|
||||
+
|
||||
+#define LZMA_API_STATIC
|
||||
+
|
||||
#ifndef LZMA_API_IMPORT
|
||||
# if !defined(LZMA_API_STATIC) && defined(_WIN32) && !defined(__GNUC__)
|
||||
# define LZMA_API_IMPORT __declspec(dllimport)
|
29
ports/liblzma/portfile.cmake
Normal file
29
ports/liblzma/portfile.cmake
Normal file
@ -0,0 +1,29 @@
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/xz-5.2.2)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://tukaani.org/xz/xz-5.2.2.tar.gz"
|
||||
FILENAME "xz-5.2.2.tar.gz"
|
||||
SHA512 8d6249f93c5c43e1c8eeb21f93b22330fd54575e20bbb4af3d06721192d9f0ca3351878964c9640238ac410b7dd9f16329793c7be7355c7ca0db92c6db6ab813)
|
||||
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS_DEBUG
|
||||
-DLIBLZMA_SKIP_HEADERS=ON)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${CURRENT_PACKAGES_DIR}/include
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/auto-define-lzma-api-static.patch)
|
||||
endif()
|
||||
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/liblzma)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/liblzma/COPYING ${CURRENT_PACKAGES_DIR}/share/liblzma/copyright)
|
3
ports/libmodplug/CONTROL
Normal file
3
ports/libmodplug/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: libmodplug
|
||||
Version: 0.8.8.5-bb25b05
|
||||
Description: The ModPlug mod file playing library.
|
13
ports/libmodplug/automagically-define-modplug-static.patch
Normal file
13
ports/libmodplug/automagically-define-modplug-static.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/libmodplug/modplug.h b/libmodplug/modplug.h
|
||||
index 3ffbf9d..fd19ae5 100644
|
||||
--- a/libmodplug/modplug.h
|
||||
+++ b/libmodplug/modplug.h
|
||||
@@ -11,6 +11,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
+#define MODPLUG_STATIC
|
||||
+
|
||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||
# if defined(MODPLUG_BUILD) && defined(DLL_EXPORT) /* building libmodplug as a dll for windows */
|
||||
# define MODPLUG_EXPORT __declspec(dllexport)
|
30
ports/libmodplug/portfile.cmake
Normal file
30
ports/libmodplug/portfile.cmake
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
set(MODPLUG_HASH bb25b059a963f62aa0a3fe4c580da7da47f2b9c0)
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libmodplug-${MODPLUG_HASH})
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/Konstanty/libmodplug/archive/${MODPLUG_HASH}.zip"
|
||||
FILENAME "libmodplug-0.8.8.5-${MODPLUG_HASH}.zip"
|
||||
SHA512 65840b7748284b400dfe99775e18f44dcc4846bc0ff522d18b9ded42c7032e10683e453110d530722d9e22547b7e5f4878ebfff92f232691cbd5b0638c48d88b)
|
||||
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
vcpkg_configure_cmake(SOURCE_PATH ${SOURCE_PATH})
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/bin)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/modplug.dll ${CURRENT_PACKAGES_DIR}/bin/modplug.dll)
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/modplug.dll ${CURRENT_PACKAGES_DIR}/debug/bin/modplug.dll)
|
||||
vcpkg_copy_pdbs()
|
||||
else()
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${CURRENT_PACKAGES_DIR}/include
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/automagically-define-modplug-static.patch)
|
||||
endif()
|
||||
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libmodplug)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libmodplug/COPYING ${CURRENT_PACKAGES_DIR}/share/libmodplug/copyright)
|
4
ports/libssh2/CONTROL
Normal file
4
ports/libssh2/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: libssh2
|
||||
Version: 1.8.0
|
||||
Build-Depends: zlib, openssl
|
||||
Description: The SSH library
|
41
ports/libssh2/LICENSE
Normal file
41
ports/libssh2/LICENSE
Normal file
@ -0,0 +1,41 @@
|
||||
/* Copyright (c) 2004-2007 Sara Golemon <sarag@libssh2.org>
|
||||
* Copyright (c) 2005,2006 Mikhail Gusarov <dottedmag@dottedmag.net>
|
||||
* Copyright (c) 2006-2007 The Written Word, Inc.
|
||||
* Copyright (c) 2007 Eli Fant <elifantu@mail.ru>
|
||||
* Copyright (c) 2009-2014 Daniel Stenberg
|
||||
* Copyright (C) 2008, 2009 Simon Josefsson
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms,
|
||||
* with or without modification, are permitted provided
|
||||
* that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above
|
||||
* copyright notice, this list of conditions and the
|
||||
* following disclaimer.
|
||||
*
|
||||
* Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the copyright holder nor the names
|
||||
* of any other contributors may be used to endorse or
|
||||
* promote products derived from this software without
|
||||
* specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
||||
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
|
||||
* OF SUCH DAMAGE.
|
||||
*/
|
32
ports/libssh2/portfile.cmake
Normal file
32
ports/libssh2/portfile.cmake
Normal file
@ -0,0 +1,32 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libssh2-1.8.0)
|
||||
vcpkg_download_distfile(ARCHIVE_FILE
|
||||
URLS "https://www.libssh2.org/download/libssh2-1.8.0.tar.gz"
|
||||
FILENAME "libssh2-1.8.0.tar.gz"
|
||||
SHA512 289aa45c4f99653bebf5f99565fe9c519abc204feb2084b47b7cc3badc8bf4ecdedd49ea6acdce8eb902b3c00995d5f92a3ca77b2508b92f04ae0e7de7287558
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
-DBUILD_TESTING=OFF
|
||||
-DENABLE_ZLIB_COMPRESSION=ON
|
||||
OPTIONS_DEBUG
|
||||
-DENABLE_DEBUG_LOGGING=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share)
|
||||
|
||||
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libssh2 RENAME copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
@ -25,22 +25,29 @@ src/ltable.c src/ltablib.c src/ltm.c src/lundump.c src/lutf8lib.c src/lvm.c src/
|
||||
# append headers to sources to make them show up in MSVC GUI
|
||||
LIST(APPEND SRC_LIBLUA ${HDR_LIBLUA})
|
||||
|
||||
IF (BUILD_SHARED_LIBS)
|
||||
ADD_DEFINITIONS ( -DLUA_BUILD_AS_DLL )
|
||||
ENDIF ()
|
||||
|
||||
# remove warnings
|
||||
ADD_DEFINITIONS (-D_CRT_SECURE_NO_WARNINGS )
|
||||
|
||||
#DLL
|
||||
ADD_LIBRARY ( lua ${SRC_LIBLUA} )
|
||||
|
||||
IF (BUILD_SHARED_LIBS)
|
||||
TARGET_COMPILE_DEFINITIONS (lua PRIVATE -DLUA_BUILD_AS_DLL )
|
||||
ENDIF ()
|
||||
|
||||
INSTALL ( TARGETS lua
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
|
||||
)
|
||||
|
||||
IF (NOT DEFINED SKIP_INSTALL_TOOLS)
|
||||
ADD_EXECUTABLE ( luac src/luac.c ${SRC_LIBLUA} ) # compiler
|
||||
ADD_EXECUTABLE ( luai src/lua.c ${SRC_LIBLUA} ) # interpreter
|
||||
SET_TARGET_PROPERTIES ( luai PROPERTIES OUTPUT_NAME lua PDB_NAME luai )
|
||||
INSTALL ( TARGETS luai luac RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/tools )
|
||||
ENDIF ()
|
||||
|
||||
IF (NOT DEFINED SKIP_INSTALL_HEADERS)
|
||||
INSTALL(
|
||||
FILES
|
||||
@ -51,4 +58,4 @@ IF (NOT DEFINED SKIP_INSTALL_HEADERS)
|
||||
src/lauxlib.h
|
||||
DESTINATION include
|
||||
)
|
||||
ENDIF ()
|
||||
ENDIF ()
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: lua
|
||||
Version: 5.3.3
|
||||
Version: 5.3.3-2
|
||||
Description: a powerful, fast, lightweight, embeddable scripting language
|
||||
|
@ -21,6 +21,7 @@ vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS_DEBUG
|
||||
-DSKIP_INSTALL_HEADERS=ON
|
||||
-DSKIP_INSTALL_TOOLS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
26
ports/lz4/CMakeLists.txt
Normal file
26
ports/lz4/CMakeLists.txt
Normal file
@ -0,0 +1,26 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
project(lz4)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
add_definitions(-DLZ4_DLL_EXPORT)
|
||||
endif()
|
||||
add_definitions(-DXXH_NAMESPACE=LZ4_)
|
||||
|
||||
add_library(lz4
|
||||
lib/lz4.c
|
||||
lib/lz4frame.c
|
||||
lib/lz4hc.c
|
||||
lib/xxhash.c)
|
||||
|
||||
install(TARGETS lz4
|
||||
RUNTIME DESTINATION bin
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib)
|
||||
|
||||
if(NOT LZ4_SKIP_INCLUDES)
|
||||
install(FILES
|
||||
lib/lz4.h
|
||||
lib/lz4frame.h
|
||||
lib/lz4hc.h
|
||||
DESTINATION include)
|
||||
endif()
|
3
ports/lz4/CONTROL
Normal file
3
ports/lz4/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: lz4
|
||||
Version: 1.7.4.2
|
||||
Description: Lossless compression algorithm, providing compression speed at 400 MB/s per core.
|
28
ports/lz4/auto-define-import-macro.patch
Normal file
28
ports/lz4/auto-define-import-macro.patch
Normal file
@ -0,0 +1,28 @@
|
||||
diff --git a/lz4.h b/lz4.h
|
||||
index 7420ad8..c1c3e56 100644
|
||||
--- a/lz4.h
|
||||
+++ b/lz4.h
|
||||
@@ -73,6 +73,9 @@ extern "C" {
|
||||
* LZ4_DLL_EXPORT :
|
||||
* Enable exporting of functions when building a Windows DLL
|
||||
*/
|
||||
+
|
||||
+#define LZ4_DLL_IMPORT 1
|
||||
+
|
||||
#if defined(LZ4_DLL_EXPORT) && (LZ4_DLL_EXPORT==1)
|
||||
# define LZ4LIB_API __declspec(dllexport)
|
||||
#elif defined(LZ4_DLL_IMPORT) && (LZ4_DLL_IMPORT==1)
|
||||
diff --git a/lz4frame.h b/lz4frame.h
|
||||
index 3104d2e..4442461 100644
|
||||
--- a/lz4frame.h
|
||||
+++ b/lz4frame.h
|
||||
@@ -55,6 +55,9 @@ extern "C" {
|
||||
* LZ4_DLL_EXPORT :
|
||||
* Enable exporting of functions when building a Windows DLL
|
||||
*/
|
||||
+
|
||||
+#define LZ4_DLL_IMPORT 1
|
||||
+
|
||||
#if defined(LZ4_DLL_EXPORT) && (LZ4_DLL_EXPORT==1)
|
||||
# define LZ4FLIB_API __declspec(dllexport)
|
||||
#elif defined(LZ4_DLL_IMPORT) && (LZ4_DLL_IMPORT==1)
|
29
ports/lz4/portfile.cmake
Normal file
29
ports/lz4/portfile.cmake
Normal file
@ -0,0 +1,29 @@
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/lz4-1.7.4.2)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/lz4/lz4/archive/v1.7.4.2.zip"
|
||||
FILENAME "lz4-1.7.4.2.zip"
|
||||
SHA512 c9a65031225ccda43ad4c7622e9f36762c18e58b4aaf43b1a33f219186fb55c43ca354f574a1591188db39f57631351b1b90f96e0c150e28de08dcb65c6759d0)
|
||||
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS_DEBUG
|
||||
-DLZ4_SKIP_INCLUDES=ON)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${CURRENT_PACKAGES_DIR}/include
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/auto-define-import-macro.patch)
|
||||
endif()
|
||||
|
||||
file(COPY ${SOURCE_PATH}/lib/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/lz4)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/lz4/LICENSE ${CURRENT_PACKAGES_DIR}/share/lz4/copyright)
|
@ -1,4 +1,4 @@
|
||||
Source: mongo-c-driver
|
||||
Version: 1.5.0-rc6
|
||||
Version: 1.5.1
|
||||
Build-Depends: libbson
|
||||
Description: Client library written in C for MongoDB.
|
@ -1,47 +1,47 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mongo-c-driver-1.5.0-rc6)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/mongodb/mongo-c-driver/archive/1.5.0-rc6.tar.gz"
|
||||
FILENAME "mongo-c-driver-1.5.0-rc6.tar.gz"
|
||||
SHA512 708caf4e963bad97b4802456c6f5809a0ba8c24fe5faaf0e91aa889a0690df4324005f8d324b3bfc80ffc76f1594612a8d391d7421dd914c58369c24cf8cc965
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DBSON_ROOT_DIR=${CURRENT_INSTALLED_DIR}
|
||||
-DENABLE_TESTS=OFF
|
||||
-DENABLE_EXAMPLES=OFF
|
||||
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/include/libmongoc-1.0
|
||||
${CURRENT_PACKAGES_DIR}/temp)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/temp ${CURRENT_PACKAGES_DIR}/include)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/mongoc-1.0.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/mongoc-1.0.lib)
|
||||
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/lib/mongoc-static-1.0.lib
|
||||
${CURRENT_PACKAGES_DIR}/lib/mongoc-1.0.lib)
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/mongoc-static-1.0.lib
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/mongoc-1.0.lib)
|
||||
else()
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/mongoc-static-1.0.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/mongoc-static-1.0.lib)
|
||||
endif()
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mongo-c-driver-1.5.1)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/mongodb/mongo-c-driver/archive/1.5.1.tar.gz"
|
||||
FILENAME "mongo-c-driver-1.5.1.tar.gz"
|
||||
SHA512 2977e6e1fb3c45256161d2c9bd711fea69b9f8c9ff15362fa636068e0a347c42e10d72fed5649504b552c8212f21cb1ae74d2dc8ca3d1388f49e63b2baf6e16d
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DBSON_ROOT_DIR=${CURRENT_INSTALLED_DIR}
|
||||
-DENABLE_TESTS=OFF
|
||||
-DENABLE_EXAMPLES=OFF
|
||||
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/include/libmongoc-1.0
|
||||
${CURRENT_PACKAGES_DIR}/temp)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/temp ${CURRENT_PACKAGES_DIR}/include)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/mongoc-1.0.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/mongoc-1.0.lib)
|
||||
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/lib/mongoc-static-1.0.lib
|
||||
${CURRENT_PACKAGES_DIR}/lib/mongoc-1.0.lib)
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/mongoc-static-1.0.lib
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/mongoc-1.0.lib)
|
||||
else()
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/mongoc-static-1.0.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/mongoc-static-1.0.lib)
|
||||
endif()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/mongo-c-driver RENAME copyright)
|
@ -1,88 +1,89 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mongo-cxx-driver-r3.0.3)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/mongodb/mongo-cxx-driver/archive/r3.0.3.tar.gz"
|
||||
FILENAME "mongo-cxx-driver-r3.0.3.tar.gz"
|
||||
SHA512 29f7ae77dab160c4279eb2eba8e960b25afc7118bf82570d240f5c68e1e17b10dc99910c855888467c304d70399f2d02031463b0c168a95ad0b9323742ccfd35
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/disable_test_and_example.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/disable_shared.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DLIBBSON_DIR=${CURRENT_INSTALLED_DIR}
|
||||
-DLIBMONGOC_DIR=${CURRENT_INSTALLED_DIR}
|
||||
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/include/bsoncxx/v_noabi/bsoncxx
|
||||
${CURRENT_PACKAGES_DIR}/temp)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/bsoncxx)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/temp ${CURRENT_PACKAGES_DIR}/include/bsoncxx)
|
||||
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/include/mongocxx/v_noabi/mongocxx
|
||||
${CURRENT_PACKAGES_DIR}/temp)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/mongocxx)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/temp ${CURRENT_PACKAGES_DIR}/include/mongocxx)
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/lib/cmake
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/cmake
|
||||
|
||||
${CURRENT_PACKAGES_DIR}/include/bsoncxx/cmake
|
||||
${CURRENT_PACKAGES_DIR}/include/bsoncxx/config/private
|
||||
${CURRENT_PACKAGES_DIR}/include/bsoncxx/private
|
||||
${CURRENT_PACKAGES_DIR}/include/bsoncxx/test
|
||||
${CURRENT_PACKAGES_DIR}/include/bsoncxx/third_party
|
||||
|
||||
${CURRENT_PACKAGES_DIR}/include/mongocxx/cmake
|
||||
${CURRENT_PACKAGES_DIR}/include/mongocxx/config/private
|
||||
${CURRENT_PACKAGES_DIR}/include/mongocxx/test
|
||||
${CURRENT_PACKAGES_DIR}/include/mongocxx/test_util
|
||||
${CURRENT_PACKAGES_DIR}/include/mongocxx/private
|
||||
${CURRENT_PACKAGES_DIR}/include/mongocxx/exception/private
|
||||
|
||||
${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/bsoncxx.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/bsoncxx.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/mongocxx.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/mongocxx.lib)
|
||||
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/lib/libbsoncxx.lib
|
||||
${CURRENT_PACKAGES_DIR}/lib/bsoncxx.lib)
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/libmongocxx.lib
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/mongocxx.lib)
|
||||
|
||||
# define MONGOCXX_STATIC in config/export.hpp
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${CURRENT_PACKAGES_DIR}/include
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/static.patch
|
||||
)
|
||||
else()
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/libbsoncxx.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/libbsoncxx.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/libmongocxx.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/libmongocxx.lib)
|
||||
endif()
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mongo-cxx-driver-r3.1.0)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/mongodb/mongo-cxx-driver/archive/r3.1.0.tar.gz"
|
||||
FILENAME "mongo-cxx-driver-r3.1.0.tar.gz"
|
||||
SHA512 2c9323f5e28304057b6ed6fc8bf33aad14db1313e234eaa74a96fb4cf93e99d24fd8c7c3f20b4b29cda7b1fe5c58f08dcb5cddcffbf62259c08334312fda4fba
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/disable_test_and_example.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/disable_shared.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DLIBBSON_DIR=${CURRENT_INSTALLED_DIR}
|
||||
-DLIBMONGOC_DIR=${CURRENT_INSTALLED_DIR}
|
||||
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/include/bsoncxx/v_noabi/bsoncxx
|
||||
${CURRENT_PACKAGES_DIR}/temp)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/bsoncxx)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/temp ${CURRENT_PACKAGES_DIR}/include/bsoncxx)
|
||||
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/include/mongocxx/v_noabi/mongocxx
|
||||
${CURRENT_PACKAGES_DIR}/temp)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/mongocxx)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/temp ${CURRENT_PACKAGES_DIR}/include/mongocxx)
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/lib/cmake
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/cmake
|
||||
|
||||
${CURRENT_PACKAGES_DIR}/include/bsoncxx/cmake
|
||||
${CURRENT_PACKAGES_DIR}/include/bsoncxx/config/private
|
||||
${CURRENT_PACKAGES_DIR}/include/bsoncxx/private
|
||||
${CURRENT_PACKAGES_DIR}/include/bsoncxx/test
|
||||
${CURRENT_PACKAGES_DIR}/include/bsoncxx/third_party
|
||||
|
||||
${CURRENT_PACKAGES_DIR}/include/mongocxx/cmake
|
||||
${CURRENT_PACKAGES_DIR}/include/mongocxx/config/private
|
||||
${CURRENT_PACKAGES_DIR}/include/mongocxx/test
|
||||
${CURRENT_PACKAGES_DIR}/include/mongocxx/test_util
|
||||
${CURRENT_PACKAGES_DIR}/include/mongocxx/private
|
||||
${CURRENT_PACKAGES_DIR}/include/mongocxx/exception/private
|
||||
${CURRENT_PACKAGES_DIR}/include/mongocxx/options
|
||||
|
||||
${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/bsoncxx.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/bsoncxx.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/mongocxx.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/mongocxx.lib)
|
||||
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/lib/libbsoncxx.lib
|
||||
${CURRENT_PACKAGES_DIR}/lib/bsoncxx.lib)
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/libmongocxx.lib
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/mongocxx.lib)
|
||||
|
||||
# define MONGOCXX_STATIC in config/export.hpp
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${CURRENT_PACKAGES_DIR}/include
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/static.patch
|
||||
)
|
||||
else()
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/libbsoncxx.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/libbsoncxx.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/libmongocxx.lib)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/libmongocxx.lib)
|
||||
endif()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/mongo-cxx-driver RENAME copyright)
|
4
ports/nana/CONTROL
Normal file
4
ports/nana/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: nana
|
||||
Version: 1.4.1
|
||||
Description: Cross-platform library for GUI programming in modern C++ style.
|
||||
Build-Depends: zlib, libpng, libjpeg-turbo
|
51
ports/nana/fix-linking.patch
Normal file
51
ports/nana/fix-linking.patch
Normal file
@ -0,0 +1,51 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 5c9c9c9..ae35185 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -149,26 +149,20 @@ endif ()
|
||||
# Find PNG
|
||||
if(NANA_CMAKE_ENABLE_PNG)
|
||||
add_definitions(-DNANA_ENABLE_PNG)
|
||||
- set(NANA_LINKS "${NANA_LINKS} -lpng")
|
||||
if(NANA_CMAKE_LIBPNG_FROM_OS)
|
||||
- find_package(PNG)
|
||||
- if (PNG_FOUND)
|
||||
- include_directories( ${PNG_INCLUDE_DIRS})
|
||||
- add_definitions(-DUSE_LIBPNG_FROM_OS)
|
||||
- endif(PNG_FOUND)
|
||||
+ find_package(PNG REQUIRED)
|
||||
+ include_directories(${PNG_INCLUDE_DIRS})
|
||||
+ add_definitions(-DUSE_LIBPNG_FROM_OS)
|
||||
endif(NANA_CMAKE_LIBPNG_FROM_OS)
|
||||
endif(NANA_CMAKE_ENABLE_PNG)
|
||||
|
||||
# Find JPEG
|
||||
if(NANA_CMAKE_ENABLE_JPEG)
|
||||
add_definitions(-DNANA_ENABLE_JPEG)
|
||||
- set(NANA_LINKS "${NANA_LINKS} -ljpeg")
|
||||
if(NANA_CMAKE_LIBJPEG_FROM_OS)
|
||||
- find_package(JPEG)
|
||||
- if (JPEG_FOUND)
|
||||
- include_directories( ${JPEG_INCLUDE_DIRS})
|
||||
- add_definitions(-DUSE_LIBJPEG_FROM_OS)
|
||||
- endif(JPEG_FOUND)
|
||||
+ find_package(JPEG REQUIRED)
|
||||
+ include_directories(${JPEG_INCLUDE_DIRS})
|
||||
+ add_definitions(-DUSE_LIBJPEG_FROM_OS)
|
||||
endif(NANA_CMAKE_LIBJPEG_FROM_OS)
|
||||
endif(NANA_CMAKE_ENABLE_JPEG)
|
||||
|
||||
@@ -253,7 +247,12 @@ endforeach(subdir ${NANA_SOURCE_SUBDIRS})
|
||||
|
||||
include_directories(${NANA_INCLUDE_DIR})
|
||||
add_library(${PROJECT_NAME} ${sources} )
|
||||
-target_link_libraries(${PROJECT_NAME} ${NANA_LINKS})
|
||||
+if(NANA_CMAKE_ENABLE_JPEG AND NANA_CMAKE_LIBJPEG_FROM_OS)
|
||||
+ target_link_libraries(${PROJECT_NAME} ${JPEG_LIBRARIES})
|
||||
+endif()
|
||||
+if(NANA_CMAKE_ENABLE_PNG AND NANA_CMAKE_LIBPNG_FROM_OS)
|
||||
+ target_link_libraries(${PROJECT_NAME} ${PNG_LIBRARIES})
|
||||
+endif()
|
||||
|
||||
# Headers: use INCLUDE_DIRECTORIES
|
||||
# Libraries: use FIND_LIBRARY and link with the result of it (try to avoid LINK_DIRECTORIES)
|
36
ports/nana/portfile.cmake
Normal file
36
ports/nana/portfile.cmake
Normal file
@ -0,0 +1,36 @@
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/nana)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://downloads.sourceforge.net/project/nanapro/Nana/Nana 1.x/nana 1.4.1.zip"
|
||||
FILENAME "nana 1.4.1.zip"
|
||||
SHA512 38a4fe4c9f932d0e69753c0c1e28d0c8f7cc1ab73c639b87dd5ba102ed25da1ee04c93ec5d6bb79945f7bc118cc131022604c75c1bb6eaced3a071eb137115cd)
|
||||
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/fix-linking.patch")
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON
|
||||
-DNANA_CMAKE_ENABLE_PNG=ON
|
||||
-DNANA_CMAKE_ENABLE_JPEG=ON
|
||||
OPTIONS_DEBUG
|
||||
-DNANA_CMAKE_INSTALL_INCLUDES=OFF)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
file(COPY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/Debug/nana.dll
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(COPY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/Release/nana.dll
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
|
||||
endif()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(COPY ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/nana)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/nana/LICENSE_1_0.txt ${CURRENT_PACKAGES_DIR}/share/nana/copyright)
|
17
ports/ogre/0001-use-vcpkg-freeimage.patch
Normal file
17
ports/ogre/0001-use-vcpkg-freeimage.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff --git a/OgreMain/CMakeLists.txt b/OgreMain/CMakeLists.txt
|
||||
index 6a43378..22f950e 100644
|
||||
--- a/OgreMain/CMakeLists.txt
|
||||
+++ b/OgreMain/CMakeLists.txt
|
||||
@@ -220,7 +220,11 @@ endif ()
|
||||
list(APPEND HEADER_FILES ${THREAD_HEADER_FILES})
|
||||
|
||||
# Add needed definitions and nedmalloc include dir
|
||||
-add_definitions(-DOGRE_NONCLIENT_BUILD -DFREEIMAGE_LIB -D_MT -D_USRDLL)
|
||||
+# vcpkg specific patch: we removed -DFREEIMAGE_LIB
|
||||
+# from the defines, because vcpkg's freeimage can
|
||||
+# be both static or dynamic, and FREEIMAGE_LIB
|
||||
+# remove all the symbol exporting declaration from FreeImage.h
|
||||
+add_definitions(-DOGRE_NONCLIENT_BUILD -D_MT -D_USRDLL)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/nedmalloc)
|
||||
|
||||
set(LIBRARIES ${PLATFORM_LIBS})
|
19
ports/ogre/0002-ogre-cmake-dir-as-option.patch
Normal file
19
ports/ogre/0002-ogre-cmake-dir-as-option.patch
Normal file
@ -0,0 +1,19 @@
|
||||
diff --git a/CMake/CMakeLists.txt b/CMake/CMakeLists.txt
|
||||
index 4c496b7..feb4017 100644
|
||||
--- a/CMake/CMakeLists.txt
|
||||
+++ b/CMake/CMakeLists.txt
|
||||
@@ -14,10 +14,12 @@
|
||||
#############################################################
|
||||
|
||||
if(WIN32 OR APPLE)
|
||||
- set(OGRE_CMAKE_DIR "CMake")
|
||||
+ set(OGRE_DEFAULT_CMAKE_DIR "CMake")
|
||||
else()
|
||||
- set(OGRE_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake")
|
||||
+ set(OGRE_DEFAULT_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake")
|
||||
endif()
|
||||
+set(OGRE_CMAKE_DIR ${OGRE_DEFAULT_CMAKE_DIR} CACHE STRING "Install directory for CMake files.")
|
||||
+mark_as_advanced(OGRE_DEFAULT_CMAKE_DIR)
|
||||
|
||||
set(INST_FILES
|
||||
Packages/FindOIS.cmake
|
41
ports/ogre/0003-use-flat-installation.patch
Normal file
41
ports/ogre/0003-use-flat-installation.patch
Normal file
@ -0,0 +1,41 @@
|
||||
diff --git a/CMake/Utils/OgreConfigTargets.cmake b/CMake/Utils/OgreConfigTargets.cmake
|
||||
index c6b3b40..2da7ebf 100644
|
||||
--- a/CMake/Utils/OgreConfigTargets.cmake
|
||||
+++ b/CMake/Utils/OgreConfigTargets.cmake
|
||||
@@ -41,15 +41,28 @@ if (NOT OGRE_RUNTIME_OUTPUT)
|
||||
set(OGRE_RUNTIME_OUTPUT ${OGRE_BINARY_DIR}/bin)
|
||||
endif ()
|
||||
|
||||
+option(OGRE_NO_INSTALLATION_SUFFIXES_ON_WIN32 "Do not install in configuration-specific directories in Windows" FALSE)
|
||||
+
|
||||
if (WIN32)
|
||||
- set(OGRE_RELEASE_PATH "/Release")
|
||||
- set(OGRE_RELWDBG_PATH "/RelWithDebInfo")
|
||||
- set(OGRE_MINSIZE_PATH "/MinSizeRel")
|
||||
- set(OGRE_DEBUG_PATH "/Debug")
|
||||
- set(OGRE_LIB_RELEASE_PATH "/Release")
|
||||
- set(OGRE_LIB_RELWDBG_PATH "/RelWithDebInfo")
|
||||
- set(OGRE_LIB_MINSIZE_PATH "/MinSizeRel")
|
||||
- set(OGRE_LIB_DEBUG_PATH "/Debug")
|
||||
+ if (OGRE_NO_INSTALLATION_SUFFIXES_ON_WIN32)
|
||||
+ set(OGRE_RELEASE_PATH "")
|
||||
+ set(OGRE_RELWDBG_PATH "")
|
||||
+ set(OGRE_MINSIZE_PATH "")
|
||||
+ set(OGRE_DEBUG_PATH "")
|
||||
+ set(OGRE_LIB_RELEASE_PATH "")
|
||||
+ set(OGRE_LIB_RELWDBG_PATH "")
|
||||
+ set(OGRE_LIB_MINSIZE_PATH "")
|
||||
+ set(OGRE_LIB_DEBUG_PATH "/")
|
||||
+ else ()
|
||||
+ set(OGRE_RELEASE_PATH "/Release")
|
||||
+ set(OGRE_RELWDBG_PATH "/RelWithDebInfo")
|
||||
+ set(OGRE_MINSIZE_PATH "/MinSizeRel")
|
||||
+ set(OGRE_DEBUG_PATH "/Debug")
|
||||
+ set(OGRE_LIB_RELEASE_PATH "/Release")
|
||||
+ set(OGRE_LIB_RELWDBG_PATH "/RelWithDebInfo")
|
||||
+ set(OGRE_LIB_MINSIZE_PATH "/MinSizeRel")
|
||||
+ set(OGRE_LIB_DEBUG_PATH "/Debug")
|
||||
+ endif ()
|
||||
set(OGRE_PLUGIN_PATH "/opt")
|
||||
set(OGRE_SAMPLE_PATH "/opt/samples")
|
||||
elseif (UNIX)
|
4
ports/ogre/CONTROL
Normal file
4
ports/ogre/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: ogre
|
||||
Version: 1.9.0
|
||||
Build-Depends: freeimage, freetype, zlib, zziplib
|
||||
Description: 3D Object-Oriented Graphics Rendering Engine
|
37
ports/ogre/OGREConfig.cmake
Normal file
37
ports/ogre/OGREConfig.cmake
Normal file
@ -0,0 +1,37 @@
|
||||
#.rst:
|
||||
# OGREConfig
|
||||
# ------------
|
||||
#
|
||||
# Dummy OGREConfig to simplify use of OGRE-provided FindOGRE module.
|
||||
#
|
||||
# This file is provided as part of the vcpkg port of OGRE .
|
||||
# It is meant to be found automatically by find_package(OGRE),
|
||||
# but then offloads all the real work to the FindOGRE module by temporarly
|
||||
# adding its directory to CMAKE_MODULE_PATH
|
||||
#
|
||||
# See the FindOGRE module to see the defined variables::
|
||||
#
|
||||
|
||||
# Temporarly add the directory in which OGREConfig.cmake is contained to
|
||||
# get access to the FindOGRE module
|
||||
get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
set(ORIGINAL_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
|
||||
list(APPEND CMAKE_MODULE_PATH ${SELF_DIR})
|
||||
find_package(OGRE MODULE)
|
||||
|
||||
# Leave CMAKE_MODULE_PATH as we found it
|
||||
set(CMAKE_MODULE_PATH ${ORIGINAL_CMAKE_MODULE_PATH})
|
||||
|
||||
# Handle components
|
||||
# imported from https://github.com/Kitware/CMake/blob/v3.7.1/Modules/CMakePackageConfigHelpers.cmake#L300
|
||||
macro(check_required_components _NAME)
|
||||
foreach(comp ${${_NAME}_FIND_COMPONENTS})
|
||||
if(NOT ${_NAME}_${comp}_FOUND)
|
||||
if(${_NAME}_FIND_REQUIRED_${comp})
|
||||
set(${_NAME}_FOUND FALSE)
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
check_required_components(OGRE)
|
60
ports/ogre/portfile.cmake
Normal file
60
ports/ogre/portfile.cmake
Normal file
@ -0,0 +1,60 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/sinbad-ogre-dd30349ea667)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://bitbucket.org/sinbad/ogre/get/v1-9-0.zip"
|
||||
FILENAME "ogre-v1-9-0.zip"
|
||||
SHA512 de7315a2450ecf0d9073e6a8f0c54737e041016f7ad820556d10701c7d23eefab9d3473476a8e95447c30ab21518b8e4cfb0271db72494ea67a3dea284c9a3d3
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/0001-use-vcpkg-freeimage.patch"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/0002-ogre-cmake-dir-as-option.patch"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/0003-use-flat-installation.patch"
|
||||
)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
set(OGRE_STATIC ON)
|
||||
else()
|
||||
set(OGRE_STATIC OFF)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS -DOGRE_USE_BOOST:BOOL=OFF
|
||||
-DOGRE_BUILD_RENDERSYSTEM_D3D9:BOOL=OFF
|
||||
-DOGRE_INSTALL_DEPENDENCIES:BOOL=OFF
|
||||
-DOGRE_COPY_DEPENDENCIES:BOOL=OFF
|
||||
-DOGRE_BUILD_TOOLS:BOOL=OFF
|
||||
-DOGRE_CMAKE_DIR:STRING=share/ogre
|
||||
-DOGRE_STATIC:BOOL=${OGRE_STATIC}
|
||||
-DOGRE_INSTALL_SAMPLES:BOOL=OFF
|
||||
-DOGRE_INSTALL_TOOLS:BOOL=OFF
|
||||
# We disable this option because it is broken and we rely on vcpkg_copy_pdbs
|
||||
-DOGRE_INSTALL_PDB:BOOL=OFF
|
||||
-DOGRE_BUILD_DOCS:BOOL=OFF
|
||||
-DOGRE_INSTALL_DOCS:BOOL=OFF
|
||||
-DOGRE_INSTALL_SAMPLES_SOURCE:BOOL=OFF
|
||||
-DOGRE_NO_INSTALLATION_SUFFIXES_ON_WIN32:BOOL=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
# Add a OGREConfig.cmake to simplify the process of finding vcpkg OGRE
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/OGREConfig.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/ogre)
|
||||
|
||||
# Remove debug includes
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
# Remove debug CMake files
|
||||
# Note that at the moment OGRE do not export imported targets,
|
||||
# so we do not need to copy the debug imported targets in the
|
||||
# release CMake path
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/ogre)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/ogre/COPYING ${CURRENT_PACKAGES_DIR}/share/ogre/copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
@ -1,3 +1,3 @@
|
||||
Source: openssl
|
||||
Version: 1.0.2j
|
||||
Version: 1.0.2j-1
|
||||
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.
|
@ -26,16 +26,16 @@ endif()
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/openssl-OpenSSL_1_0_2_WinRT-stable)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/openssl-OpenSSL_1_0_2j_WinRT)
|
||||
|
||||
vcpkg_find_acquire_program(PERL)
|
||||
get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY)
|
||||
set(ENV{PATH} "${PERL_EXE_PATH};$ENV{PATH}")
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/Microsoft/openssl/archive/OpenSSL_1_0_2_WinRT-stable.zip"
|
||||
FILENAME "openssl-microsoft-1.0.2.zip"
|
||||
SHA512 f265b7dbeca6b86815dbc14af9f2b6688407efd921eb335b1acf5a642dddb6b6334a794fe0939666d9db66976db11a67ad78a3ed74484708d3bf2040aae598d2
|
||||
URLS "https://github.com/Microsoft/openssl/archive/OpenSSL_1_0_2j_WinRT.zip"
|
||||
FILENAME "openssl-microsoft-1.0.2j_WinRT.zip"
|
||||
SHA512 0860d1f5fca7b1345870e866d7bb78f14672c5bb63c56bb04360ee891be542b4b56625ab971ef9b304b792b6cf36c9508bfd812c4a133f6ba8bafdde5e2f8fcf
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
63
ports/qca/0001-fix-path-for-vcpkg.patch
Normal file
63
ports/qca/0001-fix-path-for-vcpkg.patch
Normal file
@ -0,0 +1,63 @@
|
||||
From a3a8d50f3bdcb4df630f7126718c21f23efd7832 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kaspar <alexander.kaspar@gmail.com>
|
||||
Date: Wed, 30 Nov 2016 15:45:12 +0100
|
||||
Subject: [PATCH] fix path for vcpkg
|
||||
|
||||
---
|
||||
CMakeLists.txt | 18 +++++++++---------
|
||||
1 file changed, 9 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 605621b..3b5a9be 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -277,7 +277,7 @@ if(DEVELOPER_MODE)
|
||||
# To prefer plugins from build tree when run qca from build tree
|
||||
file(WRITE ${CMAKE_BINARY_DIR}/bin/qt.conf
|
||||
"[Paths]
|
||||
-Plugins=${CMAKE_BINARY_DIR}/lib/${QCA_LIB_NAME}
|
||||
+Plugins=${CMAKE_BINARY_DIR}/bin/${QCA_LIB_NAME}
|
||||
")
|
||||
endif()
|
||||
|
||||
@@ -320,7 +320,7 @@ else (qca_CERTSTORE)
|
||||
set( qca_CERTSTORE "${CMAKE_CURRENT_SOURCE_DIR}/certs/rootcerts.pem")
|
||||
# note that INSTALL_FILES targets are relative to the current installation prefix...
|
||||
if(NOT DEVELOPER_MODE)
|
||||
- install(FILES "${qca_CERTSTORE}" DESTINATION "${QCA_PREFIX_INSTALL_DIR}/certs")
|
||||
+ install(FILES "${qca_CERTSTORE}" DESTINATION "${QCA_PREFIX_INSTALL_DIR}/share/qca/certs")
|
||||
endif()
|
||||
endif (qca_CERTSTORE)
|
||||
message(STATUS "certstore path: " ${qca_CERTSTORE})
|
||||
@@ -401,10 +401,10 @@ endif(DOXYGEN_FOUND)
|
||||
include(CMakePackageConfigHelpers)
|
||||
configure_package_config_file(
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/QcaConfig.cmake.in"
|
||||
- "${CMAKE_CURRENT_BINARY_DIR}/lib/cmake/${QCA_CONFIG_NAME_BASE}/${QCA_CONFIG_NAME_BASE}Config.cmake"
|
||||
- INSTALL_DESTINATION ${QCA_LIBRARY_INSTALL_DIR}/cmake/${QCA_CONFIG_NAME_BASE}
|
||||
+ "${CMAKE_BINARY_DIR}/share/qca/cmake/${QCA_CONFIG_NAME_BASE}Config.cmake"
|
||||
+ INSTALL_DESTINATION ${CMAKE_BINARY_DIR}/share/qca/cmake
|
||||
)
|
||||
-write_basic_config_version_file("${CMAKE_CURRENT_BINARY_DIR}/lib/cmake/${QCA_CONFIG_NAME_BASE}/${QCA_CONFIG_NAME_BASE}ConfigVersion.cmake" VERSION ${QCA_LIB_VERSION_STRING} COMPATIBILITY AnyNewerVersion)
|
||||
+write_basic_config_version_file("${CMAKE_BINARY_DIR}/share/qca/cmake/${QCA_CONFIG_NAME_BASE}ConfigVersion.cmake" VERSION ${QCA_LIB_VERSION_STRING} COMPATIBILITY AnyNewerVersion)
|
||||
|
||||
if(NOT DEVELOPER_MODE)
|
||||
|
||||
@@ -472,10 +472,10 @@ if(NOT DEVELOPER_MODE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
- install(EXPORT ${QCA_CONFIG_NAME_BASE}Targets DESTINATION ${QCA_LIBRARY_INSTALL_DIR}/cmake/${QCA_CONFIG_NAME_BASE} FILE ${QCA_CONFIG_NAME_BASE}Targets.cmake)
|
||||
+ install(EXPORT ${QCA_CONFIG_NAME_BASE}Targets DESTINATION ${QCA_PREFIX_INSTALL_DIR}/share/qca/cmake FILE ${QCA_CONFIG_NAME_BASE}Targets.cmake)
|
||||
install(FILES
|
||||
- "${CMAKE_CURRENT_BINARY_DIR}/lib/cmake/${QCA_CONFIG_NAME_BASE}/${QCA_CONFIG_NAME_BASE}Config.cmake"
|
||||
- "${CMAKE_CURRENT_BINARY_DIR}/lib/cmake/${QCA_CONFIG_NAME_BASE}/${QCA_CONFIG_NAME_BASE}ConfigVersion.cmake"
|
||||
- DESTINATION ${QCA_LIBRARY_INSTALL_DIR}/cmake/${QCA_CONFIG_NAME_BASE}
|
||||
+ "${CMAKE_BINARY_DIR}/share/qca/cmake/${QCA_CONFIG_NAME_BASE}Config.cmake"
|
||||
+ "${CMAKE_BINARY_DIR}/share/qca/cmake/${QCA_CONFIG_NAME_BASE}ConfigVersion.cmake"
|
||||
+ DESTINATION ${QCA_PREFIX_INSTALL_DIR}/share/qca/cmake
|
||||
)
|
||||
endif()
|
||||
--
|
||||
2.8.1.windows.1
|
||||
|
4
ports/qca/CONTROL
Normal file
4
ports/qca/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: qca
|
||||
Version: 2.2.0
|
||||
Description: Qt Cryptographic Architecture (QCA). Sources: https://cgit.kde.org/qca.git/
|
||||
Build-Depends: qt5
|
554
ports/qca/mk-ca-bundle.pl
Normal file
554
ports/qca/mk-ca-bundle.pl
Normal file
@ -0,0 +1,554 @@
|
||||
#!/usr/bin/perl -w
|
||||
# ***************************************************************************
|
||||
# * _ _ ____ _
|
||||
# * Project ___| | | | _ \| |
|
||||
# * / __| | | | |_) | |
|
||||
# * | (__| |_| | _ <| |___
|
||||
# * \___|\___/|_| \_\_____|
|
||||
# *
|
||||
# * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
# *
|
||||
# * This software is licensed as described in the file COPYING, which
|
||||
# * you should have received as part of this distribution. The terms
|
||||
# * are also available at https://curl.haxx.se/docs/copyright.html.
|
||||
# *
|
||||
# * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||
# * copies of the Software, and permit persons to whom the Software is
|
||||
# * furnished to do so, under the terms of the COPYING file.
|
||||
# *
|
||||
# * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||
# * KIND, either express or implied.
|
||||
# *
|
||||
# ***************************************************************************
|
||||
# This Perl script creates a fresh ca-bundle.crt file for use with libcurl.
|
||||
# It downloads certdata.txt from Mozilla's source tree (see URL below),
|
||||
# then parses certdata.txt and extracts CA Root Certificates into PEM format.
|
||||
# These are then processed with the OpenSSL commandline tool to produce the
|
||||
# final ca-bundle.crt file.
|
||||
# The script is based on the parse-certs script written by Roland Krikava.
|
||||
# This Perl script works on almost any platform since its only external
|
||||
# dependency is the OpenSSL commandline tool for optional text listing.
|
||||
# Hacked by Guenter Knauf.
|
||||
#
|
||||
use Encode;
|
||||
use Getopt::Std;
|
||||
use MIME::Base64;
|
||||
use strict;
|
||||
use vars qw($opt_b $opt_d $opt_f $opt_h $opt_i $opt_k $opt_l $opt_m $opt_n $opt_p $opt_q $opt_s $opt_t $opt_u $opt_v $opt_w);
|
||||
use List::Util;
|
||||
use Text::Wrap;
|
||||
my $MOD_SHA = "Digest::SHA";
|
||||
eval "require $MOD_SHA";
|
||||
if ($@) {
|
||||
$MOD_SHA = "Digest::SHA::PurePerl";
|
||||
eval "require $MOD_SHA";
|
||||
}
|
||||
eval "require LWP::UserAgent";
|
||||
|
||||
my %urls = (
|
||||
'nss' =>
|
||||
'https://hg.mozilla.org/projects/nss/raw-file/tip/lib/ckfw/builtins/certdata.txt',
|
||||
'central' =>
|
||||
'https://hg.mozilla.org/mozilla-central/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt',
|
||||
'aurora' =>
|
||||
'https://hg.mozilla.org/releases/mozilla-aurora/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt',
|
||||
'beta' =>
|
||||
'https://hg.mozilla.org/releases/mozilla-beta/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt',
|
||||
'release' =>
|
||||
'https://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt',
|
||||
);
|
||||
|
||||
$opt_d = 'release';
|
||||
|
||||
# If the OpenSSL commandline is not in search path you can configure it here!
|
||||
my $openssl = 'openssl';
|
||||
|
||||
my $version = '1.27';
|
||||
|
||||
$opt_w = 76; # default base64 encoded lines length
|
||||
|
||||
# default cert types to include in the output (default is to include CAs which may issue SSL server certs)
|
||||
my $default_mozilla_trust_purposes = "SERVER_AUTH";
|
||||
my $default_mozilla_trust_levels = "TRUSTED_DELEGATOR";
|
||||
$opt_p = $default_mozilla_trust_purposes . ":" . $default_mozilla_trust_levels;
|
||||
|
||||
my @valid_mozilla_trust_purposes = (
|
||||
"DIGITAL_SIGNATURE",
|
||||
"NON_REPUDIATION",
|
||||
"KEY_ENCIPHERMENT",
|
||||
"DATA_ENCIPHERMENT",
|
||||
"KEY_AGREEMENT",
|
||||
"KEY_CERT_SIGN",
|
||||
"CRL_SIGN",
|
||||
"SERVER_AUTH",
|
||||
"CLIENT_AUTH",
|
||||
"CODE_SIGNING",
|
||||
"EMAIL_PROTECTION",
|
||||
"IPSEC_END_SYSTEM",
|
||||
"IPSEC_TUNNEL",
|
||||
"IPSEC_USER",
|
||||
"TIME_STAMPING",
|
||||
"STEP_UP_APPROVED"
|
||||
);
|
||||
|
||||
my @valid_mozilla_trust_levels = (
|
||||
"TRUSTED_DELEGATOR", # CAs
|
||||
"NOT_TRUSTED", # Don't trust these certs.
|
||||
"MUST_VERIFY_TRUST", # This explicitly tells us that it ISN'T a CA but is otherwise ok. In other words, this should tell the app to ignore any other sources that claim this is a CA.
|
||||
"TRUSTED" # This cert is trusted, but only for itself and not for delegates (i.e. it is not a CA).
|
||||
);
|
||||
|
||||
my $default_signature_algorithms = $opt_s = "MD5";
|
||||
|
||||
my @valid_signature_algorithms = (
|
||||
"MD5",
|
||||
"SHA1",
|
||||
"SHA256",
|
||||
"SHA384",
|
||||
"SHA512"
|
||||
);
|
||||
|
||||
$0 =~ s@.*(/|\\)@@;
|
||||
$Getopt::Std::STANDARD_HELP_VERSION = 1;
|
||||
getopts('bd:fhiklmnp:qs:tuvw:');
|
||||
|
||||
if(!defined($opt_d)) {
|
||||
# to make plain "-d" use not cause warnings, and actually still work
|
||||
$opt_d = 'release';
|
||||
}
|
||||
|
||||
# Use predefined URL or else custom URL specified on command line.
|
||||
my $url;
|
||||
if(defined($urls{$opt_d})) {
|
||||
$url = $urls{$opt_d};
|
||||
if(!$opt_k && $url !~ /^https:\/\//i) {
|
||||
die "The URL for '$opt_d' is not HTTPS. Use -k to override (insecure).\n";
|
||||
}
|
||||
}
|
||||
else {
|
||||
$url = $opt_d;
|
||||
}
|
||||
|
||||
my $curl = `curl -V`;
|
||||
|
||||
if ($opt_i) {
|
||||
print ("=" x 78 . "\n");
|
||||
print "Script Version : $version\n";
|
||||
print "Perl Version : $]\n";
|
||||
print "Operating System Name : $^O\n";
|
||||
print "Getopt::Std.pm Version : ${Getopt::Std::VERSION}\n";
|
||||
print "MIME::Base64.pm Version : ${MIME::Base64::VERSION}\n";
|
||||
print "LWP::UserAgent.pm Version : ${LWP::UserAgent::VERSION}\n" if($LWP::UserAgent::VERSION);
|
||||
print "LWP.pm Version : ${LWP::VERSION}\n" if($LWP::VERSION);
|
||||
print "Digest::SHA.pm Version : ${Digest::SHA::VERSION}\n" if ($Digest::SHA::VERSION);
|
||||
print "Digest::SHA::PurePerl.pm Version : ${Digest::SHA::PurePerl::VERSION}\n" if ($Digest::SHA::PurePerl::VERSION);
|
||||
print ("=" x 78 . "\n");
|
||||
}
|
||||
|
||||
sub warning_message() {
|
||||
if ( $opt_d =~ m/^risk$/i ) { # Long Form Warning and Exit
|
||||
print "Warning: Use of this script may pose some risk:\n";
|
||||
print "\n";
|
||||
print " 1) If you use HTTP URLs they are subject to a man in the middle attack\n";
|
||||
print " 2) Default to 'release', but more recent updates may be found in other trees\n";
|
||||
print " 3) certdata.txt file format may change, lag time to update this script\n";
|
||||
print " 4) Generally unwise to blindly trust CAs without manual review & verification\n";
|
||||
print " 5) Mozilla apps use additional security checks aren't represented in certdata\n";
|
||||
print " 6) Use of this script will make a security engineer grind his teeth and\n";
|
||||
print " swear at you. ;)\n";
|
||||
exit;
|
||||
} else { # Short Form Warning
|
||||
print "Warning: Use of this script may pose some risk, -d risk for more details.\n";
|
||||
}
|
||||
}
|
||||
|
||||
sub HELP_MESSAGE() {
|
||||
print "Usage:\t${0} [-b] [-d<certdata>] [-f] [-i] [-k] [-l] [-n] [-p<purposes:levels>] [-q] [-s<algorithms>] [-t] [-u] [-v] [-w<l>] [<outputfile>]\n";
|
||||
print "\t-b\tbackup an existing version of ca-bundle.crt\n";
|
||||
print "\t-d\tspecify Mozilla tree to pull certdata.txt or custom URL\n";
|
||||
print "\t\t Valid names are:\n";
|
||||
print "\t\t ", join( ", ", map { ( $_ =~ m/$opt_d/ ) ? "$_ (default)" : "$_" } sort keys %urls ), "\n";
|
||||
print "\t-f\tforce rebuild even if certdata.txt is current\n";
|
||||
print "\t-i\tprint version info about used modules\n";
|
||||
print "\t-k\tallow URLs other than HTTPS, enable HTTP fallback (insecure)\n";
|
||||
print "\t-l\tprint license info about certdata.txt\n";
|
||||
print "\t-m\tinclude meta data in output\n";
|
||||
print "\t-n\tno download of certdata.txt (to use existing)\n";
|
||||
print wrap("\t","\t\t", "-p\tlist of Mozilla trust purposes and levels for certificates to include in output. Takes the form of a comma separated list of purposes, a colon, and a comma separated list of levels. (default: $default_mozilla_trust_purposes:$default_mozilla_trust_levels)"), "\n";
|
||||
print "\t\t Valid purposes are:\n";
|
||||
print wrap("\t\t ","\t\t ", join( ", ", "ALL", @valid_mozilla_trust_purposes ) ), "\n";
|
||||
print "\t\t Valid levels are:\n";
|
||||
print wrap("\t\t ","\t\t ", join( ", ", "ALL", @valid_mozilla_trust_levels ) ), "\n";
|
||||
print "\t-q\tbe really quiet (no progress output at all)\n";
|
||||
print wrap("\t","\t\t", "-s\tcomma separated list of certificate signatures/hashes to output in plain text mode. (default: $default_signature_algorithms)\n");
|
||||
print "\t\t Valid signature algorithms are:\n";
|
||||
print wrap("\t\t ","\t\t ", join( ", ", "ALL", @valid_signature_algorithms ) ), "\n";
|
||||
print "\t-t\tinclude plain text listing of certificates\n";
|
||||
print "\t-u\tunlink (remove) certdata.txt after processing\n";
|
||||
print "\t-v\tbe verbose and print out processed CAs\n";
|
||||
print "\t-w <l>\twrap base64 output lines after <l> chars (default: ${opt_w})\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
sub VERSION_MESSAGE() {
|
||||
print "${0} version ${version} running Perl ${]} on ${^O}\n";
|
||||
}
|
||||
|
||||
warning_message() unless ($opt_q || $url =~ m/^(ht|f)tps:/i );
|
||||
HELP_MESSAGE() if ($opt_h);
|
||||
|
||||
sub report($@) {
|
||||
my $output = shift;
|
||||
|
||||
print STDERR $output . "\n" unless $opt_q;
|
||||
}
|
||||
|
||||
sub is_in_list($@) {
|
||||
my $target = shift;
|
||||
|
||||
return defined(List::Util::first { $target eq $_ } @_);
|
||||
}
|
||||
|
||||
# Parses $param_string as a case insensitive comma separated list with optional whitespace
|
||||
# validates that only allowed parameters are supplied
|
||||
sub parse_csv_param($$@) {
|
||||
my $description = shift;
|
||||
my $param_string = shift;
|
||||
my @valid_values = @_;
|
||||
|
||||
my @values = map {
|
||||
s/^\s+//; # strip leading spaces
|
||||
s/\s+$//; # strip trailing spaces
|
||||
uc $_ # return the modified string as upper case
|
||||
} split( ',', $param_string );
|
||||
|
||||
# Find all values which are not in the list of valid values or "ALL"
|
||||
my @invalid = grep { !is_in_list($_,"ALL",@valid_values) } @values;
|
||||
|
||||
if ( scalar(@invalid) > 0 ) {
|
||||
# Tell the user which parameters were invalid and print the standard help message which will exit
|
||||
print "Error: Invalid ", $description, scalar(@invalid) == 1 ? ": " : "s: ", join( ", ", map { "\"$_\"" } @invalid ), "\n";
|
||||
HELP_MESSAGE();
|
||||
}
|
||||
|
||||
@values = @valid_values if ( is_in_list("ALL",@values) );
|
||||
|
||||
return @values;
|
||||
}
|
||||
|
||||
sub sha256 {
|
||||
my $result;
|
||||
if ($Digest::SHA::VERSION || $Digest::SHA::PurePerl::VERSION) {
|
||||
open(FILE, $_[0]) or die "Can't open '$_[0]': $!";
|
||||
binmode(FILE);
|
||||
$result = $MOD_SHA->new(256)->addfile(*FILE)->hexdigest;
|
||||
close(FILE);
|
||||
} else {
|
||||
# Use OpenSSL command if Perl Digest::SHA modules not available
|
||||
$result = `"$openssl" dgst -r -sha256 "$_[0]"`;
|
||||
$result =~ s/^([0-9a-f]{64}) .+/$1/is;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
sub oldhash {
|
||||
my $hash = "";
|
||||
open(C, "<$_[0]") || return 0;
|
||||
while(<C>) {
|
||||
chomp;
|
||||
if($_ =~ /^\#\# SHA256: (.*)/) {
|
||||
$hash = $1;
|
||||
last;
|
||||
}
|
||||
}
|
||||
close(C);
|
||||
return $hash;
|
||||
}
|
||||
|
||||
if ( $opt_p !~ m/:/ ) {
|
||||
print "Error: Mozilla trust identifier list must include both purposes and levels\n";
|
||||
HELP_MESSAGE();
|
||||
}
|
||||
|
||||
(my $included_mozilla_trust_purposes_string, my $included_mozilla_trust_levels_string) = split( ':', $opt_p );
|
||||
my @included_mozilla_trust_purposes = parse_csv_param( "trust purpose", $included_mozilla_trust_purposes_string, @valid_mozilla_trust_purposes );
|
||||
my @included_mozilla_trust_levels = parse_csv_param( "trust level", $included_mozilla_trust_levels_string, @valid_mozilla_trust_levels );
|
||||
|
||||
my @included_signature_algorithms = parse_csv_param( "signature algorithm", $opt_s, @valid_signature_algorithms );
|
||||
|
||||
sub should_output_cert(%) {
|
||||
my %trust_purposes_by_level = @_;
|
||||
|
||||
foreach my $level (@included_mozilla_trust_levels) {
|
||||
# for each level we want to output, see if any of our desired purposes are included
|
||||
return 1 if ( defined( List::Util::first { is_in_list( $_, @included_mozilla_trust_purposes ) } @{$trust_purposes_by_level{$level}} ) );
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
my $crt = $ARGV[0] || 'ca-bundle.crt';
|
||||
(my $txt = $url) =~ s@(.*/|\?.*)@@g;
|
||||
|
||||
my $stdout = $crt eq '-';
|
||||
my $resp;
|
||||
my $fetched;
|
||||
|
||||
my $oldhash = oldhash($crt);
|
||||
|
||||
report "SHA256 of old file: $oldhash";
|
||||
|
||||
if(!$opt_n) {
|
||||
report "Downloading $txt ...";
|
||||
|
||||
# If we have an HTTPS URL then use curl
|
||||
if($url =~ /^https:\/\//i) {
|
||||
if($curl) {
|
||||
if($curl =~ /^Protocols:.* https( |$)/m) {
|
||||
report "Get certdata with curl!";
|
||||
my $proto = !$opt_k ? "--proto =https" : "";
|
||||
my $quiet = $opt_q ? "-s" : "";
|
||||
my @out = `curl -w %{response_code} $proto $quiet -o "$txt" "$url"`;
|
||||
if(@out && $out[0] == 200) {
|
||||
$fetched = 1;
|
||||
report "Downloaded $txt";
|
||||
}
|
||||
else {
|
||||
report "Failed downloading via HTTPS with curl";
|
||||
if(-e $txt && !unlink($txt)) {
|
||||
report "Failed to remove '$txt': $!";
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
report "curl lacks https support";
|
||||
}
|
||||
}
|
||||
else {
|
||||
report "curl not found";
|
||||
}
|
||||
}
|
||||
|
||||
# If nothing was fetched then use LWP
|
||||
if(!$fetched) {
|
||||
if($url =~ /^https:\/\//i) {
|
||||
report "Falling back to HTTP";
|
||||
$url =~ s/^https:\/\//http:\/\//i;
|
||||
}
|
||||
if(!$opt_k) {
|
||||
report "URLs other than HTTPS are disabled by default, to enable use -k";
|
||||
exit 1;
|
||||
}
|
||||
report "Get certdata with LWP!";
|
||||
if(!defined(${LWP::UserAgent::VERSION})) {
|
||||
report "LWP is not available (LWP::UserAgent not found)";
|
||||
exit 1;
|
||||
}
|
||||
my $ua = new LWP::UserAgent(agent => "$0/$version");
|
||||
$ua->env_proxy();
|
||||
$resp = $ua->mirror($url, $txt);
|
||||
if($resp && $resp->code eq '304') {
|
||||
report "Not modified";
|
||||
exit 0 if -e $crt && !$opt_f;
|
||||
}
|
||||
else {
|
||||
$fetched = 1;
|
||||
report "Downloaded $txt";
|
||||
}
|
||||
if(!$resp || $resp->code !~ /^(?:200|304)$/) {
|
||||
report "Unable to download latest data: "
|
||||
. ($resp? $resp->code . ' - ' . $resp->message : "LWP failed");
|
||||
exit 1 if -e $crt || ! -r $txt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
my $filedate = $resp ? $resp->last_modified : (stat($txt))[9];
|
||||
my $datesrc = "as of";
|
||||
if(!$filedate) {
|
||||
# mxr.mozilla.org gave us a time, hg.mozilla.org does not!
|
||||
$filedate = time();
|
||||
$datesrc="downloaded on";
|
||||
}
|
||||
|
||||
# get the hash from the download file
|
||||
my $newhash= sha256($txt);
|
||||
|
||||
if(!$opt_f && $oldhash eq $newhash) {
|
||||
report "Downloaded file identical to previous run\'s source file. Exiting";
|
||||
exit;
|
||||
}
|
||||
|
||||
report "SHA256 of new file: $newhash";
|
||||
|
||||
my $currentdate = scalar gmtime($filedate);
|
||||
|
||||
my $format = $opt_t ? "plain text and " : "";
|
||||
if( $stdout ) {
|
||||
open(CRT, '> -') or die "Couldn't open STDOUT: $!\n";
|
||||
} else {
|
||||
open(CRT,">$crt.~") or die "Couldn't open $crt.~: $!\n";
|
||||
}
|
||||
print CRT <<EOT;
|
||||
##
|
||||
## Bundle of CA Root Certificates
|
||||
##
|
||||
## Certificate data from Mozilla ${datesrc}: ${currentdate} GMT
|
||||
##
|
||||
## This is a bundle of X.509 certificates of public Certificate Authorities
|
||||
## (CA). These were automatically extracted from Mozilla's root certificates
|
||||
## file (certdata.txt). This file can be found in the mozilla source tree:
|
||||
## ${url}
|
||||
##
|
||||
## It contains the certificates in ${format}PEM format and therefore
|
||||
## can be directly used with curl / libcurl / php_curl, or with
|
||||
## an Apache+mod_ssl webserver for SSL client authentication.
|
||||
## Just configure this file as the SSLCACertificateFile.
|
||||
##
|
||||
## Conversion done with mk-ca-bundle.pl version $version.
|
||||
## SHA256: $newhash
|
||||
##
|
||||
|
||||
EOT
|
||||
|
||||
report "Processing '$txt' ...";
|
||||
my $caname;
|
||||
my $certnum = 0;
|
||||
my $skipnum = 0;
|
||||
my $start_of_cert = 0;
|
||||
my @precert;
|
||||
|
||||
open(TXT,"$txt") or die "Couldn't open $txt: $!\n";
|
||||
while (<TXT>) {
|
||||
if (/\*\*\*\*\* BEGIN LICENSE BLOCK \*\*\*\*\*/) {
|
||||
print CRT;
|
||||
print if ($opt_l);
|
||||
while (<TXT>) {
|
||||
print CRT;
|
||||
print if ($opt_l);
|
||||
last if (/\*\*\*\*\* END LICENSE BLOCK \*\*\*\*\*/);
|
||||
}
|
||||
}
|
||||
elsif(/^# (Issuer|Serial Number|Subject|Not Valid Before|Not Valid After |Fingerprint \(MD5\)|Fingerprint \(SHA1\)):/) {
|
||||
push @precert, $_;
|
||||
next;
|
||||
}
|
||||
elsif(/^#|^\s*$/) {
|
||||
undef @precert;
|
||||
next;
|
||||
}
|
||||
chomp;
|
||||
|
||||
# this is a match for the start of a certificate
|
||||
if (/^CKA_CLASS CK_OBJECT_CLASS CKO_CERTIFICATE/) {
|
||||
$start_of_cert = 1
|
||||
}
|
||||
if ($start_of_cert && /^CKA_LABEL UTF8 \"(.*)\"/) {
|
||||
$caname = $1;
|
||||
}
|
||||
my %trust_purposes_by_level;
|
||||
if ($start_of_cert && /^CKA_VALUE MULTILINE_OCTAL/) {
|
||||
my $data;
|
||||
while (<TXT>) {
|
||||
last if (/^END/);
|
||||
chomp;
|
||||
my @octets = split(/\\/);
|
||||
shift @octets;
|
||||
for (@octets) {
|
||||
$data .= chr(oct);
|
||||
}
|
||||
}
|
||||
# scan forwards until the trust part
|
||||
while (<TXT>) {
|
||||
last if (/^CKA_CLASS CK_OBJECT_CLASS CKO_NSS_TRUST/);
|
||||
chomp;
|
||||
}
|
||||
# now scan the trust part to determine how we should trust this cert
|
||||
while (<TXT>) {
|
||||
last if (/^#/);
|
||||
if (/^CKA_TRUST_([A-Z_]+)\s+CK_TRUST\s+CKT_NSS_([A-Z_]+)\s*$/) {
|
||||
if ( !is_in_list($1,@valid_mozilla_trust_purposes) ) {
|
||||
report "Warning: Unrecognized trust purpose for cert: $caname. Trust purpose: $1. Trust Level: $2";
|
||||
} elsif ( !is_in_list($2,@valid_mozilla_trust_levels) ) {
|
||||
report "Warning: Unrecognized trust level for cert: $caname. Trust purpose: $1. Trust Level: $2";
|
||||
} else {
|
||||
push @{$trust_purposes_by_level{$2}}, $1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( !should_output_cert(%trust_purposes_by_level) ) {
|
||||
$skipnum ++;
|
||||
} else {
|
||||
my $encoded = MIME::Base64::encode_base64($data, '');
|
||||
$encoded =~ s/(.{1,${opt_w}})/$1\n/g;
|
||||
my $pem = "-----BEGIN CERTIFICATE-----\n"
|
||||
. $encoded
|
||||
. "-----END CERTIFICATE-----\n";
|
||||
print CRT "\n$caname\n";
|
||||
print CRT @precert if($opt_m);
|
||||
my $maxStringLength = length(decode('UTF-8', $caname, Encode::FB_CROAK));
|
||||
if ($opt_t) {
|
||||
foreach my $key (keys %trust_purposes_by_level) {
|
||||
my $string = $key . ": " . join(", ", @{$trust_purposes_by_level{$key}});
|
||||
$maxStringLength = List::Util::max( length($string), $maxStringLength );
|
||||
print CRT $string . "\n";
|
||||
}
|
||||
}
|
||||
print CRT ("=" x $maxStringLength . "\n");
|
||||
if (!$opt_t) {
|
||||
print CRT $pem;
|
||||
} else {
|
||||
my $pipe = "";
|
||||
foreach my $hash (@included_signature_algorithms) {
|
||||
$pipe = "|$openssl x509 -" . $hash . " -fingerprint -noout -inform PEM";
|
||||
if (!$stdout) {
|
||||
$pipe .= " >> $crt.~";
|
||||
close(CRT) or die "Couldn't close $crt.~: $!";
|
||||
}
|
||||
open(TMP, $pipe) or die "Couldn't open openssl pipe: $!";
|
||||
print TMP $pem;
|
||||
close(TMP) or die "Couldn't close openssl pipe: $!";
|
||||
if (!$stdout) {
|
||||
open(CRT, ">>$crt.~") or die "Couldn't open $crt.~: $!";
|
||||
}
|
||||
}
|
||||
$pipe = "|$openssl x509 -text -inform PEM";
|
||||
if (!$stdout) {
|
||||
$pipe .= " >> $crt.~";
|
||||
close(CRT) or die "Couldn't close $crt.~: $!";
|
||||
}
|
||||
open(TMP, $pipe) or die "Couldn't open openssl pipe: $!";
|
||||
print TMP $pem;
|
||||
close(TMP) or die "Couldn't close openssl pipe: $!";
|
||||
if (!$stdout) {
|
||||
open(CRT, ">>$crt.~") or die "Couldn't open $crt.~: $!";
|
||||
}
|
||||
}
|
||||
report "Parsing: $caname" if ($opt_v);
|
||||
$certnum ++;
|
||||
$start_of_cert = 0;
|
||||
}
|
||||
undef @precert;
|
||||
}
|
||||
|
||||
}
|
||||
close(TXT) or die "Couldn't close $txt: $!\n";
|
||||
close(CRT) or die "Couldn't close $crt.~: $!\n";
|
||||
unless( $stdout ) {
|
||||
if ($opt_b && -e $crt) {
|
||||
my $bk = 1;
|
||||
while (-e "$crt.~${bk}~") {
|
||||
$bk++;
|
||||
}
|
||||
rename $crt, "$crt.~${bk}~" or die "Failed to create backup $crt.~$bk}~: $!\n";
|
||||
} elsif( -e $crt ) {
|
||||
unlink( $crt ) or die "Failed to remove $crt: $!\n";
|
||||
}
|
||||
rename "$crt.~", $crt or die "Failed to rename $crt.~ to $crt: $!\n";
|
||||
}
|
||||
if($opt_u && -e $txt && !unlink($txt)) {
|
||||
report "Failed to remove $txt: $!\n";
|
||||
}
|
||||
report "Done ($certnum CA certs processed, $skipnum skipped).";
|
123
ports/qca/portfile.cmake
Normal file
123
ports/qca/portfile.cmake
Normal file
@ -0,0 +1,123 @@
|
||||
# This portfile adds the Qt Cryptographic Arcitecture
|
||||
# Changes to the original build:
|
||||
# No -qt5 suffix, which is recommended just for Linux
|
||||
# Output directories according to vcpkg
|
||||
# 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_find_acquire_program(PERL)
|
||||
get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY)
|
||||
set(ENV{PATH} "${PERL_EXE_PATH};$ENV{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
|
||||
)
|
||||
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
|
||||
)
|
||||
|
||||
# According to:
|
||||
# https://www.openssl.org/docs/faq.html#USER16
|
||||
# it is up to developers or admins to maintain CAs.
|
||||
# So we do it here:
|
||||
message(STATUS "Importing certstore")
|
||||
file(REMOVE ${SOURCE_PATH}/certs/rootcerts.pem)
|
||||
# Using file(DOWNLOAD) to use https
|
||||
file(DOWNLOAD https://raw.githubusercontent.com/mozilla/gecko-dev/master/security/nss/lib/ckfw/builtins/certdata.txt
|
||||
${CMAKE_CURRENT_LIST_DIR}/certdata.txt
|
||||
TLS_VERIFY ON
|
||||
)
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${PERL} ${CMAKE_CURRENT_LIST_DIR}/mk-ca-bundle.pl -n ${SOURCE_PATH}/certs/rootcerts.pem
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
|
||||
LOGNAME ca-bundle
|
||||
)
|
||||
message(STATUS "Importing certstore done")
|
||||
|
||||
# Configure and build
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
CURRENT_PACKAGES_DIR ${CURRENT_PACKAGES_DIR}
|
||||
OPTIONS
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DUSE_RELATIVE_PATHS=ON
|
||||
-DQT4_BUILD=OFF
|
||||
-DBUILD_TESTS=OFF
|
||||
-DBUILD_TOOLS=OFF
|
||||
-DQCA_SUFFIX=OFF
|
||||
-DQCA_FEATURE_INSTALL_DIR=${CURRENT_PACKAGES_DIR}/share/qca/mkspecs/features
|
||||
OPTIONS_DEBUG
|
||||
-DQCA_PLUGINS_INSTALL_DIR=${CURRENT_PACKAGES_DIR}/debug/bin/Qca
|
||||
OPTIONS_RELEASE
|
||||
-DQCA_PLUGINS_INSTALL_DIR=${CURRENT_PACKAGES_DIR}/bin/Qca
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
# Patch and copy cmake files
|
||||
message(STATUS "Patching files")
|
||||
file(READ
|
||||
${CURRENT_PACKAGES_DIR}/debug/share/qca/cmake/QcaTargets-debug.cmake
|
||||
QCA_DEBUG_CONFIG
|
||||
)
|
||||
string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" QCA_DEBUG_CONFIG "${QCA_DEBUG_CONFIG}")
|
||||
file(WRITE
|
||||
${CURRENT_PACKAGES_DIR}/share/qca/cmake/QcaTargets-debug.cmake
|
||||
"${QCA_DEBUG_CONFIG}"
|
||||
)
|
||||
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/share/qca/cmake/QcaTargets.cmake
|
||||
QCA_TARGET_CONFIG
|
||||
)
|
||||
string(REPLACE "packages/qca_" "installed/" QCA_TARGET_CONFIG "${QCA_TARGET_CONFIG}")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/qca/cmake/QcaTargets.cmake
|
||||
"${QCA_TARGET_CONFIG}"
|
||||
)
|
||||
|
||||
# Remove unneeded dirs
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_BUILDTREES_DIR}/share/man
|
||||
${CURRENT_PACKAGES_DIR}/share/man
|
||||
${CURRENT_PACKAGES_DIR}/debug/include
|
||||
${CURRENT_PACKAGES_DIR}/debug/share
|
||||
)
|
||||
message(STATUS "Patching files done")
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/qca)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/qca/COPYING ${CURRENT_PACKAGES_DIR}/share/qca/copyright)
|
@ -1,4 +1,4 @@
|
||||
Source: qt5
|
||||
Version: 5.7-1
|
||||
Version: 5.7.1-2
|
||||
Description: Qt5 application framework main components. Webengine, examples and tests not included.
|
||||
Build-Depends: sqlite3, libpq
|
||||
Build-Depends: sqlite3, libpq
|
||||
|
@ -1,6 +1,6 @@
|
||||
include(${CMAKE_TRIPLET_FILE})
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/qt-5.7.0)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/qt-5.7.1)
|
||||
set(OUTPUT_PATH ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET})
|
||||
set(ENV{QTDIR} ${OUTPUT_PATH}/qtbase)
|
||||
set(ENV{PATH} "${OUTPUT_PATH}/qtbase/bin;$ENV{PATH}")
|
||||
@ -16,13 +16,13 @@ set(ENV{PATH} "${JOM_EXE_PATH};${PYTHON3_EXE_PATH};${PERL_EXE_PATH};$ENV{PATH}")
|
||||
set(ENV{INCLUDE} "${CURRENT_INSTALLED_DIR}/include;$ENV{INCLUDE}")
|
||||
set(ENV{LIB} "${CURRENT_INSTALLED_DIR}/lib;$ENV{LIB}")
|
||||
vcpkg_download_distfile(ARCHIVE_FILE
|
||||
URLS "http://download.qt.io/official_releases/qt/5.7/5.7.0/single/qt-everywhere-opensource-src-5.7.0.7z"
|
||||
FILENAME "qt-5.7.0.7z"
|
||||
SHA512 96f0b6bd221be0ed819bc9b52eefcee1774945e25b89169fa927148c1c4a2d85faf63b1d09ef5067573bda9bbf1270fce5f181d086bfe585ddbad4cd77f7f418
|
||||
URLS "http://download.qt.io/official_releases/qt/5.7/5.7.1/single/qt-everywhere-opensource-src-5.7.1.7z"
|
||||
FILENAME "qt-5.7.1.7z"
|
||||
SHA512 3ffcf490a1c0107a05113aebbf70015c50d05fbb35439273c243133ddb146d51aacae15ecd6411d563cc8cfe103df896394c365a69bc48fc86c3bce6a1af3107
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||
if (EXISTS ${CURRENT_BUILDTREES_DIR}/src/qt-everywhere-opensource-src-5.7.0)
|
||||
file(RENAME ${CURRENT_BUILDTREES_DIR}/src/qt-everywhere-opensource-src-5.7.0 ${CURRENT_BUILDTREES_DIR}/src/qt-5.7.0)
|
||||
if (EXISTS ${CURRENT_BUILDTREES_DIR}/src/qt-everywhere-opensource-src-5.7.1)
|
||||
file(RENAME ${CURRENT_BUILDTREES_DIR}/src/qt-everywhere-opensource-src-5.7.1 ${CURRENT_BUILDTREES_DIR}/src/qt-5.7.1)
|
||||
endif()
|
||||
|
||||
file(MAKE_DIRECTORY ${OUTPUT_PATH})
|
||||
@ -47,6 +47,10 @@ vcpkg_execute_required_process(
|
||||
-debug-and-release -force-debug-info ${QT_RUNTIME_LINKAGE}
|
||||
-qt-zlib
|
||||
-qt-libjpeg
|
||||
-no-libpng
|
||||
-no-freetype
|
||||
-qt-pcre
|
||||
-no-harfbuzz
|
||||
-system-sqlite
|
||||
-nomake examples -nomake tests -skip webengine
|
||||
-qt-sql-sqlite -qt-sql-psql
|
||||
@ -117,7 +121,9 @@ file(REMOVE ${DEBUG_LIB_FILES})
|
||||
file(GLOB DEBUG_LIB_FILES "${CURRENT_PACKAGES_DIR}/lib/*d.prl")
|
||||
file(REMOVE ${DEBUG_LIB_FILES})
|
||||
file(GLOB DEBUG_LIB_FILES "${CURRENT_PACKAGES_DIR}/lib/*d.pdb")
|
||||
file(REMOVE ${DEBUG_LIB_FILES})
|
||||
if(DEBUG_LIB_FILES)
|
||||
file(REMOVE ${DEBUG_LIB_FILES})
|
||||
endif()
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/Qt5Gamepad.lib ${CURRENT_PACKAGES_DIR}/lib/Qt5Gamepad.lib)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/Qt5Gamepad.prl ${CURRENT_PACKAGES_DIR}/lib/Qt5Gamepad.prl)
|
||||
file(GLOB BINARY_TOOLS "${CURRENT_PACKAGES_DIR}/bin/*.exe")
|
||||
|
@ -36,5 +36,5 @@ vcpkg_install_cmake()
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/include/ragel.txt)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/ragel-6.9/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/ragel)
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/ragel)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/ragel/COPYING ${CURRENT_PACKAGES_DIR}/share/ragel/copyright)
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: sdl2
|
||||
Version: 2.0.5
|
||||
Description: Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.
|
||||
Version: 2.0.5-2
|
||||
Description: Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user