diff --git a/devel/cmake-core/Makefile b/devel/cmake-core/Makefile index f6dead9a0794..338edd768112 100644 --- a/devel/cmake-core/Makefile +++ b/devel/cmake-core/Makefile @@ -1,97 +1,100 @@ PORTNAME= cmake DISTVERSION= ${_CMAKE_VERSION} CATEGORIES= devel PKGNAMESUFFIX= -core MAINTAINER= kde@FreeBSD.org COMMENT= Cross-platform Makefile generator WWW= https://www.cmake.org/ +PATCH_SITES= https://gitlab.kitware.com/cmake/cmake/-/commit/ +PATCHFILES+= 1b0c92a3a1b782ff3e1c4499b6ab8db614d45bcd.patch:-p1 # Fix build with curl >= 8.13.0 + LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/Copyright.txt LIB_DEPENDS= libexpat.so:textproc/expat2 \ libidn2.so:dns/libidn2 \ libjsoncpp.so:devel/jsoncpp \ libpkg.so:${PKG_ORIGIN} \ librhash.so:security/rhash \ libuv.so:devel/libuv USES= cmake:_internal compiler:c++17-lang cpe localbase ncurses ssl CPE_VENDOR= cmake_project HAS_CONFIGURE= yes CONFIGURE_CMD= ${WRKSRC}/bootstrap CONFIGURE_LOG= Bootstrap.cmk/cmake_bootstrap.log CONFIGURE_ARGS= --prefix=${PREFIX} \ --datadir="/${DATADIR_REL}" \ --docdir="/${DOCSDIR_REL}" \ --init="${BUILD_WRKSRC}/InitialCache.cmake" \ --parallel=${MAKE_JOBS_NUMBER} \ --system-bzip2 \ --system-expat \ --system-jsoncpp \ --system-liblzma \ --system-libarchive \ --system-librhash \ --system-libuv \ --system-zlib \ --system-zstd \ --no-system-cppdap \ --no-system-curl \ --no-system-nghttp2 \ --verbose .if defined(WITH_CCACHE_BUILD) CONFIGURE_ARGS+= --enable-ccache .endif CONFIGURE_ENV= MAKE=${MAKE} # Quick fix to enable build with non-base SSL (CFLAGS/LDFLAGS only) (PR: 274512) CFLAGS+= -I${OPENSSLINC} CXXFLAGS+= -D__BSD_VISIBLE LDFLAGS+= -L${OPENSSLLIB} SUB_FILES= InitialCache.cmake BUILD_WRKSRC= ${WRKDIR}/.build CONFIGURE_WRKSRC= ${BUILD_WRKSRC} INSTALL_WRKSRC= ${BUILD_WRKSRC} OPTIONS_DEFINE= DOCS OPTIONS_SUB= yes post-patch: @(${FIND} ${WRKSRC}/Modules -name "*.cmake" -print0; \ ${FIND} ${WRKSRC}/Tests -name "CMakeLists.txt" -print0 ) | \ ${XARGS} -0 -n 100 ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g; \ s|/usr/X11R6|${LOCALBASE}|g' @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ ${WRKSRC}/Source/cmLocalGenerator.cxx \ ${WRKSRC}/Source/CPack/cmCPackGenerator.cxx \ ${WRKSRC}/bootstrap @${REINPLACE_CMD} -e 's|_compiler=\"ccache|_compiler="${CCACHE_BIN}|g' \ ${WRKSRC}/bootstrap @${REINPLACE_CMD} -e 's|/usr/include|${LOCALBASE}/include|' \ ${WRKSRC}/Modules/FindDCMTK.cmake @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/Modules/FindFLEX.cmake @${REINPLACE_CMD} -e 's|/opt/kde4|${PREFIX}|g' \ ${WRKSRC}/Modules/FindKDE4.cmake # cmake-gui(1) is installed by devel/cmake-gui. Remove the man page's source to # prevent it from being built/installed by devel/cmake. @${RM} ${WRKSRC}/Help/manual/cmake-gui.1.rst pre-configure: @${MKDIR} ${BUILD_WRKSRC} # Before running configure, substitute in the values of options # for the build. CMake's configure doesn't accept --with-foo # or similar options: it expects them to be set in CMake-style # syntax in the initial cache. @${CP} ${WRKDIR}/InitialCache.cmake ${BUILD_WRKSRC} @${FIND} ${WRKSRC} -name "*.bak" -delete -o -name "*.orig" -delete post-install: ${INSTALL_DATA} ${WRKSRC}/Auxiliary/cmake-mode.el ${STAGEDIR}${PREFIX}/share/emacs/site-lisp .include diff --git a/devel/cmake-core/distinfo b/devel/cmake-core/distinfo index ae92d624f259..56232db4f9e2 100644 --- a/devel/cmake-core/distinfo +++ b/devel/cmake-core/distinfo @@ -1,3 +1,5 @@ -TIMESTAMP = 1740602355 +TIMESTAMP = 1745845681 SHA256 (cmake-3.31.6.tar.gz) = 653427f0f5014750aafff22727fb2aa60c6c732ca91808cfb78ce22ddd9e55f0 SIZE (cmake-3.31.6.tar.gz) = 11710589 +SHA256 (1b0c92a3a1b782ff3e1c4499b6ab8db614d45bcd.patch) = fab4f6c4dfbdea777a5ccad3db97fd5f3336fcb48a30847c94c0a5636757c2ef +SIZE (1b0c92a3a1b782ff3e1c4499b6ab8db614d45bcd.patch) = 1142 diff --git a/devel/cmake-gui/Makefile b/devel/cmake-gui/Makefile index 6edef08c384c..553d5450c13a 100644 --- a/devel/cmake-gui/Makefile +++ b/devel/cmake-gui/Makefile @@ -1,61 +1,64 @@ PORTNAME= cmake DISTVERSION= ${_CMAKE_VERSION} CATEGORIES= devel PKGNAMESUFFIX= -gui MAINTAINER= kde@FreeBSD.org COMMENT= Qt-based GUI for CMake WWW= https://www.cmake.org +PATCH_SITES= https://gitlab.kitware.com/cmake/cmake/-/commit/ +PATCHFILES+= 1b0c92a3a1b782ff3e1c4499b6ab8db614d45bcd.patch:-p1 # Fix build with curl >= 8.13.0 + LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/Copyright.txt BUILD_DEPENDS= sphinx-build:textproc/py-sphinx@${PY_FLAVOR} LIB_DEPENDS= libcurl.so:ftp/curl \ libexpat.so:textproc/expat2 \ libjsoncpp.so:devel/jsoncpp \ libuv.so:devel/libuv \ librhash.so:security/rhash USES= cmake:run compiler:c++17-lang desktop-file-utils libarchive \ python:build qt:6 shared-mime-info USE_QT= base CMAKE_ARGS= -DCMAKE_DATA_DIR:STRING="/${DATADIR_REL}" \ -DCMAKE_DOC_DIR:STRING="/${DOCSDIR_REL}" \ -DCMake_QT_MAJOR_VERSION:STRING="6" CMAKE_ON= BUILD_QtDialog \ CMAKE_USE_SYSTEM_CURL \ CMAKE_USE_SYSTEM_EXPAT \ CMAKE_USE_SYSTEM_FORM \ CMAKE_USE_SYSTEM_JSONCPP \ CMAKE_USE_SYSTEM_LIBARCHIVE \ CMAKE_USE_SYSTEM_LIBRHASH \ CMAKE_USE_SYSTEM_LIBUV \ SPHINX_MAN CMAKE_OFF= BUILD_CursesDialog \ CMake_SPHINX_DEPEND_ON_EXECUTABLES \ CMAKE_USE_SYSTEM_CPPDAP ALL_TARGET= cmake-gui documentation CXXFLAGS+= -D__BSD_VISIBLE INSTALL_WRKSRC= ${BUILD_WRKSRC}/Source/QtDialog DISTINFO_FILE= ${.CURDIR:H}/cmake-core/distinfo post-patch: @(${FIND} ${WRKSRC}/Modules -name "*.cmake" -print0; \ ${FIND} ${WRKSRC}/Tests -name "CMakeLists.txt" -print0 ) | \ ${XARGS} -0 -n 100 ${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g; \ s,/usr/X11R6,${LOCALBASE},g' pre-install: ${LN} -sf ${CMAKE_BIN} ${BUILD_WRKSRC}/bin post-install: ${INSTALL_MAN} ${BUILD_WRKSRC}/Utilities/Sphinx/man/cmake-gui.1 \ ${STAGEDIR}${PREFIX}/share/man/man1 .include