aboutsummaryrefslogtreecommitdiff
path: root/ports/libplist
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/libplist
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/libplist')
-rw-r--r--ports/libplist/CONTROL3
-rw-r--r--ports/libplist/dllexport.patch37
-rw-r--r--ports/libplist/portfile.cmake20
3 files changed, 60 insertions, 0 deletions
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
+)