Ticket #23166: Portfile

File Portfile, 1.6 KB (added by aeppert@…, 14 years ago)
Line 
1PortSystem 1.0
2PortGroup       muniversal 1.0
3
4name            cmake
5version         2.8.0
6revision        1
7categories      devel
8maintainers     css
9description     Cross-platform make
10long_description        \
11        An extensible, open-source system that manages the build        \
12        process in an operating system and compiler independent manner. \
13        Unlike many cross-platform systems, CMake is designed to be     \
14        used in conjunction with the native build environment.
15homepage        http://www.cmake.org/
16platforms       darwin freebsd
17master_sites    http://www.cmake.org/files/v2.8/
18checksums       md5 3b3679b8a6afaedc38a8c15dd7ff4fcf \
19                sha1 c35cb0d787c53aee768b154f05b68d3a20eccb3d \
20                rmd160 27e80a14b4970d85b12aaf18fbe738c02dc0620f
21
22depends_build   port:libidn \
23                port:openssl
24
25configure.args  --mandir=/share/man --docdir=/share/doc/cmake --parallel=${build.jobs}
26patchfiles      patch-CMakeFindFrameworks.cmake.diff
27post-patch {
28        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Modules/CMakeFindFrameworks.cmake
29}
30
31post-destroot {
32        xinstall -d -m 0755 ${destroot}${prefix}/share/emacs/site-lisp
33        xinstall -m 0644 ${worksrcpath}/Docs/cmake-mode.el \
34                ${destroot}${prefix}/share/emacs/site-lisp
35        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/cmake
36        xinstall -m 0644 -W ${worksrcpath}/Docs cmake-indent.vim \
37                cmake-syntax.vim ${destroot}${prefix}/share/doc/cmake
38}
39
40livecheck.type  regex
41livecheck.regex {Latest Release \((\d(?:\.\d+)*)\)}
42livecheck.url   ${homepage}cmake/resources/software.html
43