aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libpopcnt
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libpopcnt')
-rw-r--r--vcpkg/ports/libpopcnt/portfile.cmake13
-rw-r--r--vcpkg/ports/libpopcnt/vcpkg.json7
2 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/ports/libpopcnt/portfile.cmake b/vcpkg/ports/libpopcnt/portfile.cmake
new file mode 100644
index 0000000..9e61a5a
--- /dev/null
+++ b/vcpkg/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/vcpkg/ports/libpopcnt/vcpkg.json b/vcpkg/ports/libpopcnt/vcpkg.json
new file mode 100644
index 0000000..ba012c0
--- /dev/null
+++ b/vcpkg/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"
+}