6bf3fc9cc9
Add missing dependencies to pass `make stage-qa'. Error: /usr/local/bin/cmake-gui is linked to /usr/local/lib/libexecinfo.so.1 from devel/libexecinfo but it is not declared as a dependency Warning: you need USES+=execinfo Error: /usr/local/bin/cmake-gui is linked to /usr/local/lib/libjsoncpp.so.1 from devel/jsoncpp but it is not declared as a dependency Warning: you need LIB_DEPENDS+=libjsoncpp.so:devel/jsoncpp Approved by: ports-secteam (junovitch, implicit)
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cmake
|
|
PORTVERSION= 3.5.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= https://www.cmake.org/files/v${PORTVERSION:R}/
|
|
PKGNAMESUFFIX= -gui
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= Qt-based GUI for CMake
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/Copyright.txt
|
|
|
|
BUILD_DEPENDS= sphinx-build:textproc/py-sphinx
|
|
LIB_DEPENDS= libcurl.so:ftp/curl \
|
|
libexpat.so:textproc/expat2 \
|
|
libjsoncpp.so:devel/jsoncpp
|
|
|
|
USE_QT5= core gui widgets buildtools_build qmake_build
|
|
USES= cmake:run desktop-file-utils execinfo 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>
|