diff --git a/ports/wavelib/CONTROL b/ports/wavelib/CONTROL new file mode 100644 index 0000000000..78c10686d3 --- /dev/null +++ b/ports/wavelib/CONTROL @@ -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 diff --git a/ports/wavelib/portfile.cmake b/ports/wavelib/portfile.cmake new file mode 100644 index 0000000000..2f4b6aa836 --- /dev/null +++ b/ports/wavelib/portfile.cmake @@ -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)