9ae0b14ba5
The cmake-gui(1) gained options to control warnings about deprecated functionality. The cmake-gui(1) learned an option to set the toolset to be used with VS IDE and Xcode generators, much like the existing -T option to cmake(1). The cmake-gui(1) gained a Regular Expression Explorer which may be used to create and evaluate regular expressions in real-time. The explorer window is available via the Tools menu. The -Wdev and -Wno-dev cmake(1) options now also enable and suppress the deprecated warnings output by default. The suppression of developer warnings as errors can now be controlled with the new -Werror=dev and -Wno-error=dev cmake(1) options. The cmake(1) -E command-line tools copy, copy_if_different, copy_directory, and make_directory learned to support multiple input files or directories. The cmake_parse_arguments() command is now implemented natively. The CMakeParseArguments module remains as an empty placeholder for compatibility. The install(DIRECTORY) command learned to support generator expressions in the list of directories. The CMAKE_ERROR_DEPRECATED variable can now be set using the -Werror=deprecated and -Wno-error=deprecated cmake(1) options. The CMAKE_WARN_DEPRECATED variable can now be set using the -Wdeprecated and -Wno-deprecated cmake(1) options. The VS_GLOBAL_<variable> target property is now implemented for VS 2010 and above. Previously it worked only in VS 2008 and below. The ExternalProject module learned a new GIT_REMOTE_NAME option to control the git clone --origin value. The FindBoost module now provides imported targets such as Boost::boost and Boost::filesystem. The FindFLEX module FLEX_TARGET macro learned a new DEFINES_FILE option to specify a custom output header to be generated. The FindGTest module now provides imported targets. The FindGTK2 module, when GTK2_USE_IMPORTED_TARGETS is enabled, now sets GTK2_LIBRARIES to contain the list of imported targets instead of the paths to the libraries. Moreover it now sets a new GTK2_TARGETS variable containing all the targets imported. The FindOpenMP module learned to support Clang. The FindOpenSSL module gained a new OPENSSL_MSVC_STATIC_RT option to search for libraries using the MSVC static runtime. The FindPNG module now provides imported targets. The FindTIFF module now provides imported targets. A FindXalanC module was introduced to find the Apache Xalan-C++ XSL transform processing library. The FindXercesC module now provides imported targets.
74 lines
2.1 KiB
Makefile
74 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.114 2016/03/14 10:49:55 adam Exp $
|
|
|
|
DISTNAME= cmake-${CMAKE_API}.0
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.cmake.org/files/v${CMAKE_API}/
|
|
|
|
CMAKE_API= 3.5
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.cmake.org/
|
|
COMMENT= Cross platform make
|
|
LICENSE= modified-bsd
|
|
|
|
USE_TOOLS+= gmake
|
|
USE_LANGUAGES= c c++
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_SCRIPT= bootstrap
|
|
|
|
BUILD_TARGET= default_target
|
|
|
|
CONFIGURE_HAS_MANDIR= no
|
|
CONFIGURE_ARGS+= --mandir=/${PKGMANDIR}
|
|
CONFIGURE_ARGS+= --docdir=/share/doc/cmake-${CMAKE_API}
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
|
CONFIGURE_ARGS+= --system-libs
|
|
# jsoncpp requires cmake to build, so use the one provided with cmake
|
|
CONFIGURE_ARGS+= --no-system-jsoncpp
|
|
|
|
LDFLAGS.SunOS+= -lsocket -lnsl
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !empty(MAKE_JOBS)
|
|
CONFIGURE_ARGS+= --parallel=${MAKE_JOBS:Q}
|
|
.endif
|
|
|
|
PLIST_SUBST+= CMAKE_API=${CMAKE_API}
|
|
|
|
# for Source/cmDependsJavaParser.cxx
|
|
UNLIMIT_RESOURCES= datasize
|
|
|
|
# as of 2.4.6, x11 and fortran tests fail in pkgsrc
|
|
TEST_TARGET= test
|
|
|
|
SUBST_CLASSES+= cmake
|
|
SUBST_STAGE.cmake= pre-configure
|
|
SUBST_MESSAGE.cmake= Fixing LOCALBASE and X11 paths.
|
|
SUBST_FILES.cmake+= Modules/FindX11.cmake
|
|
SUBST_FILES.cmake+= Modules/Platform/UnixPaths.cmake
|
|
SUBST_VARS.cmake= LOCALBASE X11BASE
|
|
|
|
SUBST_CLASSES+= flags
|
|
SUBST_STAGE.flags= pre-configure
|
|
SUBST_MESSAGE.flags= Fixing compiler flags.
|
|
SUBST_FILES.flags= Modules/Compiler/*.cmake
|
|
SUBST_SED.flags= -e 's,-O.,,'
|
|
|
|
pre-configure:
|
|
${RM} -f ${WRKSRC}/Modules/*.orig ${WRKSRC}/Modules/Platform/*.orig
|
|
${LN} -f ${WRKSRC}/Modules/Platform/OpenBSD.cmake ${WRKSRC}/Modules/Platform/MirBSD.cmake
|
|
.for lang in C CXX Fortran
|
|
${LN} -f ${WRKSRC}/Modules/Platform/SunOS-GNU-${lang}.cmake \
|
|
${WRKSRC}/Modules/Platform/SunOS-Clang-${lang}.cmake
|
|
.endfor
|
|
|
|
INCOMPAT_CURSES= NetBSD-[0-7].*-*
|
|
|
|
BUILDLINK_API_DEPENDS.libarchive+= libarchive>=3.0.0
|
|
.include "../../archivers/libarchive/buildlink3.mk"
|
|
.include "../../devel/libexecinfo/buildlink3.mk"
|
|
.include "../../mk/curses.buildlink3.mk"
|
|
.include "../../textproc/expat/buildlink3.mk"
|
|
.include "../../www/curl/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|