Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Microsoft/vcpkg into dev/…
Browse files Browse the repository at this point in the history
…viromer/5275
  • Loading branch information
vicroms committed Feb 1, 2019
2 parents d794155 + 52390cf commit 0a35e14
Show file tree
Hide file tree
Showing 51 changed files with 512 additions and 152 deletions.
3 changes: 3 additions & 0 deletions ports/argh/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Source: argh
Version: 2018-12-18
Description: Argh! A minimalist argument handler.
36 changes: 36 additions & 0 deletions ports/argh/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# header-only library

include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO adishavit/argh
REF a1edee559757e076e570b8f6c2f555d8d00b373c
SHA512 a100c7ff20ef9ed39d53efeac5507a6ed59fb99ccba36ac4b5f8f5aaac6782f8e951b2f26b9b50f6c6fdbc53b5bceaabbb9dd9b9539f968fc1037733342e17a6
HEAD_REF master
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_TESTS=OFF
-DBUILD_EXAMPLES=OFF
)

vcpkg_install_cmake()

if(EXISTS ${CURRENT_PACKAGES_DIR}/CMake)
vcpkg_fixup_cmake_targets(CONFIG_PATH CMake)
elseif(EXISTS ${CURRENT_PACKAGES_DIR}/lib/cmake/${PORT})
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
endif()

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
file(REMOVE ${CURRENT_PACKAGES_DIR}/README.md)

# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)

# CMake integration test
vcpkg_test_cmake(PACKAGE_NAME ${PORT})
2 changes: 1 addition & 1 deletion ports/azure-c-shared-utility/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: azure-c-shared-utility
Version: 1.1.11-3
Version: 1.1.11-4
Description: Azure C SDKs common code
Build-Depends: curl (linux), openssl (linux)

Expand Down
10 changes: 5 additions & 5 deletions ports/azure-c-shared-utility/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ if("public-preview" IN_LIST FEATURES)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-c-shared-utility
REF e885482ce32f1f77d29e85f7b8d35d74ffc69c74
SHA512 329101cb2ff499aa16e1df736285e2fdd8c34549d4790eaafa1df763950c2b4a5927f52e93dbf22192b240fe0445050ad99133df0405227ffe9857ff2b25014d
HEAD_REF public-preview
REF 773980d7882e4d5f1e7c9be2a0797d61fbc19da1
SHA512 fa374db336f5d186bcfd6ba70660167fdc87a1847376579cee894af3d2810aba097b3468e75c0b4213b68423cc07215032eeae6ee07590378237606112286ac4
HEAD_REF master
PATCHES no-double-expand-cmake.patch
)
else()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-c-shared-utility
REF 1d622902d7842f94193fc394987f2b4e978bb700
SHA512 e7b3671955aeefe8e748bc68dd9f914fbb86c9cf325606691efc332cffa0d80b61f87d5f5c1026676c35fd1c5e88f22ca60f2e811c351aeba659f810fdc52e84
REF 773980d7882e4d5f1e7c9be2a0797d61fbc19da1
SHA512 fa374db336f5d186bcfd6ba70660167fdc87a1847376579cee894af3d2810aba097b3468e75c0b4213b68423cc07215032eeae6ee07590378237606112286ac4
HEAD_REF master
PATCHES no-double-expand-cmake.patch
)
Expand Down
2 changes: 1 addition & 1 deletion ports/azure-iot-sdk-c/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: azure-iot-sdk-c
Version: 1.2.12-1
Version: 1.2.13-1
Build-Depends: azure-uamqp-c, azure-umqtt-c, azure-c-shared-utility, parson
Description: A C99 SDK for connecting devices to Microsoft Azure IoT services

