aboutsummaryrefslogtreecommitdiff
path: root/devel/cmake/Makefile
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2015-01-04 22:18:02 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2015-01-04 22:18:02 +0000
commit8201ec1103f7d3c42f63f7481c6835551d7e8740 (patch)
tree6165c3e3a8303b631136d154b0659891d10fa7d8 /devel/cmake/Makefile
parentf3d680f305a8097aaa107efaed36403bbb046bb3 (diff)
Notes
Diffstat (limited to 'devel/cmake/Makefile')
-rw-r--r--devel/cmake/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/devel/cmake/Makefile b/devel/cmake/Makefile
index 2cf4f0f2e24a..13ee0be087fe 100644
--- a/devel/cmake/Makefile
+++ b/devel/cmake/Makefile
@@ -2,10 +2,10 @@
# $FreeBSD$
PORTNAME= cmake
-PORTVERSION= 3.0.2
+PORTVERSION= 3.1.0
PORTREVISION?= 0
CATEGORIES= devel
-MASTER_SITES= http://www.cmake.org/files/v3.0/
+MASTER_SITES= http://www.cmake.org/files/v3.1/
MAINTAINER= kde@FreeBSD.org
COMMENT?= Cross-platform Makefile generator
@@ -13,7 +13,6 @@ COMMENT?= Cross-platform Makefile generator
LICENSE= BSD3CLAUSE
USE_KDE4= # env
-USE_OPENSSL= yes
CONFIGURE_ENV= MAKE=make
CONFIGURE_ARGS= --prefix=${PREFIX} \
--datadir="/${DATADIR_REL}" \
@@ -40,6 +39,14 @@ RUN_DEPENDS= ${LOCALBASE}/share/cmake/Modules/CMake.cmake:${PORTSDIR}/devel/cmak
INSTALL_TARGET= install/strip
.endif
+.if !defined(CMAKE_MODULES)
+# CMake >= 3.1.0 needs libarchive3 because it calls
+# archive_entry_copy_sourcepath_w and archive_write_set_format_7zip.
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000009
+LIB_DEPENDS+= libarchive.so.13:${PORTSDIR}/archivers/libarchive
+.endif # ${OPSYS} == FreeBSD && ${OSVERSION} < 1000009
+.endif # !defined(CMAKE_MODULES)
+
post-patch:
@(${FIND} ${WRKSRC}/Modules -name "*.cmake" -print0; \
${FIND} ${WRKSRC}/Tests -name "CMakeLists.txt" -print0 ) | \