2002-09-21 02:57:59 +02:00
|
|
|
# New ports collection makefile for: cmake
|
|
|
|
# Date created: March 18 2002
|
|
|
|
# Whom: Kyle Martin <mkm@ieee.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cmake
|
2011-10-22 05:36:12 +02:00
|
|
|
PORTVERSION= 2.8.6
|
2002-09-21 02:57:59 +02:00
|
|
|
CATEGORIES= devel
|
2010-11-17 16:44:41 +01:00
|
|
|
MASTER_SITES= http://www.${PORTNAME}.org/files/v${PORTVERSION:C/\.[[:digit:]]+$//}/
|
2002-09-21 02:57:59 +02:00
|
|
|
|
2006-03-31 22:53:43 +02:00
|
|
|
MAINTAINER= kde@FreeBSD.org
|
2010-01-25 21:10:06 +01:00
|
|
|
COMMENT= A cross-platform Makefile generator
|
2002-09-21 02:57:59 +02:00
|
|
|
|
2005-12-23 00:04:47 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
2011-10-17 00:51:26 +02:00
|
|
|
--datadir="/${DATADIR_REL}" \
|
|
|
|
--docdir="/${DOCSDIR_REL}"
|
2006-03-31 22:53:43 +02:00
|
|
|
CONFIGURE_ENV= MAKE=make
|
2002-10-25 08:27:22 +02:00
|
|
|
|
2009-03-24 20:11:23 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
|
2011-10-17 00:51:26 +02:00
|
|
|
.if defined(STRIP) && ${STRIP} != ""
|
|
|
|
INSTALL_TARGET= install/strip
|
2009-03-24 20:11:23 +01:00
|
|
|
.endif
|
|
|
|
|
2008-05-28 00:12:09 +02:00
|
|
|
MAN1= ccmake.1 \
|
|
|
|
cmake.1 \
|
|
|
|
cmakecommands.1 \
|
|
|
|
cmakecompat.1 \
|
|
|
|
cmakemodules.1 \
|
2008-08-10 17:43:46 +02:00
|
|
|
cmakepolicies.1 \
|
2008-05-28 00:12:09 +02:00
|
|
|
cmakeprops.1 \
|
|
|
|
cmakevars.1 \
|
|
|
|
cpack.1 \
|
|
|
|
ctest.1
|
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
|
2008-08-26 09:58:40 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,/opt/kde4,${LOCALBASE}/kde4,g' \
|
|
|
|
${WRKSRC}/Modules/FindKDE4.cmake
|
2011-06-16 16:46:44 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,/usr/include,${LOCALBASE}/include,' \
|
|
|
|
${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
|
|
|
|
2002-09-21 02:57:59 +02:00
|
|
|
.include <bsd.port.mk>
|