[wavelib] Add new port (#11611)

* [wavelib] Add new port

* [wavelib] Fix cmake config file name

* [wavelib] Update patch file

* [wavelib] Update to 2020-05-29

* [wavelib] Fix UWP build

* [wavelib] Disable parallel configuration

* [wavelib] Remove patch
This commit is contained in:
myd7349 2020-06-02 07:20:12 +08:00 committed by GitHub
parent 6fb72ff00b
commit 4cc5ac58b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

4
ports/wavelib/CONTROL Normal file
View File

@ -0,0 +1,4 @@
Source: wavelib
Version: 2020-05-29
Description: C implementation of wavelet transform (DWT,SWT and MODWT)
Homepage: https://github.com/rafat/wavelib

View File

@ -0,0 +1,25 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO rafat/wavelib
REF c7c9ba8b1091610a678b2091ae4edba740fe83a7
SHA512 16f24288e410732cd7a2744e0039f93ddb435c6aaa59fde169f117e5536e5f452f0e78edc75ad725b18f9e16b34870c3a100c32c84399a004eb443ba0030f758
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
DISABLE_PARALLEL_CONFIGURE
PREFER_NINJA
OPTIONS
-DBUILD_UT=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)