aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/numactl
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/numactl')
-rw-r--r--vcpkg/ports/numactl/pkgconfig.diff10
-rw-r--r--vcpkg/ports/numactl/portfile.cmake21
-rw-r--r--vcpkg/ports/numactl/vcpkg.json15
3 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/numactl/pkgconfig.diff b/vcpkg/ports/numactl/pkgconfig.diff
new file mode 100644
index 0000000..61987f6
--- /dev/null
+++ b/vcpkg/ports/numactl/pkgconfig.diff
@@ -0,0 +1,10 @@
+diff --git a/numa.pc.in b/numa.pc.in
+index cc04d50..78f319d 100644
+--- a/numa.pc.in
++++ b/numa.pc.in
+@@ -8,4 +8,4 @@ Description: NUMA policy library
+ Version: @VERSION@
+ Cflags: -I${includedir}
+ Libs: -L${libdir} -lnuma
+-Libs.Private: @LIBS@
++Libs.private: @LIBS@
diff --git a/vcpkg/ports/numactl/portfile.cmake b/vcpkg/ports/numactl/portfile.cmake
new file mode 100644
index 0000000..27268ad
--- /dev/null
+++ b/vcpkg/ports/numactl/portfile.cmake
@@ -0,0 +1,21 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO numactl/numactl
+ REF "v${VERSION}"
+ SHA512 a9aa93bdc6333b620c10ff3573d6ff645ab54beece75e67be8cdddb27d062cc56cea34db342005a171877f85f05eb1d24e43f8466be907ba3b7c8b1f897cd954
+ HEAD_REF master
+ PATCHES
+ pkgconfig.diff
+)
+
+vcpkg_make_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ AUTORECONF
+)
+vcpkg_make_install()
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/README.md" "${SOURCE_PATH}/LICENSE.LGPL2.1" "${SOURCE_PATH}/LICENSE.GPL2")
+vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" ".*# License" "# License" REGEX)
diff --git a/vcpkg/ports/numactl/vcpkg.json b/vcpkg/ports/numactl/vcpkg.json
new file mode 100644
index 0000000..2ae679d
--- /dev/null
+++ b/vcpkg/ports/numactl/vcpkg.json
@@ -0,0 +1,15 @@
+{
+ "name": "numactl",
+ "version": "2.0.19",
+ "port-version": 1,
+ "description": "NUMA support for Linux",
+ "homepage": "https://github.com/numactl/numactl",
+ "license": null,
+ "supports": "linux",
+ "dependencies": [
+ {
+ "name": "vcpkg-make",
+ "host": true
+ }
+ ]
+}