From adc1719f0e40ef69b0862826fc2a24edae5ddcab Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 31 Aug 2020 20:56:42 -0400 Subject: [libhsplasma] Add new port (#13174) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III --- ports/libhsplasma/CONTROL | 10 ++++++++++ ports/libhsplasma/portfile.cmake | 35 +++++++++++++++++++++++++++++++++++ scripts/ci.baseline.txt | 1 + 3 files changed, 46 insertions(+) create mode 100644 ports/libhsplasma/CONTROL create mode 100644 ports/libhsplasma/portfile.cmake 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 -- cgit v1.2.3