mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
b1a1d38bf9
From now on, ports that depend on Qt4 will have to set USES= qt:4 USE_QT= foo bar ports depending on Qt5 will use USES= qt:5 USE_QT= foo bar PR: 229225 Exp-run by: antoine Reviewed by: mat Approved by: portmgr (antoine) Differential Revision: →https://reviews.freebsd.org/D15540
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cmake
|
|
DISTVERSION= 3.11.4
|
|
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 \
|
|
libuv.so:devel/libuv \
|
|
librhash.so:security/rhash
|
|
|
|
USE_QT= core gui widgets buildtools_build qmake_build
|
|
USES= cmake:run desktop-file-utils libarchive \
|
|
qt:5 shared-mime-info
|
|
CMAKE_OFF= BUILD_CursesDialog \
|
|
CMake_SPHINX_DEPEND_ON_EXECUTABLES
|
|
CMAKE_ON= BUILD_QtDialog \
|
|
CMAKE_USE_SYSTEM_LIBRARIES \
|
|
SPHINX_MAN
|
|
CMAKE_ARGS= -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>
|