mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-16 18:16:35 +08:00
Merge branch 'master' into Mixaill-urdfdom
This commit is contained in:
commit
289f61fcb8
46
CHANGELOG.md
46
CHANGELOG.md
@ -1,3 +1,49 @@
|
||||
vcpkg (0.0.86)
|
||||
--------------
|
||||
* Add ports:
|
||||
- bigint 2010.04.30
|
||||
- butteraugli 2017-09-02-8c60a2aefa19adb
|
||||
- ccd 2.0.0-1 (Renamed from libccd)
|
||||
- fadbad 2.1.0
|
||||
- fcl 0.5.0-1
|
||||
- guetzli 2017-09-02-cb5e4a86f69628
|
||||
- gumbo 0.10.1
|
||||
- libmicrohttpd 0.9.55
|
||||
- libstemmer 2017-9-02
|
||||
- libunibreak 4.0
|
||||
- lodepng 2017-09-01-8a0f16afe74a6a
|
||||
- meschach
|
||||
- nlopt 2.4.2-c43afa08d~vcpkg1
|
||||
- picosha2 2017-09-01-c5ff159b6
|
||||
- piex 2017-09-01-473434f2dd974978b
|
||||
- pthreads 2.9.1
|
||||
- tinythread 1.1
|
||||
- tinyxml 2.6.2-1
|
||||
* Removed ports:
|
||||
- libccd 2.0.0 (Renamed to ccd)
|
||||
* Update ports:
|
||||
- ace 6.4.3 -> 6.4.4
|
||||
- boost 1.65 -> 1.65-1
|
||||
- cairo 1.15.6 -> 1.15.8
|
||||
- gdk-pixbuf 2.36.6 -> 2.36.9
|
||||
- glib 2.52.2 -> 2.52.3
|
||||
- gtk 3.22.15 -> 3.22.19
|
||||
- jxrlib 1.1-2 -> 1.1-3
|
||||
- paho-mqtt Version 1.1.0 (Paho 1.2) -> 1.2.0
|
||||
- pango 1.40.6 -> 1.40.11
|
||||
- shaderc 2df47b51d83ad83cbc2e7f8ff2b56776293e8958 -> 2df47b51d83ad83cbc2e7f8ff2b56776293e8958-1
|
||||
* Fix warnings in bootstrap-vcpkg.ps1
|
||||
* Fix codepage related issues with ninja/cmake
|
||||
* Improve handling for non-ascii environments
|
||||
* Configurations names are now more tolerant:
|
||||
- If a configuration name is prefixed with "Release", then it is compatible with "Release"
|
||||
- If a configuration name is prefixed with "Debug", then it is compatible with "Debug"
|
||||
* `vcpkg edit`: Improve detection of VSCode and add better messages when no path is found
|
||||
* Fixes and improvements in the `vcpkg` tool itself
|
||||
|
||||
-- vcpkg team <vcpkg@microsoft.com> MON, 04 Sep 2017 02:00:00 -0800
|
||||
|
||||
|
||||
vcpkg (0.0.85)
|
||||
--------------
|
||||
* Add ports:
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: ace
|
||||
Version: 6.4.3
|
||||
Version: 6.4.4
|
||||
Description: The ADAPTIVE Communication Environment
|
||||
|
40
ports/bigint/CMakeLists.txt
Normal file
40
ports/bigint/CMakeLists.txt
Normal file
@ -0,0 +1,40 @@
|
||||
cmake_minimum_required(VERSION 3.8.0)
|
||||
project(bigint)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
include_directories(".")
|
||||
|
||||
set(
|
||||
bigint_srcs
|
||||
BigUnsigned.cc
|
||||
BigInteger.cc
|
||||
BigIntegerAlgorithms.cc
|
||||
BigUnsignedInABase.cc
|
||||
BigIntegerUtils.cc
|
||||
)
|
||||
|
||||
set(
|
||||
bigint_hh
|
||||
NumberlikeArray.hh
|
||||
BigUnsigned.hh
|
||||
BigInteger.hh
|
||||
BigIntegerAlgorithms.hh
|
||||
BigUnsignedInABase.hh
|
||||
BigIntegerLibrary.hh
|
||||
)
|
||||
|
||||
add_library(bigint ${bigint_srcs})
|
||||
|
||||
install(
|
||||
TARGETS bigint
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES ${bigint_hh} DESTINATION include/bigint)
|
||||
endif()
|
3
ports/bigint/CONTROL
Normal file
3
ports/bigint/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: bigint
|
||||
Version: 2010.04.30
|
||||
Description: C++ Big Integer Library
|
27
ports/bigint/portfile.cmake
Normal file
27
ports/bigint/portfile.cmake
Normal file
@ -0,0 +1,27 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(WARNING "Dynamic not supported building static")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
|
||||
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/bigint-2010.04.30)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://mattmccutchen.net/bigint/bigint-2010.04.30.tar.bz2"
|
||||
FILENAME "bigint-2010.04.30.tar.bz2"
|
||||
SHA512 bb64380e51991f97a2489c04801ab4372f795b5e23870ad12d71087f1a2afba9b32f74dcdbdcb5228ebf0dd74a37185285bac7653dd3c62d6118d63c298689af
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/README DESTINATION ${CURRENT_PACKAGES_DIR}/share/bigint RENAME copyright)
|
43
ports/butteraugli/CMakeLists.txt
Normal file
43
ports/butteraugli/CMakeLists.txt
Normal file
@ -0,0 +1,43 @@
|
||||
cmake_minimum_required(VERSION 3.8.0)
|
||||
project(butteraugli)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS -DNOMINMAX)
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
find_package(JPEG REQUIRED)
|
||||
find_package(PNG REQUIRED)
|
||||
|
||||
include_directories("." ${JPEG_INCLUDE_DIR} ${PNG_INCLUDE_DIRS})
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
endif()
|
||||
|
||||
|
||||
add_library(butteraugli_lib butteraugli/butteraugli.cc)
|
||||
|
||||
add_executable(butteraugli butteraugli/butteraugli_main.cc)
|
||||
|
||||
target_link_libraries(butteraugli butteraugli_lib ${JPEG_LIBRARIES} ${PNG_LIBRARIES})
|
||||
|
||||
|
||||
install(
|
||||
TARGETS butteraugli_lib
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_TOOLS)
|
||||
install (
|
||||
TARGETS butteraugli
|
||||
RUNTIME DESTINATION tools/butteraugli
|
||||
)
|
||||
endif()
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES butteraugli/butteraugli.h DESTINATION include/butteraugli)
|
||||
endif()
|
4
ports/butteraugli/CONTROL
Normal file
4
ports/butteraugli/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: butteraugli
|
||||
Version: 2017-09-02-8c60a2aefa19adb
|
||||
Description: butteraugli estimates the psychovisual difference between two images
|
||||
Build-Depends: libpng, libjpeg-turbo
|
12
ports/butteraugli/missing_header.patch
Normal file
12
ports/butteraugli/missing_header.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git "a/butteraugli/butteraugli_main.cc" "b/butteraugli/butteraugli_main.cc"
|
||||
index f38af1d..ebf3197 100644
|
||||
--- "a/butteraugli/butteraugli_main.cc"
|
||||
+++ "b/butteraugli/butteraugli_main.cc"
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <vector>
|
||||
+#include <algorithm>
|
||||
#include "butteraugli/butteraugli.h"
|
||||
|
||||
extern "C" {
|
30
ports/butteraugli/portfile.cmake
Normal file
30
ports/butteraugli/portfile.cmake
Normal file
@ -0,0 +1,30 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO google/butteraugli
|
||||
REF 8c60a2aefa19adb40e457be5358d7cc93205c72f
|
||||
SHA512 ff3d8fd952d291b51dab60cef6fa46b723c4a7b649c3df70f89c63febce865dc6a2e5f95ca165ea4424fed52a57c2d76c918eb31646c44ba34a0fa51a003c9dd
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
"${CMAKE_CURRENT_LIST_DIR}/missing_header.patch"
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON -DDISABLE_INSTALL_TOOLS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/butteraugli)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/butteraugli RENAME copyright)
|
@ -1,4 +1,4 @@
|
||||
Source: cairo
|
||||
Version: 1.15.6
|
||||
Version: 1.15.8
|
||||
Description: Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System (via both Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
|
||||
Build-Depends: zlib, libpng, pixman, glib, freetype, fontconfig
|
||||
|
@ -1,16 +0,0 @@
|
||||
src/win32/cairo-win32-device.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/win32/cairo-win32-device.c b/src/win32/cairo-win32-device.c
|
||||
index 741e49e..c60c494 100644
|
||||
--- a/src/win32/cairo-win32-device.c
|
||||
+++ b/src/win32/cairo-win32-device.c
|
||||
@@ -131,6 +131,8 @@ _cairo_win32_device_get (void)
|
||||
{
|
||||
cairo_win32_device_t *device;
|
||||
|
||||
+ CAIRO_MUTEX_INITIALIZE ();
|
||||
+
|
||||
if (__cairo_win32_device)
|
||||
return cairo_device_reference (__cairo_win32_device);
|
||||
|
@ -7,19 +7,18 @@
|
||||
#
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(CAIRO_VERSION 1.15.6)
|
||||
set(CAIRO_VERSION 1.15.8)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/cairo-${CAIRO_VERSION})
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://cairographics.org/snapshots/cairo-${CAIRO_VERSION}.tar.xz"
|
||||
FILENAME "cairo-${CAIRO_VERSION}.tar.xz"
|
||||
SHA512 e4eccba745a03545001ebd6f1a7b87bee4b932f80a2d877a764500ad5c18011a5bac585f31eec6d0b65ccaa818de0df2b3b99f0792111363bd3554cfa7f688b6
|
||||
SHA512 5af1eebf432201dae0efaa5b6766b151d8273ea00dae48e104d56477005b4d423d64b5d11c512736a4cb076632fb2a572ec35becd922825a68d933bb5ff96ca1
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/Initialize-mutexes-for-static-builds-for-win32.patch"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/export-only-in-shared-build.patch"
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/export-only-in-shared-build.patch"
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}/src)
|
||||
|
3
ports/fadbad/CONTROL
Normal file
3
ports/fadbad/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: fadbad
|
||||
Version: 2.1.0
|
||||
Description: FADBAD++ Templates for Automatic Differentiation
|
18
ports/fadbad/portfile.cmake
Normal file
18
ports/fadbad/portfile.cmake
Normal file
@ -0,0 +1,18 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/FADBAD++)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://www.fadbad.com/download/FADBAD++-2.1.tar.gz"
|
||||
FILENAME "FADBAD++-2.1.tar.gz"
|
||||
SHA512 7a82c51c03acb0806d673853f391379ea974e304c831ee15ef05a90c30661736ff572481b5b8254b2646c63968043ee90a06cba88261b87fc34d01f92403360a
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/tadiff.h
|
||||
${SOURCE_PATH}/fadbad.h
|
||||
${SOURCE_PATH}/fadiff.h
|
||||
${SOURCE_PATH}/badiff.h
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
||||
)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/fadbad RENAME copyright)
|
@ -1,3 +1,3 @@
|
||||
Source: glslang
|
||||
Version: 1c573fbcfba6b3d631008b1babc838501ca925d3-2
|
||||
Version: 3a21c880500eac21cdf79bef5b80f970a55ac6af
|
||||
Description: Khronos reference front-end for GLSL and ESSL, and sample SPIR-V generator
|
||||
|
@ -7,8 +7,8 @@ endif()
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO KhronosGroup/glslang
|
||||
REF 1c573fbcfba6b3d631008b1babc838501ca925d3
|
||||
SHA512 4f04dc39d9a70959ded1f4fe05ca5c7b0413c05bc3f049c11b5be7c8e1a70675f4221c9d8c712e7695f30eadb9bd7d0f1e71f431a6c9d4fea2cd2abbc73bd49a
|
||||
REF 3a21c880500eac21cdf79bef5b80f970a55ac6af
|
||||
SHA512 a6b2f589d432015d3830027dee377350529bec9c339a8de24aa52bab5ca52b3e17e2163d3bd1a7d91f7a08c446ebfe86d64bbbbae5a23af831d2e0cb724f7418
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
@ -19,29 +19,9 @@ vcpkg_configure_cmake(
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(COPY "${SOURCE_PATH}/glslang/Public" DESTINATION ${CURRENT_PACKAGES_DIR}/include/glslang)
|
||||
file(COPY "${SOURCE_PATH}/glslang/Include" DESTINATION ${CURRENT_PACKAGES_DIR}/include/glslang)
|
||||
file(COPY "${SOURCE_PATH}/glslang/MachineIndependent/Versions.h" DESTINATION ${CURRENT_PACKAGES_DIR}/include/glslang/MachineIndependent)
|
||||
file(COPY "${SOURCE_PATH}/SPIRV/Logger.h" DESTINATION ${CURRENT_PACKAGES_DIR}/include/SPIRV)
|
||||
file(COPY "${SOURCE_PATH}/SPIRV/spirv.hpp" DESTINATION ${CURRENT_PACKAGES_DIR}/include/SPIRV)
|
||||
file(COPY "${SOURCE_PATH}/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")
|
||||
file(COPY "${CURRENT_PACKAGES_DIR}/bin/spirv-remap.exe" DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
|
||||
file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/spirv-remap.exe")
|
||||
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")
|
||||
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")
|
||||
endif()
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/tools")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/glslang)
|
||||
|
46
ports/guetzli/CMakeLists.txt
Normal file
46
ports/guetzli/CMakeLists.txt
Normal file
@ -0,0 +1,46 @@
|
||||
cmake_minimum_required(VERSION 3.8.0)
|
||||
project(guetzli)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS -DNOMINMAX)
|
||||
endif()
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
endif()
|
||||
|
||||
find_path(butteraugli_include butteraugli/butteraugli.h)
|
||||
find_library(butteraugli_library NAMES butteraugli_lib)
|
||||
find_package(PNG REQUIRED)
|
||||
|
||||
include_directories("." ${PNG_INCLUDE_DIRS} ${butteraugli_include})
|
||||
|
||||
file(GLOB guetzli_srcs "guetzli/*.cc")
|
||||
file(GLOB guetzli_includes "guetzli/*.h")
|
||||
list(REMOVE_ITEM guetzli_srcs "guetzli/guetzli.cc")
|
||||
|
||||
add_library(guetzli_lib ${guetzli_srcs})
|
||||
|
||||
add_executable(guetzli guetzli/guetzli.cc)
|
||||
|
||||
target_link_libraries(guetzli_lib ${butteraugli_library} ${PNG_LIBRARIES})
|
||||
target_link_libraries(guetzli guetzli_lib ${butteraugli_library} ${PNG_LIBRARIES})
|
||||
|
||||
|
||||
install(
|
||||
TARGETS guetzli_lib
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_TOOLS)
|
||||
install (
|
||||
TARGETS guetzli
|
||||
RUNTIME DESTINATION tools/guetzli
|
||||
)
|
||||
endif()
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES ${guetzli_includes} DESTINATION include/guetzli)
|
||||
endif()
|
4
ports/guetzli/CONTROL
Normal file
4
ports/guetzli/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: guetzli
|
||||
Version: 2017-09-02-cb5e4a86f69628
|
||||
Description: Perceptual JPEG encoder
|
||||
Build-Depends: libpng, butteraugli
|
24
ports/guetzli/portfile.cmake
Normal file
24
ports/guetzli/portfile.cmake
Normal file
@ -0,0 +1,24 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO google/guetzli
|
||||
REF cb5e4a86f69628f685f2b78d7429e248ab83d8d7
|
||||
SHA512 695a87dc27573b8df74a7e7924e9b96a7bd375b1aae02e7b0fad800428d973cf17947d46ec7afefade2a86ebe3d39f3c3178aad1137b9dd013f5f85ee6569a75
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON -DDISABLE_INSTALL_TOOLS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/guetzli)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/guetzli RENAME copyright)
|
32
ports/gumbo/CMakeLists.txt
Normal file
32
ports/gumbo/CMakeLists.txt
Normal file
@ -0,0 +1,32 @@
|
||||
cmake_minimum_required(VERSION 3.8.0)
|
||||
|
||||
project(gumbo)
|
||||
|
||||
set(gumbo_srcs
|
||||
src/attribute.c
|
||||
src/char_ref.c
|
||||
src/error.c
|
||||
src/parser.c
|
||||
src/string_buffer.c
|
||||
src/string_piece.c
|
||||
src/tag.c
|
||||
src/tokenizer.c
|
||||
src/utf8.c
|
||||
src/util.c
|
||||
src/vector.c
|
||||
)
|
||||
|
||||
|
||||
include_directories(visualc/include src)
|
||||
|
||||
add_library(gumbo ${gumbo_srcs})
|
||||
|
||||
install(
|
||||
TARGETS gumbo
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES src/gumbo.h src/tag_enum.h DESTINATION include)
|
||||
endif()
|
3
ports/gumbo/CONTROL
Normal file
3
ports/gumbo/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: gumbo
|
||||
Version: 0.10.1
|
||||
Description: An HTML5 parsing library in pure C99
|
24
ports/gumbo/portfile.cmake
Normal file
24
ports/gumbo/portfile.cmake
Normal file
@ -0,0 +1,24 @@
|
||||
include(vcpkg_common_functions)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(WARNING "Dynamic not supported building static")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO google/gumbo-parser
|
||||
REF v0.10.1
|
||||
SHA512 bb1fb55cd07076ab6a9f38dc14db50397dbdca9a04ace4895dfba8b8cbc09038a96e26070c09c75fa929ada2e815affe233c1e2ecd8afe2aba6201647cf277d1
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/gumbo RENAME copyright)
|
4
ports/leptonica/CONTROL
Normal file
4
ports/leptonica/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: leptonica
|
||||
Version: 1.74.4
|
||||
Description: An open source library containing software that is broadly useful for image processing and image analysis applications
|
||||
Build-Depends: libjpeg-turbo, zlib, libpng, tiff, giflib
|
34
ports/leptonica/fix-cmakelists.patch
Normal file
34
ports/leptonica/fix-cmakelists.patch
Normal file
@ -0,0 +1,34 @@
|
||||
--- a/src/CMakeLists.txt Sun Jun 11 23:04:50 2017
|
||||
+++ b/src/CMakeLists.txt Wed Aug 16 17:29:56 2017
|
||||
@@ -27,24 +27,31 @@
|
||||
endif()
|
||||
|
||||
if (GIF_LIBRARY)
|
||||
+ target_include_directories (leptonica PUBLIC ${GIF_INCLUDE_DIR})
|
||||
target_link_libraries (leptonica ${GIF_LIBRARY})
|
||||
endif()
|
||||
if (JPEG_LIBRARY)
|
||||
+ target_include_directories (leptonica PUBLIC ${JPEG_INCLUDE_DIR})
|
||||
target_link_libraries (leptonica ${JPEG_LIBRARY})
|
||||
endif()
|
||||
if (JP2K_FOUND)
|
||||
+ target_include_directories (leptonica PUBLIC ${JP2K_INCLUDE_DIR})
|
||||
target_link_libraries (leptonica ${JP2K_LIBRARIES})
|
||||
endif()
|
||||
if (PNG_LIBRARY)
|
||||
+ target_include_directories (leptonica PUBLIC ${PNG_INCLUDE_DIRS})
|
||||
target_link_libraries (leptonica ${PNG_LIBRARY})
|
||||
endif()
|
||||
if (TIFF_LIBRARY)
|
||||
+ target_include_directories (leptonica PUBLIC ${TIFF_INCLUDE_DIR})
|
||||
target_link_libraries (leptonica ${TIFF_LIBRARY})
|
||||
endif()
|
||||
if (WEBP_FOUND)
|
||||
+ target_include_directories (leptonica PUBLIC ${WEBP_INCLUDE_DIR})
|
||||
target_link_libraries (leptonica ${WEBP_LIBRARIES})
|
||||
endif()
|
||||
if (ZLIB_LIBRARY)
|
||||
+ target_include_directories (leptonica PUBLIC ${ZLIB_INCLUDE_DIR})
|
||||
target_link_libraries (leptonica ${ZLIB_LIBRARY})
|
||||
endif()
|
||||
|
36
ports/leptonica/portfile.cmake
Normal file
36
ports/leptonica/portfile.cmake
Normal file
@ -0,0 +1,36 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO DanBloomberg/leptonica
|
||||
REF 1.74.4
|
||||
SHA512 3b9d0be937883f733f72cbdf0b624ec245d9256a8b4622997f437d309efd7ad9695ad1cbe2224d543eb3ef8c44833567b3cc9a95e9a774ef9046b7acaf0ae744
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/fix-cmakelists.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DCMAKE_REQUIRED_INCLUDES=${CURRENT_INSTALLED_DIR}/include # for check_include_file()
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH "cmake")
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/leptonica-license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/leptonica)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/leptonica/leptonica-license.txt ${CURRENT_PACKAGES_DIR}/share/leptonica/copyright)
|
78
ports/libmicrohttpd/CMakeLists.txt
Normal file
78
ports/libmicrohttpd/CMakeLists.txt
Normal file
@ -0,0 +1,78 @@
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
project(libmicrohttpd C)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
set(MIN_SRC contrib/libmicrohttpd)
|
||||
|
||||
|
||||
set(SRC
|
||||
src/microhttpd/base64.c
|
||||
src/microhttpd/basicauth.c
|
||||
src/microhttpd/connection.c
|
||||
src/microhttpd/daemon.c
|
||||
src/microhttpd/digestauth.c
|
||||
src/microhttpd/internal.c
|
||||
src/microhttpd/md5.c
|
||||
src/microhttpd/memorypool.c
|
||||
src/microhttpd/mhd_mono_clock.c
|
||||
src/microhttpd/postprocessor.c
|
||||
src/microhttpd/reason_phrase.c
|
||||
src/microhttpd/response.c
|
||||
src/microhttpd/tsearch.c
|
||||
src/microhttpd/sysfdsetsize.c
|
||||
src/microhttpd/mhd_str.c
|
||||
src/microhttpd/mhd_threads.c
|
||||
src/microhttpd/mhd_sockets.c
|
||||
src/microhttpd/mhd_itc.c
|
||||
src/microhttpd/mhd_compat.c
|
||||
)
|
||||
set(HEADERS
|
||||
src/microhttpd/base64.h
|
||||
src/microhttpd/connection.h
|
||||
src/microhttpd/internal.h
|
||||
src/microhttpd/md5.h
|
||||
src/microhttpd/memorypool.h
|
||||
src/microhttpd/mhd_byteorder.h
|
||||
src/microhttpd/mhd_limits.h
|
||||
src/microhttpd/mhd_mono_clock.h
|
||||
src/microhttpd/response.h
|
||||
src/microhttpd/tsearch.h
|
||||
src/microhttpd/sysfdsetsize.h
|
||||
src/microhttpd/mhd_str.h
|
||||
src/microhttpd/mhd_threads.h
|
||||
src/microhttpd/mhd_locks.h
|
||||
src/microhttpd/mhd_sockets.h
|
||||
src/microhttpd/mhd_itc.h
|
||||
src/microhttpd/mhd_itc_types.h
|
||||
src/microhttpd/mhd_compat.h
|
||||
)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
endif()
|
||||
|
||||
include_directories(${HEADERS} src/include w32/common)
|
||||
|
||||
add_library(libmicrohttpd ${SRC})
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
target_compile_definitions(libmicrohttpd PRIVATE -DMHD_W32DLL)
|
||||
else()
|
||||
target_compile_definitions(libmicrohttpd PRIVATE -DMHD_W32LIB)
|
||||
endif()
|
||||
|
||||
target_link_libraries(libmicrohttpd ws2_32)
|
||||
|
||||
install(
|
||||
TARGETS libmicrohttpd
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES src/include/microhttpd.h DESTINATION include)
|
||||
endif()
|
3
ports/libmicrohttpd/CONTROL
Normal file
3
ports/libmicrohttpd/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: libmicrohttpd
|
||||
Version: 0.9.55
|
||||
Description: GNU libmicrohttpd is a small C library that is supposed to make it easy to run an HTTP server as part of another application
|
23
ports/libmicrohttpd/portfile.cmake
Normal file
23
ports/libmicrohttpd/portfile.cmake
Normal file
@ -0,0 +1,23 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libmicrohttpd-0.9.55)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "ftp://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.55.tar.gz"
|
||||
FILENAME "libmicrohttpd-0.9.55.tar.gz"
|
||||
SHA512 b410e7253d7c98c40b5e8b8dcd1f93bcbb05c88717190e8dae73073d36465e8e5cfa53c6c5098de60051a5ec64dc423fd94f4b06537d8146b744aa99f5a0b173
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libmicrohttpd RENAME copyright)
|
22
ports/libstemmer/CMakeLists.txt
Normal file
22
ports/libstemmer/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
cmake_minimum_required(VERSION 3.8.0)
|
||||
|
||||
project(libstemmer)
|
||||
|
||||
file(GLOB SNOWBALL_SOURCES
|
||||
src_c/*.c
|
||||
runtime/api.c
|
||||
runtime/utilities.c
|
||||
libstemmer/libstemmer.c
|
||||
)
|
||||
|
||||
add_library(stemmer ${SNOWBALL_SOURCES})
|
||||
|
||||
install(
|
||||
TARGETS stemmer
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES include/libstemmer.h DESTINATION include)
|
||||
endif()
|
3
ports/libstemmer/CONTROL
Normal file
3
ports/libstemmer/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: libstemmer
|
||||
Version: 2017-9-02
|
||||
Description: Snowball is a small string processing language designed for creating stemming algorithms for use in Information Retrieval
|
19
ports/libstemmer/LICENSE
Normal file
19
ports/libstemmer/LICENSE
Normal file
@ -0,0 +1,19 @@
|
||||
Snowball - License
|
||||
Except where explicitly noted, all the software given out on this Snowball site is covered by the 3-clause BSD License:
|
||||
|
||||
Copyright (c) 2001, Dr Martin Porter,
|
||||
Copyright (c) 2002, Richard Boulton.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. 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.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its 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 HOLDER 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.
|
||||
Essentially, all this means is that you can do what you like with the code, except claim another Copyright for it, or claim that it is issued under a different license. The software is also issued without warranties, which means that if anyone suffers through its use, they cannot come back and sue you. You also have to alert anyone to whom you give the Snowball software to the fact that it is covered by the BSD license.
|
||||
|
||||
We have not bothered to insert the licensing arrangement into the text of the Snowball software.
|
24
ports/libstemmer/portfile.cmake
Normal file
24
ports/libstemmer/portfile.cmake
Normal file
@ -0,0 +1,24 @@
|
||||
include(vcpkg_common_functions)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(WARNING "Dynamic not supported building static")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libstemmer_c)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://snowball.tartarus.org/dist/libstemmer_c.tgz"
|
||||
FILENAME "libstemmer_c.tgz"
|
||||
SHA512 9ab5b8bfd5b4071dbbd63d769e09fae3971b49ee441ad970aa95d90b3297f5ffc9deed1613d99974d1485bf3b69292663591957f52bbeddcadbf9d9a4af432f2
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libstemmer RENAME copyright)
|
35
ports/libunibreak/CMakeLists.txt
Normal file
35
ports/libunibreak/CMakeLists.txt
Normal file
@ -0,0 +1,35 @@
|
||||
cmake_minimum_required(VERSION 3.8.0)
|
||||
|
||||
project(libunibreak)
|
||||
|
||||
set(libunibreak_srcs
|
||||
src/linebreakdata.c
|
||||
src/linebreakdef.c
|
||||
src/wordbreak.c
|
||||
src/graphemebreak.c
|
||||
src/unibreakbase.c
|
||||
src/unibreakdef.c
|
||||
)
|
||||
|
||||
|
||||
include_directories(src)
|
||||
|
||||
add_library(libunibreak ${libunibreak_srcs})
|
||||
|
||||
install(
|
||||
TARGETS libunibreak
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(
|
||||
FILES
|
||||
src/linebreak.h
|
||||
src/linebreakdef.h
|
||||
src/wordbreak.h
|
||||
src/wordbreakdef.h
|
||||
DESTINATION include
|
||||
)
|
||||
endif()
|
3
ports/libunibreak/CONTROL
Normal file
3
ports/libunibreak/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: libunibreak
|
||||
Version: 4.0
|
||||
Description: an implementation of the line breaking and word breaking algorithms as described in [Unicode Standard Annex 14] 1 and [Unicode Standard Annex 29] 2. Check the project's [home page] 3 for up-to-date information.
|
24
ports/libunibreak/portfile.cmake
Normal file
24
ports/libunibreak/portfile.cmake
Normal file
@ -0,0 +1,24 @@
|
||||
include(vcpkg_common_functions)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(WARNING "Dynamic not supported building static")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO adah1972/libunibreak
|
||||
REF libunibreak_4_0
|
||||
SHA512 f11295133a1c65f365a5287f7377f69ac7998f19b06d44818fb55c8a5ba3edabc36de8d1b7c0d38db9d982f0e443d0a751f6d51841865094122df4cd74c9af3b
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENCE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libunibreak RENAME copyright)
|
41
ports/lodepng/CMakeLists.txt
Normal file
41
ports/lodepng/CMakeLists.txt
Normal file
@ -0,0 +1,41 @@
|
||||
cmake_minimum_required(VERSION 3.8.0)
|
||||
project(lodepng)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
endif()
|
||||
|
||||
|
||||
include_directories(".")
|
||||
|
||||
add_library(lodepng lodepng.cpp lodepng_util.cpp)
|
||||
|
||||
add_executable(pngdetail pngdetail.cpp)
|
||||
|
||||
target_link_libraries(pngdetail lodepng)
|
||||
|
||||
install(
|
||||
TARGETS lodepng
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_TOOLS)
|
||||
install (
|
||||
TARGETS pngdetail
|
||||
RUNTIME DESTINATION tools/lodepng
|
||||
)
|
||||
endif()
|
||||
|
||||
if(NOT DDISABLE_INSTALL_EXAMPLES)
|
||||
install(DIRECTORY examples DESTINATION share/lodepng/)
|
||||
endif()
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES lodepng.h lodepng_util.h DESTINATION include)
|
||||
endif()
|
3
ports/lodepng/CONTROL
Normal file
3
ports/lodepng/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: lodepng
|
||||
Version: 2017-09-01-8a0f16afe74a6a
|
||||
Description: PNG encoder and decoder in C and C++
|
28
ports/lodepng/portfile.cmake
Normal file
28
ports/lodepng/portfile.cmake
Normal file
@ -0,0 +1,28 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO lvandeve/lodepng
|
||||
REF 8a0f16afe74a6abf85e3b45e9558283022021a59
|
||||
SHA512 189dde0a0982822b6dfc3f886d8035338ed200958eed8394c5c64aa97ddcf758b3989beae14ce8f26a78efa9fb4b94932bb02b41cacd62bd62a46ebf9b324def
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG
|
||||
-DDISABLE_INSTALL_HEADERS=ON
|
||||
-DDISABLE_INSTALL_TOOLS=ON
|
||||
-DDDISABLE_INSTALL_EXAMPLES=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/lodepng)
|
||||
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/lodepng.h DESTINATION ${CURRENT_PACKAGES_DIR}/share/lodepng RENAME copyright)
|
89
ports/meschach/CMakeLists.txt
Normal file
89
ports/meschach/CMakeLists.txt
Normal file
@ -0,0 +1,89 @@
|
||||
cmake_minimum_required(VERSION 3.8.0)
|
||||
project(meschach)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
set(meschach_srcs
|
||||
bdfactor.c
|
||||
bkpfacto.c
|
||||
chfactor.c
|
||||
copy.c
|
||||
err.c
|
||||
extras.c
|
||||
fft.c
|
||||
givens.c
|
||||
hessen.c
|
||||
hsehldr.c
|
||||
init.c
|
||||
iter0.c
|
||||
iternsym.c
|
||||
itersym.c
|
||||
ivecop.c
|
||||
lufactor.c
|
||||
machine.c
|
||||
matlab.c
|
||||
matop.c
|
||||
matrixio.c
|
||||
meminfo.c
|
||||
memory.c
|
||||
memstat.c
|
||||
mfunc.c
|
||||
norm.c
|
||||
otherio.c
|
||||
pxop.c
|
||||
qrfactor.c
|
||||
schur.c
|
||||
solve.c
|
||||
sparse.c
|
||||
sparseio.c
|
||||
spbkp.c
|
||||
spchfctr.c
|
||||
splufctr.c
|
||||
sprow.c
|
||||
spswap.c
|
||||
submat.c
|
||||
svd.c
|
||||
symmeig.c
|
||||
update.c
|
||||
vecop.c
|
||||
version.c
|
||||
zcopy.c
|
||||
zfunc.c
|
||||
zgivens.c
|
||||
zhessen.c
|
||||
zhsehldr.c
|
||||
zlufctr.c
|
||||
zmachine.c
|
||||
zmatio.c
|
||||
zmatlab.c
|
||||
zmatop.c
|
||||
zmemory.c
|
||||
znorm.c
|
||||
zqrfctr.c
|
||||
zschur.c
|
||||
zsolve.c
|
||||
ztorture.c
|
||||
zvecop.c
|
||||
)
|
||||
file(GLOB meschach_headers "*.h")
|
||||
|
||||
include_directories(".")
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
endif()
|
||||
|
||||
add_library(meschach ${meschach_srcs})
|
||||
target_compile_definitions(meschach PRIVATE -DHAVE_MEMORY_H -DHAVE_COMPLEX_H)
|
||||
|
||||
install(
|
||||
TARGETS meschach
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES ${meschach_headers} DESTINATION include/meschach)
|
||||
endif()
|
3
ports/meschach/CONTROL
Normal file
3
ports/meschach/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: meschach
|
||||
Version: 1.2b
|
||||
Description: Matrix computations in C
|
21
ports/meschach/portfile.cmake
Normal file
21
ports/meschach/portfile.cmake
Normal file
@ -0,0 +1,21 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://homepage.math.uiowa.edu/~dstewart/meschach/mesch12b.tar.gz"
|
||||
FILENAME "mesch12b.tar.gz"
|
||||
SHA512 9051e1502b8c9741400c61fd6038e514887f305f267ba4e97d747423de3da1270f835f65b2d1f538f8938677060bc0fcfd7a94022d74fbfd31a0450116e9d79e
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/meschach)
|
25
ports/nlopt/0001_export_symbols.patch
Normal file
25
ports/nlopt/0001_export_symbols.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From a8ab743870873066a66b30d68907ccc4ade250a5 Mon Sep 17 00:00:00 2001
|
||||
From: Mikhail Paulyshka <me@mixaill.tk>
|
||||
Date: Mon, 4 Sep 2017 01:25:38 +0300
|
||||
Subject: [PATCH] export symbols
|
||||
|
||||
---
|
||||
CMakeLists.txt | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f630c18..c266b39 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -20,6 +20,8 @@ endif ()
|
||||
|
||||
project (nlopt)
|
||||
|
||||
+set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
+
|
||||
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
||||
|
||||
option (WITH_CXX "enable cxx routines" OFF)
|
||||
--
|
||||
2.12.2.windows.2
|
||||
|
3
ports/nlopt/CONTROL
Normal file
3
ports/nlopt/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: nlopt
|
||||
Version: 2.4.2-c43afa08d~vcpkg1
|
||||
Description: a library for nonlinear local and global optimization, for functions with and without gradient information.
|
30
ports/nlopt/portfile.cmake
Normal file
30
ports/nlopt/portfile.cmake
Normal file
@ -0,0 +1,30 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO stevengj/nlopt
|
||||
REF c43afa08d4fe086d9c00c37924a6bd4c9de71816
|
||||
SHA512 e063d748b040f081a648b33dadaf9b7deef63ff3be0cffd8988816701c18694202f5bcf06a18991f1f4b35014e3f406ffa4404d4036ff7625d3680bd5e24f8e4
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/0001_export_symbols.patch)
|
||||
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/nlopt")
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
@ -1,3 +1,3 @@
|
||||
Source: openblas
|
||||
Version: v0.2.20
|
||||
Version: v0.2.20-1
|
||||
Description: OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
|
||||
|
@ -31,7 +31,7 @@ vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/install-openblas.patch"
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/install-openblas.patch" "${CMAKE_CURRENT_LIST_DIR}/whitespace.patch"
|
||||
)
|
||||
|
||||
find_program(GIT NAMES git git.cmd)
|
||||
|
31
ports/openblas/whitespace.patch
Normal file
31
ports/openblas/whitespace.patch
Normal file
@ -0,0 +1,31 @@
|
||||
diff --git a/cmake/prebuild.cmake b/cmake/prebuild.cmake
|
||||
index 02ab708..b51bd0b 100644
|
||||
--- a/cmake/prebuild.cmake
|
||||
+++ b/cmake/prebuild.cmake
|
||||
@@ -87,7 +87,7 @@ file(MAKE_DIRECTORY ${GETARCH_DIR})
|
||||
if (NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore")
|
||||
try_compile(GETARCH_RESULT ${GETARCH_DIR}
|
||||
SOURCES ${GETARCH_SRC}
|
||||
- COMPILE_DEFINITIONS ${EXFLAGS} ${GETARCH_FLAGS} -I${PROJECT_SOURCE_DIR}
|
||||
+ COMPILE_DEFINITIONS ${EXFLAGS} ${GETARCH_FLAGS} -I"${PROJECT_SOURCE_DIR}"
|
||||
OUTPUT_VARIABLE GETARCH_LOG
|
||||
COPY_FILE ${PROJECT_BINARY_DIR}/${GETARCH_BIN}
|
||||
)
|
||||
@@ -114,7 +114,7 @@ file(MAKE_DIRECTORY ${GETARCH2_DIR})
|
||||
if (NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore")
|
||||
try_compile(GETARCH2_RESULT ${GETARCH2_DIR}
|
||||
SOURCES ${PROJECT_SOURCE_DIR}/getarch_2nd.c
|
||||
- COMPILE_DEFINITIONS ${EXFLAGS} ${GETARCH_FLAGS} ${GETARCH2_FLAGS} -I${PROJECT_SOURCE_DIR}
|
||||
+ COMPILE_DEFINITIONS ${EXFLAGS} ${GETARCH_FLAGS} ${GETARCH2_FLAGS} -I"${PROJECT_SOURCE_DIR}"
|
||||
OUTPUT_VARIABLE GETARCH2_LOG
|
||||
COPY_FILE ${PROJECT_BINARY_DIR}/${GETARCH2_BIN}
|
||||
)
|
||||
@@ -141,7 +141,7 @@ file(MAKE_DIRECTORY ${GEN_CONFIG_H_DIR})
|
||||
if (NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore")
|
||||
try_compile(GEN_CONFIG_H_RESULT ${GEN_CONFIG_H_DIR}
|
||||
SOURCES ${PROJECT_SOURCE_DIR}/gen_config_h.c
|
||||
- COMPILE_DEFINITIONS ${EXFLAGS} ${GETARCH_FLAGS} ${GEN_CONFIG_H_FLAGS} -I${PROJECT_SOURCE_DIR}
|
||||
+ COMPILE_DEFINITIONS ${EXFLAGS} ${GETARCH_FLAGS} ${GEN_CONFIG_H_FLAGS} -I"${PROJECT_SOURCE_DIR}"
|
||||
OUTPUT_VARIABLE GEN_CONFIG_H_LOG
|
||||
COPY_FILE ${PROJECT_BINARY_DIR}/${GEN_CONFIG_H_BIN}
|
||||
)
|
@ -1,4 +1,4 @@
|
||||
Source: paho-mqtt
|
||||
Version: Version 1.1.0 (Paho 1.2)
|
||||
Version: 1.2.0
|
||||
Description: Paho project provides open-source client implementations of MQTT and MQTT-SN messaging protocols aimed at new, existing, and emerging applications for the Internet of Things
|
||||
Build-Depends: openssl
|
||||
|
16
ports/paho-mqtt/disable_tests.patch
Normal file
16
ports/paho-mqtt/disable_tests.patch
Normal file
@ -0,0 +1,16 @@
|
||||
diff --git "a/CMakeLists.txt" "b/CMakeLists.txt"
|
||||
index c041df0..2feb580 100644
|
||||
--- "a/CMakeLists.txt"
|
||||
+++ "b/CMakeLists.txt"
|
||||
@@ -94,7 +94,10 @@ SET(CPACK_PACKAGE_VERSION_MINOR ${PAHO_VERSION_MINOR})
|
||||
SET(CPACK_PACKAGE_VERSION_PATCH ${PAHO_VERSION_PATCH})
|
||||
INCLUDE(CPack)
|
||||
|
||||
+if(BUILD_TESTS)
|
||||
ENABLE_TESTING()
|
||||
|
||||
INCLUDE_DIRECTORIES(test src)
|
||||
ADD_SUBDIRECTORY(test)
|
||||
+
|
||||
+endif()
|
||||
\ No newline at end of file
|
@ -1,56 +1,74 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO eclipse/paho.mqtt.c
|
||||
REF v1.1.0
|
||||
SHA512 49eebf258e15076048103ff79442ad0d21164b83f713eee7f226998106b5931d310871d3b372322d5ef1cb2801219a6e626400b6fe4198814150a6277d6bfd74
|
||||
HEAD_REF master
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO eclipse/paho.mqtt.c
|
||||
REF v1.2.0
|
||||
SHA512 ffad01a8f9f41049dd008e163136e4ecb8c7c51f7b49917201593b0844b15a8d2a413ddec06fa5b2d77e432f0603b71664a23afbb7c215121cebd7d419ccacfa
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" PAHO_BUILD_STATIC)
|
||||
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
"${CMAKE_CURRENT_LIST_DIR}/disable_tests.patch"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/remove_compiler_options.patch"
|
||||
)
|
||||
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS -DPAHO_WITH_SSL=TRUE
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_STATIC=${PAHO_BUILD_STATIC}
|
||||
)
|
||||
|
||||
|
||||
vcpkg_build_cmake()
|
||||
|
||||
file(GLOB DLLS
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/*.dll"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/Release/*.dll"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/*/Release/*.dll"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/*.dll"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/Release/*.dll"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/*/Release/*.dll"
|
||||
)
|
||||
file(GLOB LIBS
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/*.lib"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/Release/*.lib"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/*/Release/*.lib"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/*.lib"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/Release/*.lib"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/*/Release/*.lib"
|
||||
)
|
||||
file(GLOB DEBUG_DLLS
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/*.dll"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/Debug/*.dll"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/*/Debug/*.dll"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/*.dll"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/Debug/*.dll"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/*/Debug/*.dll"
|
||||
)
|
||||
file(GLOB DEBUG_LIBS
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/*.lib"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/Debug/*.lib"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/*/Debug/*.lib"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/*.lib"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/Debug/*.lib"
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/*/Debug/*.lib"
|
||||
)
|
||||
file(GLOB HEADERS "${SOURCE_PATH}/*/*.h")
|
||||
if(DLLS)
|
||||
file(INSTALL ${DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
|
||||
file(INSTALL ${DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
|
||||
endif()
|
||||
file(INSTALL ${LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
||||
if(DEBUG_DLLS)
|
||||
file(INSTALL ${DEBUG_DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(INSTALL ${DEBUG_DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
endif()
|
||||
file(INSTALL ${DEBUG_LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
||||
file(INSTALL ${HEADERS} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
foreach(libname paho-mqtt3as-static paho-mqtt3cs-static paho-mqtt3a-static paho-mqtt3c-static)
|
||||
foreach(foldername "lib" "debug/lib")
|
||||
string(REPLACE "-static" "" outlibname ${libname})
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/${foldername}/${libname}.lib ${CURRENT_PACKAGES_DIR}/${foldername}/${outlibname}.lib)
|
||||
endforeach()
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/about.html DESTINATION ${CURRENT_PACKAGES_DIR}/share/paho-mqtt RENAME copyright)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
13
ports/paho-mqtt/remove_compiler_options.patch
Normal file
13
ports/paho-mqtt/remove_compiler_options.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git "a/CMakeLists.txt" "b/CMakeLists.txt"
|
||||
index 2feb580..796d08e 100644
|
||||
--- "a/CMakeLists.txt"
|
||||
+++ "b/CMakeLists.txt"
|
||||
@@ -55,7 +55,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
ENDIF()
|
||||
|
||||
IF(WIN32)
|
||||
- ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -DWIN32_LEAN_AND_MEAN -MD)
|
||||
+ ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -DWIN32_LEAN_AND_MEAN)
|
||||
ELSEIF(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
||||
ADD_DEFINITIONS(-DOSX)
|
||||
ENDIF()
|
3
ports/picosha2/CONTROL
Normal file
3
ports/picosha2/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: picosha2
|
||||
Version: 2017-09-01-c5ff159b6
|
||||
Description: PicoSHA2 - a C++ SHA256 hash generator
|
11
ports/picosha2/portfile.cmake
Normal file
11
ports/picosha2/portfile.cmake
Normal file
@ -0,0 +1,11 @@
|
||||
include(vcpkg_common_functions)
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO okdshin/PicoSHA2
|
||||
REF c5ff159b60a7755f5601a18cf9c25388ad25e0ef
|
||||
SHA512 8fa4045d73a921bbb9bf6de96e80272e1d54a52ddb8f7d05643785a3b582e8f7a069ccf901352af26db7788863717c0553f086f69578835d6a0512f0be04bae3
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/picosha2.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/picosha2 RENAME copyright)
|
43
ports/piex/CMakeLists.txt
Normal file
43
ports/piex/CMakeLists.txt
Normal file
@ -0,0 +1,43 @@
|
||||
cmake_minimum_required(VERSION 3.8.0)
|
||||
project(piex)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
include_directories(".")
|
||||
|
||||
add_library(binary_parse
|
||||
src/binary_parse/cached_paged_byte_array.cc
|
||||
src/binary_parse/range_checked_byte_ptr.cc
|
||||
)
|
||||
|
||||
add_library(image_type_recognition
|
||||
src/image_type_recognition/image_type_recognition_lite.cc
|
||||
)
|
||||
|
||||
target_link_libraries(image_type_recognition binary_parse)
|
||||
|
||||
add_library(tiff_directory
|
||||
src/tiff_directory/tiff_directory.cc
|
||||
)
|
||||
|
||||
target_link_libraries(tiff_directory binary_parse)
|
||||
|
||||
add_library(piex
|
||||
src/piex.cc
|
||||
src/tiff_parser.cc
|
||||
)
|
||||
|
||||
target_link_libraries(piex tiff_directory image_type_recognition binary_parse)
|
||||
|
||||
install(
|
||||
TARGETS piex
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES src/piex.h src/piex_types.h DESTINATION include/src)
|
||||
endif()
|
3
ports/piex/CONTROL
Normal file
3
ports/piex/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: piex
|
||||
Version: 2017-09-01-473434f2dd974978b
|
||||
Description: The Preview Image Extractor (PIEX) is designed to find and extract the largest
|
28
ports/piex/portfile.cmake
Normal file
28
ports/piex/portfile.cmake
Normal file
@ -0,0 +1,28 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(WARNING "Dynamic not supported building static")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO google/piex
|
||||
REF 473434f2dd974978b329faf5c87ae8aa09a2714d
|
||||
SHA512 cb4a4107eb5e880673accac0f19965f3318e5e4c2fc24724afef5d15eab40d5866e17eb1a23af3b06b729d0e898ed99a6407d1f3000e94e3bbd71e1952d19627
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG
|
||||
-DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/piex RENAME copyright)
|
@ -1,13 +0,0 @@
|
||||
diff --git a/src/google/protobuf/generated_message_util.h b/src/google/protobuf/generated_message_util.h
|
||||
index 4417446..a7154b4 100644
|
||||
--- a/src/google/protobuf/generated_message_util.h
|
||||
+++ b/src/google/protobuf/generated_message_util.h
|
||||
@@ -164,7 +164,7 @@ class ExplicitlyConstructed {
|
||||
|
||||
// Default empty string object. Don't use this directly. Instead, call
|
||||
// GetEmptyString() to get the reference.
|
||||
-extern ExplicitlyConstructed< ::std::string> fixed_address_empty_string;
|
||||
+LIBPROTOBUF_EXPORT extern ExplicitlyConstructed< ::std::string> fixed_address_empty_string;
|
||||
LIBPROTOBUF_EXPORT extern ProtobufOnceType empty_string_once_init_;
|
||||
LIBPROTOBUF_EXPORT void InitEmptyString();
|
||||
|
@ -1,14 +1,13 @@
|
||||
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
|
||||
index 7618ba21..bd92b09d 100644
|
||||
index 7618ba2..d282a60 100644
|
||||
--- a/cmake/CMakeLists.txt
|
||||
+++ b/cmake/CMakeLists.txt
|
||||
@@ -165,8 +165,11 @@ endif (protobuf_UNICODE)
|
||||
@@ -165,8 +165,10 @@ endif (protobuf_UNICODE)
|
||||
|
||||
include(libprotobuf-lite.cmake)
|
||||
include(libprotobuf.cmake)
|
||||
-include(libprotoc.cmake)
|
||||
-include(protoc.cmake)
|
||||
+
|
||||
+if(protobuf_BUILD_COMPILER)
|
||||
+ include(libprotoc.cmake)
|
||||
+ include(protoc.cmake)
|
||||
@ -16,18 +15,26 @@ index 7618ba21..bd92b09d 100644
|
||||
|
||||
if (protobuf_BUILD_TESTS)
|
||||
include(tests.cmake)
|
||||
|
||||
diff --git a/cmake/install.cmake b/cmake/install.cmake
|
||||
index 28dc90dc..52c1f721 100644
|
||||
index 441bf55..4158820 100644
|
||||
--- a/cmake/install.cmake
|
||||
+++ b/cmake/install.cmake
|
||||
@@ -1,9 +1,12 @@
|
||||
@@ -1,14 +1,17 @@
|
||||
include(GNUInstallDirs)
|
||||
|
||||
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/protobuf.pc.cmake
|
||||
+set(LIBRARIES_TO_SET_DEST libprotobuf-lite libprotobuf)
|
||||
+if(protobuf_BUILD_COMPILER)
|
||||
+ list(APPEND LIBRARIES_TO_SET_DEST libprotoc)
|
||||
+endif()
|
||||
+
|
||||
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libprotobuf.cmake
|
||||
${CMAKE_CURRENT_BINARY_DIR}/protobuf.pc @ONLY)
|
||||
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/protobuf-lite.pc.cmake
|
||||
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libprotobuf-lite.cmake
|
||||
${CMAKE_CURRENT_BINARY_DIR}/protobuf-lite.pc @ONLY)
|
||||
|
||||
foreach(_library
|
||||
- libprotobuf-lite
|
||||
- libprotobuf
|
||||
@ -36,7 +43,7 @@ index 28dc90dc..52c1f721 100644
|
||||
set_property(TARGET ${_library}
|
||||
PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
||||
$<BUILD_INTERFACE:${protobuf_source_dir}/src>
|
||||
@@ -14,8 +17,10 @@ foreach(_library
|
||||
@@ -19,8 +22,10 @@ foreach(_library
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT ${_library})
|
||||
endforeach()
|
||||
|
||||
@ -47,9 +54,9 @@ index 28dc90dc..52c1f721 100644
|
||||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc)
|
||||
+endif()
|
||||
|
||||
file(STRINGS extract_includes.bat.in _extract_strings
|
||||
REGEX "^copy")
|
||||
@@ -94,7 +99,12 @@ configure_file(protobuf-options.cmake
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/protobuf.pc ${CMAKE_CURRENT_BINARY_DIR}/protobuf-lite.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
||||
|
||||
@@ -101,7 +106,12 @@ configure_file(protobuf-options.cmake
|
||||
${CMAKE_INSTALL_CMAKEDIR}/protobuf-options.cmake @ONLY)
|
||||
|
||||
# Allows the build directory to be used as a find directory.
|
||||
|
@ -1,16 +1,16 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
set(PROTOBUF_VERSION 3.3.0)
|
||||
set(PROTOBUF_VERSION 3.4.0)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE_FILE
|
||||
URLS "https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/protobuf-cpp-${PROTOBUF_VERSION}.tar.gz"
|
||||
FILENAME "protobuf-cpp-${PROTOBUF_VERSION}.tar.gz"
|
||||
SHA512 ef01300bdda4a1a33a6056aea1d55e9d66ab1ca644aa2d9d5633cfc0bccfe4c24fdfa1015889b2c1c568e89ad053c701de1aca45196a6439130b7bb8f461595f
|
||||
SHA512 ce9bd9bc818c4a8e8b08c83e8a4eba6fca008a64a5ad9d322b19683b1de2b5fa622ed99093323f3c9d0820ef23430f7ee07f6930f7f877d334e5d36df9b0be0e
|
||||
)
|
||||
vcpkg_download_distfile(TOOL_ARCHIVE_FILE
|
||||
URLS "https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-win32.zip"
|
||||
FILENAME "protoc-${PROTOBUF_VERSION}-win32.zip"
|
||||
SHA512 9b4902b3187fb978a8153aaf050314a3ca9ca161b0712a3672ccdfabb7f5a57035e71c2dfde9a0b99f9417e159dcbdedaf9a2b1917d712dc3d9d554bba0d4ee8
|
||||
SHA512 b874c3f47b39ac78f5675e05220318683004a365c248bf47ba50d8c66c8ed7763432451bab30524e131e1185a2bdaa6e6071b389eb61ad58b1b95974cf39d41b
|
||||
)
|
||||
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/protobuf-${PROTOBUF_VERSION})
|
||||
@ -18,13 +18,10 @@ set(TOOL_PATH ${CURRENT_BUILDTREES_DIR}/src/protobuf-${PROTOBUF_VERSION}-win32)
|
||||
|
||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||
|
||||
# Patch to fix the missing export of fixed_address_empty_string,
|
||||
# see https://github.com/google/protobuf/pull/3216
|
||||
# Add a flag that can be set to disable the protobuf compiler
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/protobuf-${PROTOBUF_VERSION}
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/0001-fix-missing-export.patch"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/001-add-compiler-flag.patch"
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/001-add-compiler-flag.patch"
|
||||
)
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: shaderc
|
||||
Version: 2df47b51d83ad83cbc2e7f8ff2b56776293e8958-1
|
||||
Version: 12fb656ab20ea9aa06e7084a74e5ff832b7ce2da
|
||||
Description: A collection of tools, libraries and tests for shader compilation.
|
||||
Build-Depends: glslang, spirv-tools
|
||||
|
@ -7,35 +7,19 @@
|
||||
#
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
find_program(GIT git)
|
||||
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src)
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO google/shaderc
|
||||
REF 12fb656ab20ea9aa06e7084a74e5ff832b7ce2da
|
||||
SHA512 6fb45a0b01e6709c44a11658648b9271fe06bd94023dcc5042c47b5f2a04889c2efb0ab4c166f18728594ac9b9aa9f8b354af46d88eb7f7c39c7246f52f5a933
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
set(SHADERC_GIT_URL "https://github.com/google/shaderc.git")
|
||||
set(SHADERC_GIT_REF "2df47b51d83ad83cbc2e7f8ff2b56776293e8958")
|
||||
if(NOT EXISTS "${DOWNLOADS}/shaderc.git")
|
||||
message(STATUS "Cloning")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${GIT} clone --bare ${SHADERC_GIT_URL} ${DOWNLOADS}/shaderc.git
|
||||
WORKING_DIRECTORY ${DOWNLOADS}
|
||||
LOGNAME clone
|
||||
)
|
||||
endif()
|
||||
if(NOT EXISTS "${SOURCE_PATH}/.git")
|
||||
message(STATUS "Adding worktree and patching")
|
||||
file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR})
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${GIT} worktree add -f --detach ${SOURCE_PATH} ${SHADERC_GIT_REF}
|
||||
WORKING_DIRECTORY ${DOWNLOADS}/shaderc.git
|
||||
LOGNAME worktree
|
||||
)
|
||||
message(STATUS "Patching")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${GIT} apply ${CMAKE_CURRENT_LIST_DIR}/0001-Do-not-generate-build-version.inc.patch --ignore-whitespace --whitespace=fix
|
||||
WORKING_DIRECTORY ${SOURCE_PATH}
|
||||
LOGNAME patch
|
||||
)
|
||||
endif()
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/0001-Do-not-generate-build-version.inc.patch
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}/third_party/glslang)
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists_spirv.txt DESTINATION ${SOURCE_PATH}/third_party/spirv-tools)
|
||||
@ -69,10 +53,7 @@ file(COPY ${EXES} DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
|
||||
#Safe to remove as libs are static
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||
|
||||
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/include/shaderc.txt)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/shaderc)
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: spirv-tools
|
||||
Version: 1.1-f72189c249ba143c6a89a4cf1e7d53337b2ddd40
|
||||
Version: v2017.1-dev-7e2d26c77b606b21af839b37fd21381c4a669f23
|
||||
Description: API and commands for processing SPIR-V modules
|
||||
|
@ -1,68 +1,34 @@
|
||||
# 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)
|
||||
find_program(GIT git)
|
||||
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src)
|
||||
|
||||
set(GIT_URL "https://github.com/KhronosGroup/SPIRV-Tools.git")
|
||||
set(GIT_REF "f72189c249ba143c6a89a4cf1e7d53337b2ddd40")
|
||||
|
||||
if(NOT EXISTS "${DOWNLOADS}/spirv-tools.git")
|
||||
message(STATUS "Cloning")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${GIT} clone --bare ${GIT_URL} ${DOWNLOADS}/spirv-tools.git
|
||||
WORKING_DIRECTORY ${DOWNLOADS}
|
||||
LOGNAME clone
|
||||
)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(WARNING "Dynamic not supported. Building static")
|
||||
set(VCPKG_LIBRARY_LINKAGE "static")
|
||||
endif()
|
||||
|
||||
if(NOT EXISTS "${SOURCE_PATH}/.git")
|
||||
message(STATUS "Adding worktree and patching")
|
||||
file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR})
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${GIT} worktree add -f --detach ${SOURCE_PATH} ${GIT_REF}
|
||||
WORKING_DIRECTORY ${DOWNLOADS}/spirv-tools.git
|
||||
LOGNAME worktree
|
||||
)
|
||||
message(STATUS "Patching")
|
||||
endif()
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO KhronosGroup/SPIRV-Tools
|
||||
REF 7e2d26c77b606b21af839b37fd21381c4a669f23
|
||||
SHA512 67e8fcdcb9748df1e7c86bb50358a89b656f80a96534bc5771afc4ce22e9ebcc8ca382f784fab7b856324d487f810c21abaaab2facee7453c0343a9b51d7e60b
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
set(SPIRVHEADERS_GIT_URL "https://github.com/KhronosGroup/SPIRV-Headers.git")
|
||||
set(SPIRVHEADERS_GIT_REF "bd47a9abaefac00be692eae677daed1b977e625c")
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SPIRV_HEADERS_PATH
|
||||
REPO KhronosGroup/SPIRV-Headers
|
||||
REF 2bb92e6fe2c6aa410152fc6c63443f452acb1a65
|
||||
SHA512 cdd1437a67c7e31e2062e5d0f25c767b99a3fadd64b91d00c3b07404e535bb4bfd78a43878ebbcd45e013a7153f1a2c969da99d50a99cc39efab940d0aab7cfd
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
if(NOT EXISTS "${DOWNLOADS}/SPIRV-Headers.git")
|
||||
message(STATUS "Cloning")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${GIT} clone --bare ${SPIRVHEADERS_GIT_URL} ${DOWNLOADS}/SPIRV-Headers.git
|
||||
WORKING_DIRECTORY ${DOWNLOADS}
|
||||
LOGNAME clone
|
||||
)
|
||||
endif()
|
||||
|
||||
if(NOT EXISTS "${SOURCE_PATH}/external/spirv-headers/.git")
|
||||
message(STATUS "Adding worktree and patching")
|
||||
file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR})
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${GIT} worktree add -f --detach ${SOURCE_PATH}/external/spirv-headers ${SPIRVHEADERS_GIT_REF}
|
||||
WORKING_DIRECTORY ${DOWNLOADS}/SPIRV-Headers.git
|
||||
LOGNAME worktree
|
||||
)
|
||||
endif()
|
||||
|
||||
set(VCPKG_LIBRARY_LINKAGE "static")
|
||||
vcpkg_find_acquire_program(PYTHON3)
|
||||
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
|
||||
set(ENV{PATH} "$ENV{PATH};${PYTHON3_DIR}")
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/src"
|
||||
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
|
||||
# OPTIONS_RELEASE -DOPTIMIZE=1
|
||||
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS -DSPIRV-Headers_SOURCE_DIR=${SPIRV_HEADERS_PATH}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
4
ports/tesseract/CONTROL
Normal file
4
ports/tesseract/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: tesseract
|
||||
Version: 3.05.01
|
||||
Description: An OCR Engine that was developed at HP Labs between 1985 and 1995... and now at Google.
|
||||
Build-Depends: leptonica, icu
|
49
ports/tesseract/portfile.cmake
Normal file
49
ports/tesseract/portfile.cmake
Normal file
@ -0,0 +1,49 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(STATUS "Warning: Dynamic building not supported yet. Building static.")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO tesseract-ocr/tesseract
|
||||
REF 3.05.01
|
||||
SHA512 a49c20c98386684cd89582e57b772811204fad8e5ff18214fb0da109f73629c70845054985e31e8deeb49107fbcf56e546aff661f08eb5dd60fbf83dbe976e81
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/use-vcpkg-icu.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DSTATIC=ON
|
||||
-DUSE_SYSTEM_ICU=True
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH "cmake")
|
||||
|
||||
# Install tool
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/tesseract)
|
||||
file(COPY ${CURRENT_PACKAGES_DIR}/bin/tesseract.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools/tesseract)
|
||||
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/tesseract)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/tesseract)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/tesseract/LICENSE ${CURRENT_PACKAGES_DIR}/share/tesseract/copyright)
|
11
ports/tesseract/use-vcpkg-icu.patch
Normal file
11
ports/tesseract/use-vcpkg-icu.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/training/CMakeLists.txt Thu Aug 17 02:46:15 2017
|
||||
+++ b/training/CMakeLists.txt Thu Aug 17 02:46:15 2017
|
||||
@@ -11,7 +11,7 @@
|
||||
endif()
|
||||
|
||||
# experimental
|
||||
-if (MSVC AND NOT CPPAN_BUILD)
|
||||
+if (MSVC AND NOT CPPAN_BUILD AND NOT USE_SYSTEM_ICU)
|
||||
|
||||
include(CheckTypeSize)
|
||||
check_type_size("void *" SIZEOF_VOID_P)
|
25
ports/tinythread/CMakeLists.txt
Normal file
25
ports/tinythread/CMakeLists.txt
Normal file
@ -0,0 +1,25 @@
|
||||
cmake_minimum_required(VERSION 3.8.0)
|
||||
|
||||
project(tinythread)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
endif()
|
||||
|
||||
include_directories(source)
|
||||
|
||||
add_library(tinythread source/tinythread.cpp)
|
||||
|
||||
install(
|
||||
TARGETS tinythread
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES source/tinythread.h source/fast_mutex.h DESTINATION include)
|
||||
endif()
|
3
ports/tinythread/CONTROL
Normal file
3
ports/tinythread/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: tinythread
|
||||
Version: 1.1
|
||||
Description: Implements a fairly compatible subset of the C++11 thread management classes
|
21
ports/tinythread/portfile.cmake
Normal file
21
ports/tinythread/portfile.cmake
Normal file
@ -0,0 +1,21 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/src/TinyThread++-1.1")
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://tinythreadpp.bitsnbites.eu/files/TinyThread%2B%2B-1.1-src.tar.bz2"
|
||||
FILENAME "TinyThread++-1.1.tar.bz2"
|
||||
SHA512 407f54fcf3f68dd7fec25e9e0749a1803dffa5d52d606905155714d29f519b5eae64ff654b11768fecc32c0123a78c48be37c47993e0caf157a63349a2f869c6
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/README.txt" DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinythread RENAME copyright)
|
27
ports/tinyxml/0001_use_stl.patch
Normal file
27
ports/tinyxml/0001_use_stl.patch
Normal file
@ -0,0 +1,27 @@
|
||||
From 5ca492fee93015411a0f10e0b2f1d3503bf962a1 Mon Sep 17 00:00:00 2001
|
||||
From: Mikhail Paulyshka <me@mixaill.tk>
|
||||
Date: Sun, 3 Sep 2017 21:43:36 +0300
|
||||
Subject: [PATCH] enforce STL usage
|
||||
|
||||
---
|
||||
tinyxml.h | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/tinyxml.h b/tinyxml.h
|
||||
index a3589e5..7195033 100644
|
||||
--- a/tinyxml.h
|
||||
+++ b/tinyxml.h
|
||||
@@ -43,6 +43,10 @@ distribution.
|
||||
#define DEBUG
|
||||
#endif
|
||||
|
||||
+#ifndef TIXML_USE_STL
|
||||
+#define TIXML_USE_STL
|
||||
+#endif
|
||||
+
|
||||
#ifdef TIXML_USE_STL
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
--
|
||||
2.12.2.windows.2
|
||||
|
25
ports/tinyxml/CMakeLists.txt
Normal file
25
ports/tinyxml/CMakeLists.txt
Normal file
@ -0,0 +1,25 @@
|
||||
cmake_minimum_required(VERSION 3.4)
|
||||
project(tinyxml)
|
||||
|
||||
set(HEADERS "tinyxml.h")
|
||||
|
||||
set(SOURCES "tinyxml.cpp"
|
||||
"tinyxmlerror.cpp"
|
||||
"tinyxmlparser.cpp"
|
||||
)
|
||||
|
||||
option(BUILD_SHARED_LIBS "Build shared libs" OFF)
|
||||
|
||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
|
||||
add_library(tinyxml ${SOURCES})
|
||||
target_compile_definitions(tinyxml PRIVATE "-DTIXML_USE_STL")
|
||||
|
||||
install(
|
||||
TARGETS tinyxml
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
install(FILES ${HEADERS} DESTINATION include)
|
3
ports/tinyxml/CONTROL
Normal file
3
ports/tinyxml/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: tinyxml
|
||||
Version: 2.6.2-1
|
||||
Description: A simple, small, minimal, C++ XML parser that can be easily integrating into other programs.
|
20
ports/tinyxml/License.txt
Normal file
20
ports/tinyxml/License.txt
Normal file
@ -0,0 +1,20 @@
|
||||
TinyXML is released under the zlib license:
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any
|
||||
damages arising from the use of this software.
|
||||
|
||||
Permission is granted to anyone to use this software for any
|
||||
purpose, including commercial applications, and to alter it and
|
||||
redistribute it freely, subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must
|
||||
not claim that you wrote the original software. If you use this
|
||||
software in a product, an acknowledgment in the product documentation
|
||||
would be appreciated but is not required.
|
||||
|
||||
2. Altered source versions must be plainly marked as such, and
|
||||
must not be misrepresented as being the original software.
|
||||
|
||||
3. This notice may not be removed or altered from any source
|
||||
distribution.
|
30
ports/tinyxml/portfile.cmake
Normal file
30
ports/tinyxml/portfile.cmake
Normal file
@ -0,0 +1,30 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/tinyxml)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://sourceforge.net/projects/tinyxml/files/tinyxml/2.6.2/tinyxml_2_6_2.tar.gz"
|
||||
FILENAME "tinyxml_2_6_2.tar.gz"
|
||||
SHA512 133b5db06131a90ad0c2b39b0063f1c8e65e67288a7e5d67e1f7d9ba32af10dc5dfa0462f9723985ee27debe8f09a10a25d4b5a5aaff2ede979b1cebe8e59d56
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/0001_use_stl.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyxml RENAME copyright)
|
@ -1 +1 @@
|
||||
"0.0.85"
|
||||
"0.0.86"
|
@ -136,6 +136,11 @@ namespace vcpkg::Strings
|
||||
std::vector<std::string> split(const std::string& s, const std::string& delimiter)
|
||||
{
|
||||
std::vector<std::string> output;
|
||||
|
||||
if(delimiter.empty()){
|
||||
output.push_back(s);
|
||||
return output;
|
||||
}
|
||||
|
||||
size_t i = 0;
|
||||
for (size_t pos = s.find(delimiter); pos != std::string::npos; pos = s.find(delimiter, pos))
|
||||
|
Loading…
x
Reference in New Issue
Block a user