From 20e73ca263d8af8e6d188a71909e1a24728a94c2 Mon Sep 17 00:00:00 2001 From: NancyLi1013 Date: Mon, 8 Jul 2019 03:04:46 -0700 Subject: [PATCH 1/2] [genann] Add new port. --- ports/genann/CMakeLists.txt | 25 +++++++++++++++++++++++++ ports/genann/CONTROL | 4 ++++ ports/genann/portfile.cmake | 27 +++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 ports/genann/CMakeLists.txt create mode 100644 ports/genann/CONTROL create mode 100644 ports/genann/portfile.cmake diff --git a/ports/genann/CMakeLists.txt b/ports/genann/CMakeLists.txt new file mode 100644 index 00000000000000..80b7ab9bfcfadd --- /dev/null +++ b/ports/genann/CMakeLists.txt @@ -0,0 +1,25 @@ +cmake_minimum_required(VERSION 3.11) +project(genann) + +set(SRC_FILES +genann.c +) + +add_library(genann ${SRC_FILES}) + +target_include_directories(genann PUBLIC + $ + $ +) + +# Install targets +install(TARGETS genann + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) + +# Install headers +if (INSTALL_HEADERS) + install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/genann.h DESTINATION include/genann) +endif() \ No newline at end of file diff --git a/ports/genann/CONTROL b/ports/genann/CONTROL new file mode 100644 index 00000000000000..3aec034d0f2af4 --- /dev/null +++ b/ports/genann/CONTROL @@ -0,0 +1,4 @@ +Source: genann +Version: 122243f +Homepage: https://github.com/codeplea/genann +Description: Genann is a minimal, well-tested library for training and using feedforward artificial neural networks (ANN) in C. \ No newline at end of file diff --git a/ports/genann/portfile.cmake b/ports/genann/portfile.cmake new file mode 100644 index 00000000000000..4f1c21d0625fc2 --- /dev/null +++ b/ports/genann/portfile.cmake @@ -0,0 +1,27 @@ +include(vcpkg_common_functions) + +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO codeplea/genann + REF 122243f9449b3e33a4e11450b70c10576d4559d7 + SHA512 d70cb8bc678d80ed3e790866f6060850cf9309eefe90d3ca4d77e28538639a927333d49c4d1af3e81123b8e88224f2f51b74ec41ca22639a276359568652ed15 + HEAD_REF master +) + +file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS_RELEASE -DINSTALL_HEADERS=ON + OPTIONS_DEBUG -DINSTALL_HEADERS=OFF +) + +vcpkg_install_cmake() + +# Handle copyright +file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/genann) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/genann/LICENSE ${CURRENT_PACKAGES_DIR}/share/genann/copyright) + From 37146edd55fb5f173b8448a72d623fc5d27340e6 Mon Sep 17 00:00:00 2001 From: dan-shaw <51385773+dan-shaw@users.noreply.github.com> Date: Wed, 10 Jul 2019 17:11:23 -0700 Subject: [PATCH 2/2] change version to date --- ports/genann/CONTROL | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/genann/CONTROL b/ports/genann/CONTROL index 3aec034d0f2af4..6397319bba1272 100644 --- a/ports/genann/CONTROL +++ b/ports/genann/CONTROL @@ -1,4 +1,4 @@ Source: genann -Version: 122243f +Version: 2019-07-10 Homepage: https://github.com/codeplea/genann -Description: Genann is a minimal, well-tested library for training and using feedforward artificial neural networks (ANN) in C. \ No newline at end of file +Description: Genann is a minimal, well-tested library for training and using feedforward artificial neural networks (ANN) in C.