aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libaec/portfile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libaec/portfile.cmake')
-rw-r--r--vcpkg/ports/libaec/portfile.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/vcpkg/ports/libaec/portfile.cmake b/vcpkg/ports/libaec/portfile.cmake
new file mode 100644
index 0000000..d3b54b9
--- /dev/null
+++ b/vcpkg/ports/libaec/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_from_gitlab(
+ OUT_SOURCE_PATH SOURCE_PATH
+ GITLAB_URL https://gitlab.dkrz.de
+ REPO k202009/libaec
+ REF v1.1.3
+ SHA512 6f317d08ad7d003bc6664da147321eb87c924978f32bd28780a8ebf015e251019046b0cb16b78e776cd1957a7701215667f64686efb8e5c6bae7c08528cede56
+ PATCHES
+ static-shared.patch
+ cmake-config.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTING=OFF
+)
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+vcpkg_cmake_config_fixup(CONFIG_PATH "cmake")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")