diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2020-01-10 15:48:44 -0800 |
|---|---|---|
| committer | dan-shaw <51385773+dan-shaw@users.noreply.github.com> | 2020-01-10 15:48:44 -0800 |
| commit | 1990d4b72c58c2ada5f0b7b28478d214fb3205da (patch) | |
| tree | f5441711f06e97d651df5af39845b7dddc036bc0 /ports | |
| parent | ef0e8780ef5dd0b2c79a22b5f8efdb189a5f9e25 (diff) | |
| download | vcpkg-1990d4b72c58c2ada5f0b7b28478d214fb3205da.tar.gz vcpkg-1990d4b72c58c2ada5f0b7b28478d214fb3205da.zip | |
[libwandio] Add new port (#8683)
* [libwandio] Add new port
* Update ci.baseline.txt
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/libwandio/CONTROL | 4 | ||||
| -rw-r--r-- | ports/libwandio/portfile.cmake | 27 |
2 files changed, 31 insertions, 0 deletions
diff --git a/ports/libwandio/CONTROL b/ports/libwandio/CONTROL new file mode 100644 index 000000000..f41bf35ff --- /dev/null +++ b/ports/libwandio/CONTROL @@ -0,0 +1,4 @@ +Source: libwandio
+Version: 4.2.1
+Homepage: https://github.com/wanduow/wandio
+Description: C library for simple and efficient file IO.
\ No newline at end of file diff --git a/ports/libwandio/portfile.cmake b/ports/libwandio/portfile.cmake new file mode 100644 index 000000000..20ccce13d --- /dev/null +++ b/ports/libwandio/portfile.cmake @@ -0,0 +1,27 @@ +vcpkg_fail_port_install(MESSAGE "${PORT} currently only supports Linux and Mac platform" ON_TARGET "Windows")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO wanduow/wandio
+ REF 012b646e7ba7ab191a5a2206488adfac493fcdc6
+ SHA512 e94a82038902c34933c4256f8bd4d7ef3f2cf32fea46f8e31a25df34cc90d3a275ff56d3bc9892aca0c85e6d875e696f96a836cc1444fe165db8364331e6e77d
+ HEAD_REF master
+)
+
+vcpkg_configure_make(
+ SOURCE_PATH ${SOURCE_PATH}
+ AUTOCONFIG
+)
+
+vcpkg_install_make()
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
+endif()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+
+vcpkg_copy_pdbs()
+
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
