mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-06 01:57:40 +00:00
cfc6c42930
Release notes for the 3.3 series: http://www.cmake.org/cmake/help/v3.3/release/3.3.html This update took longer than expected because of a behavior change in CMake: now calls to find_library(), find_path() etc will take the $PATH environment variable into consideration, which in practice means that it will prefer libraries in base instead of those in ports when both versions are available. r395972 is an example of the groundwork that had to be done before landing this patch. - deskutils/owncloudclient: When OpenSSL from ports is to be used, make sure to pass ${LOCALBASE} as $CMAKE_PREFIX_PATH, otherwise it will use the version in base (see above) and fail on 9.x. - math/cgal: Import upstream patch to fix the configuration process with CMake 3.3.x. PR: 202516
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cmake
|
|
PORTVERSION= 3.3.1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.cmake.org/files/v3.3/
|
|
PKGNAMESUFFIX= -gui
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= Qt-based GUI for CMake
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
BUILD_DEPENDS= sphinx-build:${PORTSDIR}/textproc/py-sphinx
|
|
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
|
|
libexpat.so:${PORTSDIR}/textproc/expat2
|
|
|
|
USE_QT5= core gui widgets buildtools_build qmake_build
|
|
USES= cmake:run desktop-file-utils libarchive shared-mime-info
|
|
CMAKE_ARGS= -DBUILD_QtDialog:bool=on \
|
|
-DBUILD_CursesDialog:BOOL=OFF \
|
|
-DSPHINX_MAN:BOOL=ON \
|
|
-DCMAKE_USE_SYSTEM_LIBRARIES:BOOL=ON \
|
|
-DCMAKE_DATA_DIR:STRING="/${DATADIR_REL}" \
|
|
-DCMAKE_DOC_DIR:STRING="/${DOCSDIR_REL}"
|
|
|
|
ALL_TARGET= cmake-gui documentation
|
|
INSTALL_WRKSRC= ${WRKSRC}/Source/QtDialog
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../cmake/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} ${WRKSRC}/bin
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/Utilities/Sphinx/man/cmake-gui.1 \
|
|
${STAGEDIR}${PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|