# $Id: Portfile 54870 2009-08-03 12:08:54Z css@macports.org $

PortSystem 1.0

name		cmake
version		2.6.4
categories	devel
maintainers	css
description	Cross-platform make
long_description	\
	An extensible, open-source system that manages the build 	\
	process in an operating system and compiler independent manner. \
	Unlike many cross-platform systems, CMake is designed to be 	\
	used in conjunction with the native build environment.
homepage	http://www.cmake.org/
platforms	darwin freebsd
master_sites	http://www.cmake.org/files/v2.6/
checksums	md5 50f387d0436696c4a68b5512a72c9cde \
		sha1 c7e295683e061c2ed19773a1f0444972f75db092 \
		rmd160 e4217067537f76e52317514cb5bb0cf38733d16a

configure.args	--mandir=/share/man --docdir=/share/doc/cmake

post-destroot {
	xinstall -d -m 0755 ${destroot}${prefix}/share/emacs/site-lisp
	xinstall -m 0644 ${worksrcpath}/Docs/cmake-mode.el \
		${destroot}${prefix}/share/emacs/site-lisp
	xinstall -d -m 0755 ${destroot}${prefix}/share/doc/cmake
	xinstall -m 0644 -W ${worksrcpath}/Docs cmake-indent.vim \
		cmake-syntax.vim ${destroot}${prefix}/share/doc/cmake
}

livecheck.check regex
livecheck.regex {Latest Release \((\d(?:\.\d+)*)\)}
livecheck.url	${homepage}cmake/resources/software.html
