aboutsummaryrefslogtreecommitdiff
path: root/ports/libusbmuxd
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/libusbmuxd
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/libusbmuxd')
-rw-r--r--ports/libusbmuxd/CONTROL4
-rw-r--r--ports/libusbmuxd/dllexport.patch26
-rw-r--r--ports/libusbmuxd/portfile.cmake23
3 files changed, 53 insertions, 0 deletions
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")