1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/devel/cmake/Makefile
Dirk Meyer 9d3e7dbbd5 - add USE_OPENSSL
PR:		188017
Approved by:	kde
2014-03-28 16:40:46 +00:00

55 lines
1.5 KiB
Makefile

# Created by: Kyle Martin <mkm@ieee.org>
# $FreeBSD$
PORTNAME= cmake
PORTVERSION= 2.8.12.1
PORTREVISION?= 4
CATEGORIES= devel
MASTER_SITES= http://downloads.cmake.org/files/v2.8/
MAINTAINER= kde@FreeBSD.org
COMMENT?= Cross-platform Makefile generator
LICENSE= BSD3CLAUSE
USE_KDE4= # env
USE_OPENSSL= yes
CONFIGURE_ENV= MAKE=make
CONFIGURE_ARGS= --prefix=${PREFIX} \
--datadir="/${DATADIR_REL}" \
--docdir="/${DOCSDIR_REL}" \
--init="${PATCHDIR}/InitialCache.cmake"
.if defined(STRIP) && ${STRIP} != ""
INSTALL_TARGET= install/strip
.endif
.if !defined(CMAKE_MODULES)
OPTIONS_DEFINE= DOCS
OPTIONS_SUB= yes
HAS_CONFIGURE= yes
RUN_DEPENDS= ${LOCALBASE}/share/cmake/Modules/CMake.cmake:${PORTSDIR}/devel/cmake-modules
.endif
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'
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
${WRKSRC}/Source/cmLocalGenerator.cxx \
${WRKSRC}/Source/CPack/cmCPackGenerator.cxx \
${WRKSRC}/bootstrap
@${REINPLACE_CMD} -e 's,/opt/kde4,${KDE4_PREFIX},g' \
${WRKSRC}/Modules/FindKDE4.cmake
@${REINPLACE_CMD} -e 's,/usr/include,${LOCALBASE}/include,' \
${WRKSRC}/Modules/FindDCMTK.cmake
@${FIND} ${WRKSRC} -name "*.bak" -delete -o -name "*.orig" -delete
.if !defined(CMAKE_MODULES)
post-install:
${INSTALL_DATA} ${WRKSRC}/Docs/cmake-mode.el ${STAGEDIR}${PREFIX}/share/emacs/site-lisp
.endif
.include <bsd.port.mk>