44cfcd60fb
profiles, so that CMake can be used outside of ports. - Bump CMake PORTREVISION. - Pass default build flags (at least I hope) via bsd.cmake.mk. PR: 159276 Submitted by: Igor Soumenkov <2igosha@gmail.com> Approved by: avilla (mentor)
55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
# New ports collection makefile for: cmake
|
|
# Date created: March 18 2002
|
|
# Whom: Kyle Martin <mkm@ieee.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cmake
|
|
PORTVERSION= 2.8.4
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.${PORTNAME}.org/files/v${PORTVERSION:C/\.[[:digit:]]+$//}/
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= A cross-platform Makefile generator
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
|
--datadir=${DATADIR:S|^${PREFIX}||} \
|
|
--docdir=${DOCSDIR:S|^${PREFIX}||}
|
|
CONFIGURE_ENV= MAKE=make
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
.if !defined(WITH_DEBUG)
|
|
INSTALL_TARGET=install/strip
|
|
.endif
|
|
|
|
MAN1= ccmake.1 \
|
|
cmake.1 \
|
|
cmakecommands.1 \
|
|
cmakecompat.1 \
|
|
cmakemodules.1 \
|
|
cmakepolicies.1 \
|
|
cmakeprops.1 \
|
|
cmakevars.1 \
|
|
cpack.1 \
|
|
ctest.1
|
|
|
|
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,${LOCALBASE}/kde4,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
|
|
|
|
.include <bsd.port.mk>
|