1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00

Commit the changes to devel/cmake's Makefile that should've been part of r366996.

Still no idea how it wasn't committed.
This commit is contained in:
Raphael Kubo da Costa 2014-09-02 13:39:32 +00:00
parent 5ea4a100dd
commit 9cf4c16732
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=367002

View File

@ -2,10 +2,10 @@
# $FreeBSD$
PORTNAME= cmake
PORTVERSION= 2.8.12.1
PORTREVISION?= 4
PORTVERSION= 3.0.1
PORTREVISION?= 0
CATEGORIES= devel
MASTER_SITES= http://www.cmake.org/files/v2.8/
MASTER_SITES= http://www.cmake.org/files/v3.0/
MAINTAINER= kde@FreeBSD.org
COMMENT?= Cross-platform Makefile generator
@ -18,6 +18,8 @@ CONFIGURE_ENV= MAKE=make
CONFIGURE_ARGS= --prefix=${PREFIX} \
--datadir="/${DATADIR_REL}" \
--docdir="/${DOCSDIR_REL}" \
--sphinx-man \
--system-libs \
--init="${PATCHDIR}/InitialCache.cmake"
.if defined(STRIP) && ${STRIP} != ""
@ -28,6 +30,10 @@ INSTALL_TARGET= install/strip
OPTIONS_DEFINE= DOCS
OPTIONS_SUB= yes
HAS_CONFIGURE= yes
BUILD_DEPENDS= sphinx-build:${PORTSDIR}/textproc/py-sphinx
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
libexpat.so:${PORTSDIR}/textproc/expat2
RUN_DEPENDS= ${LOCALBASE}/share/cmake/Modules/CMake.cmake:${PORTSDIR}/devel/cmake-modules
.endif
@ -46,9 +52,13 @@ post-patch:
${WRKSRC}/Modules/FindDCMTK.cmake
@${FIND} ${WRKSRC} -name "*.bak" -delete -o -name "*.orig" -delete
# 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
.if !defined(CMAKE_MODULES)
post-install:
${INSTALL_DATA} ${WRKSRC}/Docs/cmake-mode.el ${STAGEDIR}${PREFIX}/share/emacs/site-lisp
${INSTALL_DATA} ${WRKSRC}/Auxiliary/cmake-mode.el ${STAGEDIR}${PREFIX}/share/emacs/site-lisp
.endif
.include <bsd.port.mk>