2013-03-19 19:00:07 +01:00
|
|
|
# Created by: Kyle Martin <mkm@ieee.org>
|
2002-09-21 02:57:59 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= cmake
|
2016-04-18 11:54:11 +02:00
|
|
|
PORTVERSION= 3.5.2
|
2016-05-17 20:01:15 +02:00
|
|
|
PORTREVISION?= 1
|
2002-09-21 02:57:59 +02:00
|
|
|
CATEGORIES= devel
|
2016-03-22 11:59:54 +01:00
|
|
|
MASTER_SITES= https://www.cmake.org/files/v${PORTVERSION:R}/
|
2002-09-21 02:57:59 +02:00
|
|
|
|
2006-03-31 22:53:43 +02:00
|
|
|
MAINTAINER= kde@FreeBSD.org
|
2013-03-19 19:00:07 +01:00
|
|
|
COMMENT?= Cross-platform Makefile generator
|
2002-09-21 02:57:59 +02:00
|
|
|
|
2014-02-26 10:36:21 +01:00
|
|
|
LICENSE= BSD3CLAUSE
|
2015-12-05 22:16:19 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/Copyright.txt
|
2011-11-10 00:25:19 +01:00
|
|
|
|
2014-03-04 07:01:54 +01:00
|
|
|
USE_KDE4= # env
|
2012-05-03 04:14:57 +02:00
|
|
|
CONFIGURE_ENV= MAKE=make
|
2005-12-23 00:04:47 +01:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
2011-10-17 00:51:26 +02:00
|
|
|
--datadir="/${DATADIR_REL}" \
|
2013-08-03 23:15:54 +02:00
|
|
|
--docdir="/${DOCSDIR_REL}" \
|
2014-09-02 15:39:32 +02:00
|
|
|
--system-libs \
|
2014-09-04 23:20:48 +02:00
|
|
|
--parallel=${MAKE_JOBS_NUMBER} \
|
2013-08-03 23:15:54 +02:00
|
|
|
--init="${PATCHDIR}/InitialCache.cmake"
|
2009-03-24 20:11:23 +01:00
|
|
|
|
2012-07-12 14:00:13 +02:00
|
|
|
.if !defined(CMAKE_MODULES)
|
2015-02-24 17:40:43 +01:00
|
|
|
OPTIONS_DEFINE= DOCS MANPAGES
|
|
|
|
OPTIONS_DEFAULT=MANPAGES
|
2014-03-04 07:01:54 +01:00
|
|
|
OPTIONS_SUB= yes
|
2015-07-20 00:04:44 +02:00
|
|
|
USES+= libarchive
|
2012-07-12 14:00:13 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2014-09-02 15:39:32 +02:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libcurl.so:ftp/curl \
|
|
|
|
libexpat.so:textproc/expat2 \
|
|
|
|
libjsoncpp.so:devel/jsoncpp
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/cmake/Modules/CMake.cmake:devel/cmake-modules
|
2015-02-24 17:40:43 +01:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
MANPAGES_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx
|
2015-02-24 17:40:43 +01:00
|
|
|
MANPAGES_CONFIGURE_ON= --sphinx-man
|
2012-07-12 14:00:13 +02:00
|
|
|
.endif
|
2014-12-30 10:50:59 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(STRIP) && ${STRIP} != "" && !defined(WITH_DEBUG)
|
|
|
|
INSTALL_TARGET= install/strip
|
|
|
|
.endif
|
2002-09-21 02:57:59 +02:00
|
|
|
|
2006-12-09 21:56:44 +01:00
|
|
|
post-patch:
|
2009-08-29 09:15:12 +02:00
|
|
|
@(${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'
|
|
|
|
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
|
|
|
|
${WRKSRC}/Source/cmLocalGenerator.cxx \
|
|
|
|
${WRKSRC}/Source/CPack/cmCPackGenerator.cxx \
|
|
|
|
${WRKSRC}/bootstrap
|
2014-03-04 07:01:54 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,/opt/kde4,${KDE4_PREFIX},g' \
|
2008-08-26 09:58:40 +02:00
|
|
|
${WRKSRC}/Modules/FindKDE4.cmake
|
2011-06-16 16:46:44 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,/usr/include,${LOCALBASE}/include,' \
|
2016-04-01 15:18:17 +02:00
|
|
|
${WRKSRC}/Modules/FindDCMTK.cmake
|
2009-12-09 20:31:57 +01:00
|
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete -o -name "*.orig" -delete
|
2006-12-09 21:56:44 +01:00
|
|
|
|
2014-09-02 15:39:32 +02:00
|
|
|
# cmake-gui(1) is installed by devel/cmake-gui. Remove the man page's source to
|
|
|
|
# prevent it from being built/installed by devel/cmake.
|
|
|
|
${RM} ${WRKSRC}/Help/manual/cmake-gui.1.rst
|
|
|
|
|
2012-07-12 14:00:13 +02:00
|
|
|
.if !defined(CMAKE_MODULES)
|
2011-11-10 00:25:19 +01:00
|
|
|
post-install:
|
2014-09-02 15:39:32 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Auxiliary/cmake-mode.el ${STAGEDIR}${PREFIX}/share/emacs/site-lisp
|
2012-07-12 14:00:13 +02:00
|
|
|
.endif
|
2011-11-10 00:25:19 +01:00
|
|
|
|
2014-12-29 21:10:20 +01:00
|
|
|
.include <bsd.port.post.mk>
|