zeek/auxil/vcpkg/ports/vcpkg-make/portfile.cmake
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

45 lines
1.5 KiB
CMake

set(VCPKG_POLICY_CMAKE_HELPER_PORT enabled)
set(automake_version 1.17)
vcpkg_download_distfile(ARCHIVE
URLS https://ftp.gnu.org/gnu/automake/automake-${automake_version}.tar.gz
https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/automake/automake-${automake_version}.tar.gz
FILENAME automake-${automake_version}.tar.gz
SHA512 11357dfab8cbf4b5d94d9d06e475732ca01df82bef1284888a34bd558afc37b1a239bed1b5eb18a9dbcc326344fb7b1b301f77bb8385131eb8e1e118b677883a
)
vcpkg_extract_source_archive(
automake_source
ARCHIVE "${ARCHIVE}"
)
file(INSTALL
"${CMAKE_CURRENT_LIST_DIR}/vcpkg_make_configure.cmake"
"${CMAKE_CURRENT_LIST_DIR}/vcpkg_make_install.cmake"
"${CMAKE_CURRENT_LIST_DIR}/vcpkg_make_common.cmake"
"${CMAKE_CURRENT_LIST_DIR}/vcpkg_make.cmake"
"${CMAKE_CURRENT_LIST_DIR}/vcpkg_scripts.cmake"
"${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake"
DESTINATION
"${CURRENT_PACKAGES_DIR}/share/${PORT}"
)
file(INSTALL
"${automake_source}/lib/ar-lib"
"${automake_source}/lib/compile"
"${CMAKE_CURRENT_LIST_DIR}/wrappers/"
DESTINATION
"${CURRENT_PACKAGES_DIR}/share/${PORT}/wrappers"
)
vcpkg_install_copyright(
COMMENT [[
The cmake scripts are under vcpkg's MIT license terms, see LICENSE.txt below.
The port also installs shell scripts from GNU Automake.
These scripts are under GPL-2.0-or-later, see COPYING below.
]]
FILE_LIST
"${VCPKG_ROOT_DIR}/LICENSE.txt"
"${automake_source}/COPYING"
)