diff options
| author | Adam Johnson <AdamJohnso@gmail.com> | 2020-08-31 20:56:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-31 17:56:42 -0700 |
| commit | adc1719f0e40ef69b0862826fc2a24edae5ddcab (patch) | |
| tree | 68d04b04bc6d696a2a35593028f83983767d8a30 | |
| parent | b5f00aefc9d953177d21080cf18b2ae84bc20a4c (diff) | |
| download | vcpkg-adc1719f0e40ef69b0862826fc2a24edae5ddcab.tar.gz vcpkg-adc1719f0e40ef69b0862826fc2a24edae5ddcab.zip | |
[libhsplasma] Add new port (#13174)
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
| -rw-r--r-- | ports/libhsplasma/CONTROL | 10 | ||||
| -rw-r--r-- | ports/libhsplasma/portfile.cmake | 35 | ||||
| -rw-r--r-- | scripts/ci.baseline.txt | 1 |
3 files changed, 46 insertions, 0 deletions
diff --git a/ports/libhsplasma/CONTROL b/ports/libhsplasma/CONTROL new file mode 100644 index 000000000..eb5c047ed --- /dev/null +++ b/ports/libhsplasma/CONTROL @@ -0,0 +1,10 @@ +Source: libhsplasma
+Version: 2020.08.30
+Homepage: https://github.com/H-uru/libhsplasma
+Description: Cross-platform Plasma data and network library
+Build-Depends: libjpeg-turbo, libpng, string-theory, zlib
+Supports: !(arm|uwp)
+
+Feature: net
+Description: Network functionality
+Build-Depends: openssl
diff --git a/ports/libhsplasma/portfile.cmake b/ports/libhsplasma/portfile.cmake new file mode 100644 index 000000000..506f09d20 --- /dev/null +++ b/ports/libhsplasma/portfile.cmake @@ -0,0 +1,35 @@ +vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO H-uru/libhsplasma
+ REF afd9c46fa72afbbaf5260800ecfde0704ba2a475
+ SHA512 21774b465ede7fe5e44df4470ed6867977ac9249400ba6d0bed33fd0e856d467de1afe79afb8a4dc6145eef21c5a3f79590b5cfa3ea1337cc355ca8f3bf1a11c
+ HEAD_REF master
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ net ENABLE_NET
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ ${FEATURE_OPTIONS}
+ -DENABLE_PHYSX=OFF
+ -DENABLE_PYTHON=OFF
+ -DENABLE_TOOLS=OFF
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(
+ CONFIG_PATH share/cmake/HSPlasma
+ TARGET_PATH share/HSPlasma
+)
+
+vcpkg_fixup_pkgconfig()
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index c2fa7b664..6d296b255 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -567,6 +567,7 @@ hiredis:arm-uwp=fail hiredis:x64-uwp=fail hpx:x64-windows-static=fail hpx:x64-linux=fail +libhsplasma:x64-windows-static=fail hwloc:arm64-windows=fail hwloc:arm-uwp=fail hwloc:x64-uwp=fail |