Expand Down
8 changes: 4 additions & 4 deletions ports/azure-iot-sdk-c/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ if("public-preview" IN_LIST FEATURES)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-iot-sdk-c
REF 74b03316ec90f1602c20ebeab67a3b4a61065d8e
SHA512 78ab8d7cd6e25886e41f98500cb8cd9609ca677426a882ed0364a908e5267ec6191bb15fd65fb2c420a108df41f52a8ba6d5e6d626874bbfae4f56e8af5ca428
REF 6633c5b18710febf1af7713cf1a336fd38f623ed
SHA512 17787aa4ef52d4cf39f939fee05555fcef85cde63620036f6715b699902fd3fd766250c26ea6065f5f36572ac2b9d5293e79ba17ea9d8f4cbce267322269e7e4
HEAD_REF public-preview
PATCHES improve-external-deps.patch
)
else()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-iot-sdk-c
REF 350b51f5abaedc975dae5419ad1fa4add7635fd2
SHA512 7559768f7d1c67f6b28d16871c3c783e9f88d9dc4f9051a7a3c0329311d39821301edf64fcbde15a8e904c6d5a6326feee25be8e46cb657c21455ae920b266eb
REF 738f160116a689566f6f20e0200a0c3c86e85dee
SHA512 e697fcefaae938c66e6cca5b35b6924bff76f6b147afeffe45acff63aa6e6ed99da53450fc2a1e80700f44928ce3cd3a3e6d3ce72f96a1b22a74557828be1cbc
HEAD_REF master
PATCHES improve-external-deps.patch
)
Expand Down
2 changes: 1 addition & 1 deletion ports/azure-uamqp-c/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: azure-uamqp-c
Version: 1.2.11-2
Version: 1.2.11-3
Build-Depends: azure-c-shared-utility
Description: AMQP library for C

Expand Down
10 changes: 5 additions & 5 deletions ports/azure-uamqp-c/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ if("public-preview" IN_LIST FEATURES)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-uamqp-c
REF bd7b85d0830634e3157da2411a6d060bf28f266e
SHA512 cbc2aa2765242ebe1a5e194e126f419cbd26edda5c1f72ffe9219a6c38b80aa91ef823a4fd8f78ac5d7ae0d9d471b50e5b8c4684e77c71b31e7cf35802e0cc17
HEAD_REF public-preview
REF 195f2480f31e0a9492e3ff3a7a1eed4a69205ddd
SHA512 fa2cab67d119018b7e28dd002641bc3e87ac2d45ecddeddb867135bac6e5eda02588f84c26283947bdc47789c90a3f9e04dab16e5eb9be8a384ef5c9bcf39572
HEAD_REF master
)
else()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-uamqp-c
REF f29401ab5eb3853390d5f573d8fb37c0c96dba16
SHA512 8fdee32e2a85218257ee91754873f9f8ae5e16cd2b7b10c88ab6d4115fe4378a2b08f211d8307346b0bd7688c4c896c25a4de34e9231c2506819a97bbf46dd73
REF 195f2480f31e0a9492e3ff3a7a1eed4a69205ddd
SHA512 fa2cab67d119018b7e28dd002641bc3e87ac2d45ecddeddb867135bac6e5eda02588f84c26283947bdc47789c90a3f9e04dab16e5eb9be8a384ef5c9bcf39572
HEAD_REF master
)
endif()
Expand Down
2 changes: 1 addition & 1 deletion ports/azure-uhttp-c/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: azure-uhttp-c
Version: 1.1.11-2
Version: 1.1.11-3
Build-Depends: azure-c-shared-utility
Description: Azure HTTP Library written in C

Expand Down
10 changes: 5 additions & 5 deletions ports/azure-uhttp-c/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ if("public-preview" IN_LIST FEATURES)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-uhttp-c
REF e459385a811ce075f42aa7202db96ba1d1f55ac1
SHA512 b96382184893b49f30ad75d4c19eeb48f7a7823e9d48f2896ee4760be20f2f5b5ee3e78e39f10ae26363165360e5871c3ba82aa9edf3943b9f0ef9c0e3036ea6
HEAD_REF public-preview
REF 3a81e598caf2bd37077b7cd20bb45aaa9e694df7
SHA512 6f12efdd2f02adb2414e10daa0604f5351f7731b997d69a9ca2923b6246c7a628bd859c6dca2503e51eeece851421b7739ffbf31a3f3d34dca4dcbadb54411d2
HEAD_REF master
)
else()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-uhttp-c
REF 647ec7cc75961cd7ff7cbb7eca30e1de819802ed
SHA512 1768ea978ab7fa328b74444573c3d1eb2a5fae1e36dbe1dcc186df3e2ab2a0a3b1ba8a434934462184582525b3a1850fc04ca2927f95f0df0ae483f8a1673e30
REF 3a81e598caf2bd37077b7cd20bb45aaa9e694df7
SHA512 6f12efdd2f02adb2414e10daa0604f5351f7731b997d69a9ca2923b6246c7a628bd859c6dca2503e51eeece851421b7739ffbf31a3f3d34dca4dcbadb54411d2
HEAD_REF master
)
endif()
Expand Down
2 changes: 1 addition & 1 deletion ports/azure-umqtt-c/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: azure-umqtt-c
Version: 1.1.11-2
Version: 1.1.11-3
Build-Depends: azure-c-shared-utility
Description: General purpose library for communication over the mqtt protocol

