aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorFrederik Carlier <frederik.carlier@quamotion.mobi>2018-08-08 13:15:13 +0200
committerRobert Schumacher <roschuma@microsoft.com>2018-08-08 04:15:13 -0700
commitcc00cf05fb70ddec3197ca0ee7cbd47cc1c8ccfe (patch)
tree87b03f77c112390421318a4a5876f8c36cd93b58 /ports
parentc70e9d895f7f5a1467b5562274637dd24459bdd7 (diff)
downloadvcpkg-cc00cf05fb70ddec3197ca0ee7cbd47cc1c8ccfe.tar.gz
vcpkg-cc00cf05fb70ddec3197ca0ee7cbd47cc1c8ccfe.zip
New packages: libimobiledevice, getopt, readline (#3504)
* Add libplist * Add libusbmuxd * Fix typos * Add getopt * Add libimobiledevice * Fix typos * Add libideviceactivation * Add ideviceinstaller * Include utilities * Install usbmuxd * Add readline * Fix readline on 64-bit windows * Add libirecovery * libideviceactivation: include tools * Bump versions to fix build issues * Bump versions * Add idevicerestore * [getopt][getopt-win32] Rename to getopt-win32 and only install on Windows Desktop * [readline][readline-win32] Rename to readline-win32 and only install for Windows Desktop * [vcpkg_from_github][vcpkg_apply_patches] Make PATCHES relative to the current port directory * [vcpkg_install_msbuild][vcpkg_check_linkage] Introduce vcpkg_install_msbuild() and vcpkg_check_linkage(). * [libimobiledevice et al] Use vcpkg_from_github() and vcpkg_install_msbuild() * [readline] Fix static builds
Diffstat (limited to 'ports')
-rw-r--r--ports/getopt-win32/CONTROL3
-rw-r--r--ports/getopt-win32/portfile.cmake24
-rw-r--r--ports/getopt/CONTROL3
-rw-r--r--ports/getopt/portfile.cmake65
-rw-r--r--ports/ideviceinstaller/CONTROL4
-rw-r--r--ports/ideviceinstaller/portfile.cmake18
-rw-r--r--ports/idevicerestore/CONTROL4
-rw-r--r--ports/idevicerestore/portfile.cmake18
-rw-r--r--ports/libideviceactivation/CONTROL4
-rw-r--r--ports/libideviceactivation/portfile.cmake22
-rw-r--r--ports/libimobiledevice/CONTROL4
-rw-r--r--ports/libimobiledevice/portfile.cmake20
-rw-r--r--ports/libirecovery/CONTROL4
-rw-r--r--ports/libirecovery/portfile.cmake22
-rw-r--r--ports/libplist/CONTROL3
-rw-r--r--ports/libplist/dllexport.patch37
-rw-r--r--ports/libplist/portfile.cmake20
-rw-r--r--ports/libusbmuxd/CONTROL4
-rw-r--r--ports/libusbmuxd/dllexport.patch26
-rw-r--r--ports/libusbmuxd/portfile.cmake23
-rw-r--r--ports/libzip/CONTROL2
-rw-r--r--ports/libzip/LICENSE66
-rw-r--r--ports/libzip/portfile.cmake13
-rw-r--r--ports/readline-win32/CMakeLists.txt (renamed from ports/readline/CMakeLists.txt)15
-rw-r--r--ports/readline-win32/CONTROL3
-rw-r--r--ports/readline-win32/config.h (renamed from ports/readline/config.h)0
-rw-r--r--ports/readline-win32/portfile.cmake31
-rw-r--r--ports/readline/CONTROL5
-rw-r--r--ports/readline/portfile.cmake49
-rw-r--r--ports/usbmuxd/CONTROL4
-rw-r--r--ports/usbmuxd/portfile.cmake19
31 files changed, 337 insertions, 198 deletions
diff --git a/ports/getopt-win32/CONTROL b/ports/getopt-win32/CONTROL
new file mode 100644
index 000000000..d80fa0b00
--- /dev/null
+++ b/ports/getopt-win32/CONTROL
@@ -0,0 +1,3 @@
+Source: getopt-win32
+Version: 0.1
+Description: An implementation of getopt provided by https://github.com/libimobiledevice-win32
diff --git a/ports/getopt-win32/portfile.cmake b/ports/getopt-win32/portfile.cmake
new file mode 100644
index 000000000..50ffc2b88
--- /dev/null
+++ b/ports/getopt-win32/portfile.cmake
@@ -0,0 +1,24 @@
+include(vcpkg_common_functions)
+
+if(VCPKG_CMAKE_SYSTEM_NAME)
+ message(FATAL_ERROR "getopt-win32 only supports building on Windows Desktop")
+endif()
+
+vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO libimobiledevice-win32/getopt
+ REF 0.1
+ SHA512 40e2a901241a5d751cec741e5de423c8f19b105572c7cae18adb6e69be0b408efc6c9a2ecaeb62f117745eac0d093f30d6b91d88c1a27e1f7be91f0e84fdf199
+ HEAD_REF master
+)
+
+vcpkg_install_msbuild(
+ SOURCE_PATH ${SOURCE_PATH}
+ PROJECT_SUBPATH getopt.vcxproj
+ LICENSE_SUBPATH LICENSE
+)
+
+# Copy header
+file(COPY ${SOURCE_PATH}/getopt.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/)
diff --git a/ports/getopt/CONTROL b/ports/getopt/CONTROL
index ce6fbb776..bae137bbd 100644
--- a/ports/getopt/CONTROL
+++ b/ports/getopt/CONTROL
@@ -1,3 +1,4 @@
Source: getopt
-Version: 0.1
+Version: 0
Description: The getopt and getopt_long functions automate some of the chore involved in parsing typical unix command line options.
+Build-Depends: getopt-win32 (windows)
diff --git a/ports/getopt/portfile.cmake b/ports/getopt/portfile.cmake
index 681d37938..21d59ebcb 100644
--- a/ports/getopt/portfile.cmake
+++ b/ports/getopt/portfile.cmake
@@ -1,64 +1,5 @@
-# Common Ambient Variables:
-# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
-# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
-# CURRENT_PORT_DIR = ${VCPKG_ROOT_DIR}\ports\${PORT}
-# PORT = current port name (zlib, etc)
-# TARGET_TRIPLET = current triplet (x86-windows, x64-windows-static, etc)
-# VCPKG_CRT_LINKAGE = C runtime linkage type (static, dynamic)
-# VCPKG_LIBRARY_LINKAGE = target library linkage type (static, dynamic)
-# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
-# VCPKG_TARGET_ARCHITECTURE = target architecture (x64, x86, arm)
-#
-
-include(vcpkg_common_functions)
-set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/getopt-0.1)
-
-if(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
- set(MSBUILD_PLATFORM x64)
-else()
- set(MSBUILD_PLATFORM Win32)
+if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
+ message(FATAL_ERROR "No implementation of getopt is currently available for UWP targets")
endif()
-set(DEBUG_CONFIG Debug)
-set(RELEASE_CONFIG Release)
-
-vcpkg_download_distfile(ARCHIVE
- URLS "https://github.com/libimobiledevice-win32/getopt/archive/0.1.zip"
- FILENAME "getopt-0.1.zip"
- SHA512 7d9786222b6934b80ff2d03e20f211bf289e494ec388842b245f86a5c6bb3a403baba088ceb2e05a460c5523f63f4dd2dc6854a4cc50b1360f168b4f34573a3d
-)
-vcpkg_extract_source_archive(${ARCHIVE})
-
-vcpkg_build_msbuild(
- PROJECT_PATH ${SOURCE_PATH}/getopt.vcxproj
- DEBUG_CONFIGURATION ${DEBUG_CONFIG}
- RELEASE_CONFIGURATION ${RELEASE_CONFIG}
-)
-
-# Copy headers
-file(COPY ${SOURCE_PATH}/getopt.h
- DESTINATION ${CURRENT_PACKAGES_DIR}/include/)
-
-# Copy binary files
-file (MAKE_DIRECTORY
- ${CURRENT_PACKAGES_DIR}/bin
- ${CURRENT_PACKAGES_DIR}/debug/bin)
-file (MAKE_DIRECTORY
- ${CURRENT_PACKAGES_DIR}/lib
- ${CURRENT_PACKAGES_DIR}/debug/lib)
-
-file(COPY ${SOURCE_PATH}/${MSBUILD_PLATFORM}/${DEBUG_CONFIG}/getopt.dll
- DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
-file(COPY ${SOURCE_PATH}/${MSBUILD_PLATFORM}/${RELEASE_CONFIG}/getopt.dll
- DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
-file(COPY ${SOURCE_PATH}/${MSBUILD_PLATFORM}/${DEBUG_CONFIG}/getopt.lib
- DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
-file(COPY ${SOURCE_PATH}/${MSBUILD_PLATFORM}/${RELEASE_CONFIG}/getopt.lib
- DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
-file(COPY ${SOURCE_PATH}/${MSBUILD_PLATFORM}/${DEBUG_CONFIG}/getopt.pdb
- DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
-file(COPY ${SOURCE_PATH}/${MSBUILD_PLATFORM}/${RELEASE_CONFIG}/getopt.pdb
- DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
-
-# Handle copyright
-file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/getopt RENAME copyright)
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
diff --git a/ports/ideviceinstaller/CONTROL b/ports/ideviceinstaller/CONTROL
new file mode 100644
index 000000000..3697611a4
--- /dev/null
+++ b/ports/ideviceinstaller/CONTROL
@@ -0,0 +1,4 @@
+Source: ideviceinstaller
+Version: 1.1.2.23-1
+Description: Manage apps of iOS devices
+Build-Depends: libimobiledevice, libzip \ No newline at end of file
diff --git a/ports/ideviceinstaller/portfile.cmake b/ports/ideviceinstaller/portfile.cmake
new file mode 100644
index 000000000..ca6b79287
--- /dev/null
+++ b/ports/ideviceinstaller/portfile.cmake
@@ -0,0 +1,18 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO libimobiledevice-win32/ideviceinstaller
+ REF 1.1.2.23
+ SHA512 d0801b3a38eb02206a6f06e05cc19b794c69a87c06895165f64522c61e07030046499c5f0e436981682f9e17f91eae87913cca091e2e039a74ee35a5136100d4
+ HEAD_REF master
+)
+
+vcpkg_install_msbuild(
+ SOURCE_PATH ${SOURCE_PATH}
+ PROJECT_SUBPATH ideviceinstaller.vcxproj
+ LICENSE_SUBPATH COPYING
+ USE_VCPKG_INTEGRATION
+)
+
+set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
diff --git a/ports/idevicerestore/CONTROL b/ports/idevicerestore/CONTROL
new file mode 100644
index 000000000..dc781eb5c
--- /dev/null
+++ b/ports/idevicerestore/CONTROL
@@ -0,0 +1,4 @@
+Source: idevicerestore
+Version: 1.0.12-1
+Description: Restore/upgrade firmware of iOS devices
+Build-Depends: libimobiledevice, curl, libirecovery, libzip \ No newline at end of file
diff --git a/ports/idevicerestore/portfile.cmake b/ports/idevicerestore/portfile.cmake
new file mode 100644
index 000000000..81d302a40
--- /dev/null
+++ b/ports/idevicerestore/portfile.cmake
@@ -0,0 +1,18 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO libimobiledevice-win32/idevicerestore
+ REF 1.0.12
+ SHA512 ba623be56c2f37853516d7d4c32e16f1ec72f33d512f18aa812ce6830af4b9e389f7af5321888dd0ddd168e282b652e379b60f90970680e213eabf489f406915
+ HEAD_REF master
+)
+
+vcpkg_install_msbuild(
+ SOURCE_PATH ${SOURCE_PATH}
+ PROJECT_SUBPATH idevicerestore.vcxproj
+ LICENSE_SUBPATH COPYING
+ USE_VCPKG_INTEGRATION
+)
+
+set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
diff --git a/ports/libideviceactivation/CONTROL b/ports/libideviceactivation/CONTROL
new file mode 100644
index 000000000..2d5e23661
--- /dev/null
+++ b/ports/libideviceactivation/CONTROL
@@ -0,0 +1,4 @@
+Source: libideviceactivation
+Version: 1.0.38-1
+Description: A library to handle the activation process of iOS devices
+Build-Depends: libimobiledevice, libxml2, curl \ No newline at end of file
diff --git a/ports/libideviceactivation/portfile.cmake b/ports/libideviceactivation/portfile.cmake
new file mode 100644
index 000000000..117d8f472
--- /dev/null
+++ b/ports/libideviceactivation/portfile.cmake
@@ -0,0 +1,22 @@
+include(vcpkg_common_functions)
+
+vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO libimobiledevice-win32/libideviceactivation
+ REF 1.0.38
+ SHA512 2fd2d5636e83a6740251dca58c04429628f47661a56e573fc14f45ef68c54990717515305902cf04759a7c8fd19e66a30c8eb2ea20e6257d2c5405b690ea25a6
+ HEAD_REF master
+)
+
+vcpkg_install_msbuild(
+ SOURCE_PATH ${SOURCE_PATH}
+ PROJECT_SUBPATH libideviceactivation.sln
+ INCLUDES_SUBPATH include
+ LICENSE_SUBPATH COPYING
+ USE_VCPKG_INTEGRATION
+ ALLOW_ROOT_INCLUDES
+)
+
+file(REMOVE ${CURRENT_PACKAGES_DIR}/include/Makefile.am)
diff --git a/ports/libimobiledevice/CONTROL b/ports/libimobiledevice/CONTROL
new file mode 100644
index 000000000..b6d3c2960
--- /dev/null
+++ b/ports/libimobiledevice/CONTROL
@@ -0,0 +1,4 @@
+Source: libimobiledevice
+Version: 1.2.1.215-1
+Description: A cross-platform protocol library to communicate with iOS devices
+Build-Depends: libplist, libusbmuxd, openssl, dirent, getopt \ No newline at end of file
diff --git a/ports/libimobiledevice/portfile.cmake b/ports/libimobiledevice/portfile.cmake
new file mode 100644
index 000000000..c17e43de5
--- /dev/null
+++ b/ports/libimobiledevice/portfile.cmake
@@ -0,0 +1,20 @@
+include(vcpkg_common_functions)
+
+vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO libimobiledevice-win32/libimobiledevice
+ REF 1.2.1.215
+ SHA512 192ac12eb4fdf518a934cb8061d4a40e48f483e969e34167f2a5346efac1d745e4041eff84d7175d106b1a3b3f806d5e69643daa1459e48e69bc9c38d722be3c
+ HEAD_REF master
+)
+
+vcpkg_install_msbuild(
+ SOURCE_PATH ${SOURCE_PATH}
+ PROJECT_SUBPATH libimobiledevice.sln
+ INCLUDES_SUBPATH include
+ LICENSE_SUBPATH COPYING
+ REMOVE_ROOT_INCLUDES
+ USE_VCPKG_INTEGRATION
+)
diff --git a/ports/libirecovery/CONTROL b/ports/libirecovery/CONTROL
new file mode 100644
index 000000000..0916cd698
--- /dev/null
+++ b/ports/libirecovery/CONTROL
@@ -0,0 +1,4 @@
+Source: libirecovery
+Version: 1.0.25-1
+Description: Library and utility to talk to iBoot/iBSS via USB on Mac OS X, Windows, and Linux
+Build-Depends: libusbmuxd, readline \ No newline at end of file
diff --git a/ports/libirecovery/portfile.cmake b/ports/libirecovery/portfile.cmake
new file mode 100644
index 000000000..f03e7e44c
--- /dev/null
+++ b/ports/libirecovery/portfile.cmake
@@ -0,0 +1,22 @@
+include(vcpkg_common_functions)
+
+vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO libimobiledevice-win32/libirecovery
+ REF 1.0.25
+ SHA512 0dd91d4fe3ded2bc1bbd91aea964e31e7f59bce18be01aa096e974f37dc1be281644d6c44e3f9b49470dd961e3df2e3ff8a09bcc6b803a959073e7d7d9a8d3e7
+ HEAD_REF master
+)
+
+vcpkg_install_msbuild(
+ SOURCE_PATH ${SOURCE_PATH}
+ PROJECT_SUBPATH libirecovery.sln
+ INCLUDES_SUBPATH include
+ LICENSE_SUBPATH COPYING
+ USE_VCPKG_INTEGRATION
+ ALLOW_ROOT_INCLUDES
+)
+
+file(REMOVE ${CURRENT_PACKAGES_DIR}/include/Makefile.am)
diff --git a/ports/libplist/CONTROL b/ports/libplist/CONTROL
new file mode 100644
index 000000000..22e209d14
--- /dev/null
+++ b/ports/libplist/CONTROL
@@ -0,0 +1,3 @@
+Source: libplist
+Version: 2.0.1.197-1
+Description: A library to handle Apple Property List format in binary or XML
diff --git a/ports/libplist/dllexport.patch b/ports/libplist/dllexport.patch
new file mode 100644
index 000000000..f5e006210
--- /dev/null
+++ b/ports/libplist/dllexport.patch
@@ -0,0 +1,37 @@
+diff --git a/include/plist/plist.h b/include/plist/plist.h
+index 2863c74..9cdb219 100644
+--- a/include/plist/plist.h
++++ b/include/plist/plist.h
+@@ -42,7 +42,7 @@ extern "C"
+ #include <stdint.h>
+ #endif
+
+-#ifdef _MSC_VER
++#if defined(_MSC_VER) && defined(LIBPLIST_EXPORTS)
+ #define PLIST_API_MSC __declspec( dllexport )
+ #else
+ #define PLIST_API_MSC
+diff --git a/src/plist.h b/src/plist.h
+index 1e5d0d1..6690343 100644
+--- a/src/plist.h
++++ b/src/plist.h
+@@ -39,10 +39,7 @@
+ #include <sys/time.h>
+ #endif
+
+-#ifdef _MSC_VER
+- #define PLIST_API __declspec( dllexport )
+-#else
+-#ifdef WIN32
++#if (defined(_MSC_VER) || defined(WIN32)) && defined(LIBPLIST_EXPORTS)
+ #define PLIST_API __declspec( dllexport )
+ #else
+ #ifdef HAVE_FVISIBILITY
+@@ -51,7 +48,6 @@
+ #define PLIST_API
+ #endif
+ #endif
+-#endif
+
+ struct plist_data_s
+ {
diff --git a/ports/libplist/portfile.cmake b/ports/libplist/portfile.cmake
new file mode 100644
index 000000000..71e12fd4c
--- /dev/null
+++ b/ports/libplist/portfile.cmake
@@ -0,0 +1,20 @@
+include(vcpkg_common_functions)
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY ONLY_DYNAMIC_CRT)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO libimobiledevice-win32/libplist
+ REF 2.0.1.197
+ SHA512 55e1817c61d608b11646eb9c28c445f9ee801c7beb2121bd810235561117262adb73dbecb23b9ef5b0c54b0fc8089e0a46acc0e8f4845329a50a663ab004052c
+ HEAD_REF master
+ PATCHES dllexport.patch
+)
+
+vcpkg_install_msbuild(
+ SOURCE_PATH ${SOURCE_PATH}
+ PROJECT_SUBPATH libplist.sln
+ INCLUDES_SUBPATH include
+ LICENSE_SUBPATH COPYING.lesser
+ REMOVE_ROOT_INCLUDES
+)
diff --git a/ports/libusbmuxd/CONTROL b/ports/libusbmuxd/CONTROL
new file mode 100644
index 000000000..b93c9d379
--- /dev/null
+++ b/ports/libusbmuxd/CONTROL
@@ -0,0 +1,4 @@
+Source: libusbmuxd
+Version: 1.0.107-1
+Description: A client library to multiplex connections from and to iOS devices
+Build-Depends: libplist
diff --git a/ports/libusbmuxd/dllexport.patch b/ports/libusbmuxd/dllexport.patch
new file mode 100644
index 000000000..15996ec01
--- /dev/null
+++ b/ports/libusbmuxd/dllexport.patch
@@ -0,0 +1,26 @@
+diff --git a/include/usbmuxd.h b/include/usbmuxd.h
+index 5a3b0c0..aa1c8d9 100644
+--- a/include/usbmuxd.h
++++ b/include/usbmuxd.h
+@@ -24,7 +24,7 @@
+ #define USBMUXD_H
+ #include <stdint.h>
+
+-#ifdef _MSC_VER
++#if defined(_MSC_VER) && defined(USBMUXD_EXPORTS)
+ #define USBMUXD_API_MSC __declspec( dllexport )
+ #else
+ #ifdef HAVE_FVISIBILITY
+diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c
+index b94c83c..1902a55 100644
+--- a/src/libusbmuxd.c
++++ b/src/libusbmuxd.c
+@@ -34,7 +34,7 @@
+ #include <stdio.h>
+ #include <string.h>
+
+-#ifdef _MSC_VER
++#if defined(_MSC_VER) && defined(USBMUXD_EXPORTS)
+ #define USBMUXD_API __declspec( dllexport )
+ #else
+ #define USBMUXD_API
diff --git a/ports/libusbmuxd/portfile.cmake b/ports/libusbmuxd/portfile.cmake
new file mode 100644
index 000000000..b8eb19b2b
--- /dev/null
+++ b/ports/libusbmuxd/portfile.cmake
@@ -0,0 +1,23 @@
+include(vcpkg_common_functions)
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY ONLY_DYNAMIC_CRT)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO libimobiledevice-win32/libusbmuxd
+ REF 1.0.109
+ SHA512 104205ebcac96765f4bf0b42dbe5df084be4f87fc64454b4e02049fbd18caf9282d070f8949935977eda76fba68b6a909571afea58d4ad4091f02d0e6b7a08e0
+ HEAD_REF master
+ PATCHES dllexport.patch
+)
+
+vcpkg_install_msbuild(
+ SOURCE_PATH ${SOURCE_PATH}
+ PROJECT_SUBPATH libusbmuxd.sln
+ INCLUDES_SUBPATH include
+ LICENSE_SUBPATH COPYING
+ USE_VCPKG_INTEGRATION
+ ALLOW_ROOT_INCLUDES
+)
+
+file(REMOVE "${CURRENT_PACKAGES_DIR}/include/Makefile.am")
diff --git a/ports/libzip/CONTROL b/ports/libzip/CONTROL
index e82f0fee2..52681ed04 100644
--- a/ports/libzip/CONTROL
+++ b/ports/libzip/CONTROL
@@ -1,4 +1,4 @@
Source: libzip
-Version: rel-1-5-1
+Version: rel-1-5-1-vcpkg1
Build-Depends: zlib
Description: A library for reading, creating, and modifying zip archives.
diff --git a/ports/libzip/LICENSE b/ports/libzip/LICENSE
deleted file mode 100644
index 1c2e86bf2..000000000
--- a/ports/libzip/LICENSE
+++ /dev/null
@@ -1,66 +0,0 @@
-Copyright (C) 1999-2016 Dieter Baron and Thomas Klausner
-
-The authors can be contacted at <libzip@nih.at>
-
-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. The names of the authors may not be used to endorse or promote
- products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``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 AUTHORS 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.
-
-
-
-For AES encryption support, files under the following license are used:
-
----------------------------------------------------------------------------
-Copyright (c) 2002, Dr Brian Gladman < >, Worcester, UK.
-All rights reserved.
-
-LICENSE TERMS
-
-The free distribution and use of this software in both source and binary
-form is allowed (with or without changes) provided that:
-
- 1. distributions of this source code include the above copyright
- notice, this list of conditions and the following disclaimer;
-
- 2. distributions in binary form include the above copyright
- notice, this list of conditions and the following disclaimer
- in the documentation and/or other associated materials;
-
- 3. the copyright holder's name is not used to endorse products
- built using this software without specific written permission.
-
-ALTERNATIVELY, provided that this notice is retained in full, this product
-may be distributed under the terms of the GNU General Public License (GPL),
-in which case the provisions of the GPL apply INSTEAD OF those given above.
-
-DISCLAIMER
-
-This software is provided 'as is' with no explicit or implied warranties
-in respect of its properties, including, but not limited to, correctness
-and/or fitness for purpose.
----------------------------------------------------------------------------
-Issue Date: 18th November 2008
diff --git a/ports/libzip/portfile.cmake b/ports/libzip/portfile.cmake
index b509c5eb0..de7940b3a 100644
--- a/ports/libzip/portfile.cmake
+++ b/ports/libzip/portfile.cmake
@@ -4,13 +4,8 @@ vcpkg_from_github(
REPO nih-at/libzip
REF rel-1-5-1
SHA512 778f438f6354f030656baa5497b3154ad8fb764011d2a6925136f32e06dc0dcd1ed93fe05dbf7be619004a68cdabe5e34a83b988c1501ed67e9cfa4fa540350f
-)
-
-# Patch cmake and configuration to allow static builds
-vcpkg_apply_patches(
- SOURCE_PATH ${SOURCE_PATH}
- PATCHES
- "${CMAKE_CURRENT_LIST_DIR}/cmake_dont_build_more_than_needed.patch"
+ HEAD_REF master
+ PATCHES cmake_dont_build_more_than_needed.patch
)
vcpkg_configure_cmake(
@@ -20,13 +15,13 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
-# Move zipconf.h to include and remove include directories from lib
+# Remove include directories from lib
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/libzip ${CURRENT_PACKAGES_DIR}/debug/lib/libzip)
# Remove debug include
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Copy copright information
-file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libzip RENAME copyright)
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libzip RENAME copyright)
vcpkg_copy_pdbs()
diff --git a/ports/readline/CMakeLists.txt b/ports/readline-win32/CMakeLists.txt
index 7a2e403da..ac062d0dc 100644
--- a/ports/readline/CMakeLists.txt
+++ b/ports/readline-win32/CMakeLists.txt
@@ -1,23 +1,16 @@
cmake_minimum_required(VERSION 3.0)
project(readline C)
-if(CMAKE_BUILD_TYPE STREQUAL Debug)
- set(LIB_SUFFIX d)
-endif()
-
add_definitions(-DREADLINE_LIBRARY)
-add_definitions(-DBUILD_READLINE_DLL)
add_definitions(-DHAVE_CONFIG_H)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
-if(CMAKE_BUILD_TYPE STREQUAL Debug)
- add_definitions(-D_DEBUG)
+if(BUILD_SHARED_LIBS)
+ add_definitions(-DBUILD_READLINE_DLL)
+else()
+ add_definitions(-DREADLINE_STATIC)
endif()
-add_definitions(-D_WINDOWS)
-add_definitions(-D_USRDLL)
-add_definitions(-DREADLINE_EXPORTS)
-
include_directories(
${CMAKE_CURRENT_SOURCE_DIR} # thats where the config.h is located
)
diff --git a/ports/readline-win32/CONTROL b/ports/readline-win32/CONTROL
new file mode 100644
index 000000000..d04614bac
--- /dev/null
+++ b/ports/readline-win32/CONTROL
@@ -0,0 +1,3 @@
+Source: readline-win32
+Version: 5.0-2
+Description: Implementation of readline for Windows Desktop provided by https://github.com/lltcggie \ No newline at end of file
diff --git a/ports/readline/config.h b/ports/readline-win32/config.h
index de0a352fe..de0a352fe 100644
--- a/ports/readline/config.h
+++ b/ports/readline-win32/config.h
diff --git a/ports/readline-win32/portfile.cmake b/ports/readline-win32/portfile.cmake
new file mode 100644
index 000000000..51ad377e7
--- /dev/null
+++ b/ports/readline-win32/portfile.cmake
@@ -0,0 +1,31 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO lltcggie/readline
+ REF ea414b4e98475e3976198738061824e8a8379a50
+ SHA512 82d54ab3e19fb2673fe97eff07117d36704791669baa283ec737c704635f872e4c7cd30485a6648d445cb2912e4364286e664e9425444f456a4c862b9e4de843
+ HEAD_REF master
+)
+
+set(SOURCE_PATH "${SOURCE_PATH}/src/readline/5.0/readline-5.0-src")
+
+file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
+file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h DESTINATION ${SOURCE_PATH})
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+# Copy headers
+file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include/readline)
+file(GLOB headers "${SOURCE_PATH}/*.h")
+file(COPY ${headers} DESTINATION ${CURRENT_PACKAGES_DIR}/include/readline)
+
+vcpkg_copy_pdbs()
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/readline/CONTROL b/ports/readline/CONTROL
index 669e1da12..4fdb10939 100644
--- a/ports/readline/CONTROL
+++ b/ports/readline/CONTROL
@@ -1,3 +1,4 @@
Source: readline
-Version: 5.0-1
-Description: GNU readline \ No newline at end of file
+Version: 0
+Description: GNU readline and history libraries
+Build-Depends: readline-win32 (windows)
diff --git a/ports/readline/portfile.cmake b/ports/readline/portfile.cmake
index 24114c059..45db4f37a 100644
--- a/ports/readline/portfile.cmake
+++ b/ports/readline/portfile.cmake
@@ -1,48 +1,5 @@
-# Common Ambient Variables:
-# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
-# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
-# CURRENT_PORT_DIR = ${VCPKG_ROOT_DIR}\ports\${PORT}
-# PORT = current port name (zlib, etc)
-# TARGET_TRIPLET = current triplet (x86-windows, x64-windows-static, etc)
-# VCPKG_CRT_LINKAGE = C runtime linkage type (static, dynamic)
-# VCPKG_LIBRARY_LINKAGE = target library linkage type (static, dynamic)
-# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
-# VCPKG_TARGET_ARCHITECTURE = target architecture (x64, x86, arm)
-#
-
-include(vcpkg_common_functions)
-set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/readline-vs/src/readline/5.0/readline-5.0-src)
-
-vcpkg_download_distfile(ARCHIVE
- URLS "https://github.com/lltcggie/readline/archive/vs.zip"
- FILENAME "readline-5.0-1-src.zip"
- SHA512 c67908b9c868aa611a48dfc4db43718169cbdc6784107beb22cd1a4d28f0c4aa88f30cae0839a530c481c74173e1d7a2bf0000596099ed9b940c05c9dc7d5ebc
-)
-
-vcpkg_extract_source_archive(${ARCHIVE})
-
-file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
-file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h DESTINATION ${SOURCE_PATH})
-
-if(VCPKG_CRT_LINKAGE STREQUAL static)
- set(LIBVPX_CRT_LINKAGE --enable-static-msvcrt)
- set(LIBVPX_CRT_SUFFIX mt)
-else()
- set(LIBVPX_CRT_SUFFIX md)
+if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
+ message(FATAL_ERROR "No implementation of readline is currently available for UWP targets")
endif()
-vcpkg_configure_cmake(
- SOURCE_PATH ${SOURCE_PATH}
- PREFER_NINJA)
-
-vcpkg_install_cmake()
-
-# Copy headers
-file (MAKE_DIRECTORY
- ${CURRENT_PACKAGES_DIR}/include/readline)
-
-file(GLOB headers "${SOURCE_PATH}/*.h")
-file(COPY ${headers} DESTINATION ${CURRENT_PACKAGES_DIR}/include/readline)
-
-# Handle copyright
-file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/readline RENAME copyright)
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
diff --git a/ports/usbmuxd/CONTROL b/ports/usbmuxd/CONTROL
new file mode 100644
index 000000000..6d7978bad
--- /dev/null
+++ b/ports/usbmuxd/CONTROL
@@ -0,0 +1,4 @@
+Source: usbmuxd
+Version: 1.1.1.133-1
+Description: A socket daemon to multiplex connections from and to iOS devices
+Build-Depends: libimobiledevice, libusb, libusb-win32, pthreads \ No newline at end of file
diff --git a/ports/usbmuxd/portfile.cmake b/ports/usbmuxd/portfile.cmake
new file mode 100644
index 000000000..56066e19e
--- /dev/null
+++ b/ports/usbmuxd/portfile.cmake
@@ -0,0 +1,19 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO libimobiledevice-win32/usbmuxd
+ REF 1.1.1.133
+ SHA512 1a5f9abc239deeb15e2aab419ba9e88ef41ffa80396546fb65bc06b0f419cbabc80cdf95995caf71d5628d1537fb0329a73d923202e91ea43fcc7c32b840d047
+ HEAD_REF master
+)
+
+vcpkg_install_msbuild(
+ SOURCE_PATH ${SOURCE_PATH}
+ PROJECT_SUBPATH usbmuxd.vcxproj
+ LICENSE_SUBPATH COPYING.GPLv2
+ USE_VCPKG_INTEGRATION
+)
+
+# No headers
+set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)