aboutsummaryrefslogtreecommitdiff
path: root/ports/cpuid
diff options
context:
space:
mode:
authorkreuzerkrieg <kreuzerkrieg@gmail.com>2020-03-19 07:53:31 +0200
committerGitHub <noreply@github.com>2020-03-18 22:53:31 -0700
commit7029557ee77182d2b086839fce6409fbb211fc5a (patch)
tree84b7fb87bfde34301a398199067525b2150f42a4 /ports/cpuid
parentf9e10d656f73483cf9dca67714fc60a8c4489335 (diff)
downloadvcpkg-7029557ee77182d2b086839fce6409fbb211fc5a.tar.gz
vcpkg-7029557ee77182d2b086839fce6409fbb211fc5a.zip
Fix the naming mess (#10367)
Diffstat (limited to 'ports/cpuid')
-rw-r--r--ports/cpuid/CONTROL5
-rw-r--r--ports/cpuid/portfile.cmake27
2 files changed, 32 insertions, 0 deletions
diff --git a/ports/cpuid/CONTROL b/ports/cpuid/CONTROL
new file mode 100644
index 000000000..84209185f
--- /dev/null
+++ b/ports/cpuid/CONTROL
@@ -0,0 +1,5 @@
+Source: cpuid
+Version: 0.4.1
+Homepage: https://github.com/anrieff/libcpuid
+Description: Provides CPU identification for the x86 (and x86_64)
+Supports: x86 | x64
diff --git a/ports/cpuid/portfile.cmake b/ports/cpuid/portfile.cmake
new file mode 100644
index 000000000..70f80d70f
--- /dev/null
+++ b/ports/cpuid/portfile.cmake
@@ -0,0 +1,27 @@
+vcpkg_fail_port_install(ON_TARGET "UWP" ON_ARCH "arm" "arm64")
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO anrieff/libcpuid
+ REF f2ab8b7ef2c286f619d96c3ce8902cb76b801bf0
+ SHA512 fcd2d35994554eed80c04315f1cf3bc91f272a5051dde040fe2266d71af902b60ecfd74b6f9dc8284a22f222208c6789bfb94cc12d61de17d605265d3cd2c43d
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DENABLE_DOCS=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/cpuid)
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin ${CURRENT_PACKAGES_DIR}/debug/include)
+
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)