Expand Down
10 changes: 5 additions & 5 deletions ports/azure-umqtt-c/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ if("public-preview" IN_LIST FEATURES)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-umqtt-c
REF 1b3a25f4f7f0edbe068e261e8a808d7bc394a358
SHA512 00ff90eccfbb4febded7e819baa6303e97d3e7d6f6f8f1a28ebf353d7ad7ac5ec7f479e66456f395c7ece7fd6d612f3948ac656420bc0bc75566bdbb65fb88c3
HEAD_REF public-preview
REF f68e8d535d18028e3e6ed4d806ce8994037a49fa
SHA512 9bea4c3dbd26f5221c4da782954a4e8b4d372aca75b71a9eb63b818f31f153e4be534a20960c007c3aa184766f2a826c5ba11e780e23098707419ab39f055cc1
HEAD_REF master
)
else()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-umqtt-c
REF 3205eb26401e9c6639100934e8fb75b75275760d
SHA512 002c0d4f0373faeb7171465afce268f18b52d80ec057af36c81dd807de8ccf2bf1a46ef00c7f8e8fcdbef8d7f5c36616a304007c98ea5700c5f662b4c8868c2c
REF f68e8d535d18028e3e6ed4d806ce8994037a49fa
SHA512 9bea4c3dbd26f5221c4da782954a4e8b4d372aca75b71a9eb63b818f31f153e4be534a20960c007c3aa184766f2a826c5ba11e780e23098707419ab39f055cc1
HEAD_REF master
)
endif()
Expand Down
5 changes: 0 additions & 5 deletions ports/gdal/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ Source: gdal
Version: 2.4.0
Description: The Geographic Data Abstraction Library for reading and writing geospatial raster and vector data.
Build-Depends: proj, libpng, geos, sqlite3, curl, expat, libpq, openjpeg, libwebp, libxml2, liblzma
Default-Features: mysql-libmysql

Feature: mysql-libmysql
Build-Depends: libmysql
Description: Add mysql support using libmysql

Feature: mysql-libmariadb
Build-Depends: libmariadb
Expand Down
2 changes: 1 addition & 1 deletion ports/json-spirit/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source: json-spirit
Version: 4.1.0
Version: 4.1.0-1
Description: json parser using boost library
Build-Depends: boost-config, boost-integer, boost-smart-ptr, boost-variant, boost-spirit
15 changes: 15 additions & 0 deletions ports/json-spirit/Fix-link-error-C1128.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 24b1caf..2aac0b0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,7 +60,9 @@ endif()

message(${CMAKE_INSTALL_INCLUDEDIR})

-
+if(MSVC)
+add_definitions(/bigobj)
+endif()
set(CPACK_PACKAGE_VERSION_MAJOR 4)
set(CPACK_PACKAGE_VERSION_MINOR 0)
set(CPACK_PACKAGE_VERSION_PATCH 8)
8 changes: 3 additions & 5 deletions ports/json-spirit/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ vcpkg_from_github(
REF 5e16cca59b31d8beda0f07e3917ce11dcd43b3db
SHA512 6ac0f15726391c9003e516213535c8d30e98b6c33bca0b03e9bf38e7085824bfc6cfaab267b1dfccbfcc567638d26f722d7e331f4e3b60d3acd5c717cb1fafcc
HEAD_REF master
)

vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
PATCHES ${CMAKE_CURRENT_LIST_DIR}/dll-wins.patch
PATCHES
dll-wins.patch
Fix-link-error-C1128.patch
)

vcpkg_configure_cmake(
Expand Down
2 changes: 1 addition & 1 deletion ports/jxrlib/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: jxrlib
Version: 1.1-4
Version: 1.1-5
Description: Open source implementation of the jpegxr image format standard.
28 changes: 28 additions & 0 deletions ports/jxrlib/FindJXR.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# - Find JXR
# Find the JXR library
# This module defines
# JXR_INCLUDE_DIRS, where to find jxrlib/JXRGlue.h
# JXR_LIBRARIES, the libraries needed to use JXR
#

find_path(JXR_INCLUDE_DIRS
NAMES JXRGlue.h
PATH_SUFFIXES jxrlib
)
mark_as_advanced(JXR_INCLUDE_DIRS)

include(SelectLibraryConfigurations)

find_library(JPEGXR_LIBRARY_RELEASE NAMES jpegxr PATH_SUFFIXES lib)
find_library(JPEGXR_LIBRARY_DEBUG NAMES jpegxrd PATH_SUFFIXES lib)
select_library_configurations(JPEGXR)

find_library(JXRGLUE_LIBRARY_RELEASE NAMES jxrglue PATH_SUFFIXES lib)
find_library(JXRGLUE_LIBRARY_DEBUG NAMES jxrglued PATH_SUFFIXES lib)
select_library_configurations(JXRGLUE)

set(JXR_LIBRARIES ${JPEGXR_LIBRARY} ${JXRGLUE_LIBRARY})
mark_as_advanced(JXR_LIBRARIES)

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(JXR DEFAULT_MSG JXR_INCLUDE_DIRS JXR_LIBRARIES)
3 changes: 3 additions & 0 deletions ports/jxrlib/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/jxrlib)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/jxrlib/LICENSE ${CURRENT_PACKAGES_DIR}/share/jxrlib/copyright)

