CVSROOT: /cvs
Module name: ports
Changes by: [email protected] 2022/05/28 18:30:31
Modified files:
devel/cmake : Makefile
devel/cmake/patches: patch-Source_cmFileCommand_cxx
Log message:
Allow file(DOWNLOAD, file:///...) in ports builds
Ports trying to fetch URLs from variables can be fixed without patching
by passing an absoloute file path as URL, e.g.
file(DOWNLOAD ${CONFIG_URL} ${CMAKE_CURRENT_BINARY_DIR}/config.json)
can be fixed right from our Makefile like so
-DCONFIG_URL=file://${DISTDIR}/myport-config.json
The alternative would be to patch sources to use something akin to
configure_file(${CONFIG_URL} ${CMAKE_CURRENT_BINARY_DIR}/config.json COPYONLY)
UPLOAD does not need this and stays completely neutered in ports builds.
OK sthen rsadowski