From f30151a2ae2c46b2f6bcfc3f0c8ebafd8e30698c Mon Sep 17 00:00:00 2001 From: Park DongHa Date: Thu, 16 Sep 2021 22:01:56 +0900 Subject: [PATCH 1/3] [neon2sse] create a new port --- ports/neon2sse/fix-cmakelists.patch | 13 +++++++++++++ ports/neon2sse/portfile.cmake | 19 +++++++++++++++++++ ports/neon2sse/vcpkg.json | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 ports/neon2sse/fix-cmakelists.patch create mode 100644 ports/neon2sse/portfile.cmake create mode 100644 ports/neon2sse/vcpkg.json diff --git a/ports/neon2sse/fix-cmakelists.patch b/ports/neon2sse/fix-cmakelists.patch new file mode 100644 index 00000000000000..8016b24d46b63a --- /dev/null +++ b/ports/neon2sse/fix-cmakelists.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e4b8980..231b75e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -2,7 +2,7 @@ + # Modification: Copyright (C) 2017 David Hirvonen + + cmake_minimum_required(VERSION 3.0) +-project(NEON_2_SSE VERSION 1.0.0) ++project(neon2sse VERSION 1.0.0) + + add_library(${PROJECT_NAME} INTERFACE) + diff --git a/ports/neon2sse/portfile.cmake b/ports/neon2sse/portfile.cmake new file mode 100644 index 00000000000000..ce3ca489462abb --- /dev/null +++ b/ports/neon2sse/portfile.cmake @@ -0,0 +1,19 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO intel/ARM_NEON_2_x86_SSE + REF a1652fd5253afbf3e39357b012974f93511f6108 + SHA512 9f8aa283e48eb3b615da3d89ec4165d1ec9599e8e181059c2b9acb2921ce753ce0f29b8c321d7d6661f10eb67e234c629df75853b87c4139a9bb137dbb3f4fc1 + PATCHES + fix-cmakelists.patch # rename `NEON_2_SSE` to `neon2sse` +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT}) + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" + "${CURRENT_PACKAGES_DIR}/lib" +) diff --git a/ports/neon2sse/vcpkg.json b/ports/neon2sse/vcpkg.json new file mode 100644 index 00000000000000..c705b9ededdee8 --- /dev/null +++ b/ports/neon2sse/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "neon2sse", + "version-date": "2021-09-16", + "description": "Open standard for machine learning interoperability", + "homepage": "https://github.com/intel/ARM_NEON_2_x86_SSE", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} From f4b843803c5d6a7c25f18379dfe6825d7af1a0c8 Mon Sep 17 00:00:00 2001 From: Park DongHa Date: Thu, 16 Sep 2021 22:02:34 +0900 Subject: [PATCH 2/3] [neon2sse] update baseline JSON --- versions/baseline.json | 4 ++++ versions/n-/neon2sse.json | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 versions/n-/neon2sse.json diff --git a/versions/baseline.json b/versions/baseline.json index 03050a42de3eb9..4985195c105e60 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4448,6 +4448,10 @@ "baseline": "0.0.0-7cb75d4e", "port-version": 1 }, + "neon2sse": { + "baseline": "2021-09-16", + "port-version": 0 + }, "netcdf-c": { "baseline": "4.7.4", "port-version": 4 diff --git a/versions/n-/neon2sse.json b/versions/n-/neon2sse.json new file mode 100644 index 00000000000000..5034f55b0283cc --- /dev/null +++ b/versions/n-/neon2sse.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "6e57626dcaaffda896752224d30c019d619f9344", + "version-date": "2021-09-16", + "port-version": 0 + } + ] +} From 95aba09a5196bcac3ddbc672be9b8b34891c7007 Mon Sep 17 00:00:00 2001 From: luncliff Date: Sat, 18 Sep 2021 00:36:21 +0900 Subject: [PATCH 3/3] [neon2sse] use package name NEON2_S_SE --- ports/neon2sse/fix-cmakelists.patch | 13 ------------- ports/neon2sse/portfile.cmake | 5 ++--- versions/n-/neon2sse.json | 2 +- 3 files changed, 3 insertions(+), 17 deletions(-) delete mode 100644 ports/neon2sse/fix-cmakelists.patch diff --git a/ports/neon2sse/fix-cmakelists.patch b/ports/neon2sse/fix-cmakelists.patch deleted file mode 100644 index 8016b24d46b63a..00000000000000 --- a/ports/neon2sse/fix-cmakelists.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index e4b8980..231b75e 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -2,7 +2,7 @@ - # Modification: Copyright (C) 2017 David Hirvonen - - cmake_minimum_required(VERSION 3.0) --project(NEON_2_SSE VERSION 1.0.0) -+project(neon2sse VERSION 1.0.0) - - add_library(${PROJECT_NAME} INTERFACE) - diff --git a/ports/neon2sse/portfile.cmake b/ports/neon2sse/portfile.cmake index ce3ca489462abb..477e109a016913 100644 --- a/ports/neon2sse/portfile.cmake +++ b/ports/neon2sse/portfile.cmake @@ -3,15 +3,14 @@ vcpkg_from_github( REPO intel/ARM_NEON_2_x86_SSE REF a1652fd5253afbf3e39357b012974f93511f6108 SHA512 9f8aa283e48eb3b615da3d89ec4165d1ec9599e8e181059c2b9acb2921ce753ce0f29b8c321d7d6661f10eb67e234c629df75853b87c4139a9bb137dbb3f4fc1 - PATCHES - fix-cmakelists.patch # rename `NEON_2_SSE` to `neon2sse` + HEAD_REF master ) vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" ) vcpkg_cmake_install() -vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT}) +vcpkg_cmake_config_fixup(PACKAGE_NAME NEON_2_SSE CONFIG_PATH lib/cmake/NEON_2_SSE) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" diff --git a/versions/n-/neon2sse.json b/versions/n-/neon2sse.json index 5034f55b0283cc..e3590ae1a1671d 100644 --- a/versions/n-/neon2sse.json +++ b/versions/n-/neon2sse.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "6e57626dcaaffda896752224d30c019d619f9344", + "git-tree": "02bae7681d6c8c026a5f49dd3b4b37a430ea6878", "version-date": "2021-09-16", "port-version": 0 }