From 142f80bb0895d316a6515179e6e85b11cf0b2bae Mon Sep 17 00:00:00 2001 From: toge Date: Thu, 6 Nov 2025 05:51:23 +0900 Subject: [PATCH] [libpopcnt] add new port (#48150) --- ports/libpopcnt/portfile.cmake | 13 +++++++++++++ ports/libpopcnt/vcpkg.json | 7 +++++++ versions/baseline.json | 4 ++++ versions/l-/libpopcnt.json | 9 +++++++++ 4 files changed, 33 insertions(+) create mode 100644 ports/libpopcnt/portfile.cmake create mode 100644 ports/libpopcnt/vcpkg.json create mode 100644 versions/l-/libpopcnt.json diff --git a/ports/libpopcnt/portfile.cmake b/ports/libpopcnt/portfile.cmake new file mode 100644 index 0000000000..9e61a5a390 --- /dev/null +++ b/ports/libpopcnt/portfile.cmake @@ -0,0 +1,13 @@ +set(VCPKG_BUILD_TYPE release) # Header-only library + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO kimwalisch/libpopcnt + REF "v${VERSION}" + SHA512 b01f1446c951b848357ed01e31cb2d1014639ba854710edcc5703b69226b9ca2e65c84d78308cf345654fbfc92ce467bb5a5171158db5b94f979674efb59f6dc + HEAD_REF master +) + +file(COPY "${SOURCE_PATH}/libpopcnt.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/libpopcnt/vcpkg.json b/ports/libpopcnt/vcpkg.json new file mode 100644 index 0000000000..ba012c0627 --- /dev/null +++ b/ports/libpopcnt/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "libpopcnt", + "version": "3.1", + "description": "Fast C/C++ bit population count library", + "homepage": "https://github.com/kimwalisch/libpopcnt", + "license": "BSD-2-Clause" +} diff --git a/versions/baseline.json b/versions/baseline.json index 177c0649cf..5a01c27e04 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5332,6 +5332,10 @@ "baseline": "1.6.50", "port-version": 0 }, + "libpopcnt": { + "baseline": "3.1", + "port-version": 0 + }, "libpopt": { "baseline": "1.16", "port-version": 18 diff --git a/versions/l-/libpopcnt.json b/versions/l-/libpopcnt.json new file mode 100644 index 0000000000..27c168c602 --- /dev/null +++ b/versions/l-/libpopcnt.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "75540d799c09ac684dcd0e1503129e471621e626", + "version": "3.1", + "port-version": 0 + } + ] +}