freebsd-ports/devel/cmake/Makefile
Martin Wilke 18506f2253 - Update to 2.6.2
- Remove CMAKE_BUILD_TYPE [1]

CMAKE_BUILD_TYPE only affects compiler FLAGS and linking with specific
library versions  (debug |optimized | general).

In our case external libraries reside in other ports and only install
one version (no separate debug/optimized). Also, the ports system
provide correct compiler flags (-g and no optimizations when WITH_DEBUG
is used). Thus, cmake buildtypes only add extra compiler flags. Ports will
be built correctly both by default and for WITH_DEBUG case.

- Also, change WRKSRC to CONFIGURE_WRKSRC. (use CONFIGURE_WRKSRC for configure
  target instead of WRKSRC)

PR:		126507 [1]
Submitted by:	amdmi3@ [1]
Tested with:	exp-run
Thanks to:	pav/amdmi3
2009-01-30 19:25:22 +00:00

41 lines
970 B
Makefile

# New ports collection makefile for: cmake
# Date created: March 18 2002
# Whom: Kyle Martin <mkm@ieee.org>
#
# $FreeBSD$
#
PORTNAME= cmake
PORTVERSION= 2.6.2
CATEGORIES= devel
MASTER_SITES= http://www.cmake.org/files/v${PORTVERSION:C/\.[[:digit:]]+$//}/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=lofi
MAINTAINER= kde@FreeBSD.org
COMMENT= A cross-platform make
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} \
--datadir=${DATADIR:S|^${PREFIX}||} \
--docdir=${DOCSDIR:S|^${PREFIX}||}
CONFIGURE_ENV= MAKE=make
MAN1= ccmake.1 \
cmake.1 \
cmakecommands.1 \
cmakecompat.1 \
cmakemodules.1 \
cmakepolicies.1 \
cmakeprops.1 \
cmakevars.1 \
cpack.1 \
ctest.1
post-patch:
@${GREP} -rl '/usr/X11R6' ${WRKSRC}/Modules ${WRKSRC}/Tests | \
${XARGS} ${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g'
@${REINPLACE_CMD} -e 's,/opt/kde4,${LOCALBASE}/kde4,g' \
${WRKSRC}/Modules/FindKDE4.cmake
.include <bsd.port.mk>