aboutsummaryrefslogtreecommitdiff
path: root/ports/getopt-win32
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/getopt-win32
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/getopt-win32')
-rw-r--r--ports/getopt-win32/CONTROL3
-rw-r--r--ports/getopt-win32/portfile.cmake24
2 files changed, 27 insertions, 0 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/)