#install FindJXR.cmake file
file(COPY ${CMAKE_CURRENT_LIST_DIR}/FindJXR.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/JXR)

vcpkg_copy_pdbs()
14 changes: 14 additions & 0 deletions ports/libass/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.9)
project(libass C CXX)

set(LIBASS_VERSION 0.14.0)

configure_file (${CMAKE_CURRENT_SOURCE_DIR}/config.h.in config.h)

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
Expand Down Expand Up @@ -47,3 +49,15 @@ install(TARGETS ass
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)

# pkgconfig file
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix ${CMAKE_INSTALL_PREFIX})
set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
set(includedir ${CMAKE_INSTALL_PREFIX}/include)
set(PACKAGE_VERSION ${LIBASS_VERSION})
set(PKG_REQUIRES_PRIVATE "harfbuzz >= 0.9.5, fribidi >= 0.19.0, freetype2 >= 9.10.3")
set(PKG_LIBS_PRIVATE -lm)
configure_file(libass.pc.in libass.pc @ONLY)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/libass.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
47 changes: 47 additions & 0 deletions ports/libodb-boost/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
cmake_minimum_required(VERSION 3.0)
project(libodb-boost VERSION 2.4.0 LANGUAGES CXX)
find_package(odb 2.4.0 REQUIRED COMPONENTS libodb)
configure_file(config.unix.h.in
${CMAKE_CURRENT_SOURCE_DIR}/odb/boost/details/config.h COPYONLY)

# FIXME: should we require boost? which packages?
# find_package(PostgreSQL REQUIRED)
set(LIBODB_INSTALL_HEADERS ON CACHE BOOL "Install the header files (a debug install)")
file(GLOB_RECURSE libodb_src LIST_DIRECTORIES False
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
*.cxx)
add_library(libodb-boost ${libodb_src})
target_include_directories(libodb-boost
PUBLIC
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>

)

target_link_libraries(libodb-boost PRIVATE odb::libodb)
if(BUILD_SHARED_LIBS)
target_compile_definitions(libodb-boost PRIVATE
-DLIBODB_BOOST_DYNAMIC_LIB)
else()
target_compile_definitions(libodb-boost PRIVATE
-DLIBODB_BOOST_STATIC_LIB)
endif()
install(TARGETS libodb-boost EXPORT odb_boostConfig
COMPONENT boost
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)
if(LIBODB_INSTALL_HEADERS)
install(DIRECTORY odb DESTINATION include/
COMPONENT sqlite
FILES_MATCHING
PATTERN "*.h"
PATTERN "*.hxx"
PATTERN "*.ixx"
PATTERN "*.txx"
PATTERN "*.options"
)
endif()
install(EXPORT odb_boostConfig NAMESPACE odb:: COMPONENT boost DESTINATION share/odb)
export(TARGETS libodb-boost NAMESPACE odb:: FILE odb_boostConfig.cmake)
4 changes: 4 additions & 0 deletions ports/libodb-boost/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Source: libodb-boost
Version: 2.4.0-1
Description: Description: Boost support for the ODB ORM library
Build-Depends: libodb
14 changes: 14 additions & 0 deletions ports/libodb-boost/config.unix.h.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* odb/boost/details/config.h. Generated from config.h.in by configure. */
/* file : odb/boost/details/config.h.in
* copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
* license : GNU GPL v2; see accompanying LICENSE file
*/

/* This file is automatically processed by configure. */

#ifndef ODB_BOOST_DETAILS_CONFIG_H
#define ODB_BOOST_DETAILS_CONFIG_H

/* #undef LIBODB_BOOST_STATIC_LIB */

#endif /* ODB_BOOST_DETAILS_CONFIG_H */
Loading

0 comments on commit 0a35e14

Please sign in to comment.