diff options
| author | Daniele E. Domenichelli <ddomenichelli@drdanz.it> | 2017-03-29 22:57:43 +0200 |
|---|---|---|
| committer | Daniele E. Domenichelli <ddomenichelli@drdanz.it> | 2017-03-29 22:57:43 +0200 |
| commit | 5a4d0ad6a732403e4e9265e19a4ef8425766dade (patch) | |
| tree | e43cc54a0cea207645844f08ad8a406c55a50834 | |
| parent | a312cb493959055e13fc5376fff66d46c25c5c59 (diff) | |
| download | vcpkg-5a4d0ad6a732403e4e9265e19a4ef8425766dade.tar.gz vcpkg-5a4d0ad6a732403e4e9265e19a4ef8425766dade.zip | |
Add ECM port
| -rw-r--r-- | ports/ecm/CONTROL | 3 | ||||
| -rw-r--r-- | ports/ecm/portfile.cmake | 29 |
2 files changed, 32 insertions, 0 deletions
diff --git a/ports/ecm/CONTROL b/ports/ecm/CONTROL new file mode 100644 index 000000000..e696bd7b9 --- /dev/null +++ b/ports/ecm/CONTROL @@ -0,0 +1,3 @@ +Source: ecm +Version: 5.32.0 +Description: Extra CMake Modules (ECM), extra modules and scripts for CMake diff --git a/ports/ecm/portfile.cmake b/ports/ecm/portfile.cmake new file mode 100644 index 000000000..9fa648a1c --- /dev/null +++ b/ports/ecm/portfile.cmake @@ -0,0 +1,29 @@ +#cmake-only scripts +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/extra-cmake-modules-5.32.0) +vcpkg_download_distfile(ARCHIVE + URLS "https://download.kde.org/stable/frameworks/5.32/extra-cmake-modules-5.32.0.zip" + FILENAME "extra-cmake-modules-5.32.0.zip" + SHA512 f966820e88fdbcdea7f20ff6b76ab8a6d2f7eaf78950bc690243b7201b9f646d92c83a998c19feab3bfe2ed528ec96ad1fa36e6ae320419d226cddd28cd433e5 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS -DBUILD_HTML_DOCS=OFF + -DBUILD_MAN_DOCS=OFF + -DBUILD_QTHELP_DOCS=OFF + -DBUILD_TESTING=OFF +) + +vcpkg_install_cmake() + +# Remove debug files +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) + +# Handle copyright +file(COPY ${SOURCE_PATH}/COPYING-CMAKE-SCRIPTS DESTINATION ${CURRENT_PACKAGES_DIR}/share/ecm) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/ecm/COPYING-CMAKE-SCRIPTS ${CURRENT_PACKAGES_DIR}/share/ecm/copyright) + +# Allow empty include directory +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) |
