Modified: trunk/dports/devel/cmake/Portfile (70406 => 70407)
--- trunk/dports/devel/cmake/Portfile 2010-08-08 13:24:41 UTC (rev 70406)
+++ trunk/dports/devel/cmake/Portfile 2010-08-08 14:45:57 UTC (rev 70407)
@@ -6,7 +6,7 @@
name cmake
version 2.8.2
-revision 1
+revision 2
set branch [join [lrange [split ${version} .] 0 1] .]
categories devel
maintainers css
@@ -26,13 +26,24 @@
depends_lib port:libidn port:openssl
-configure.env CMAKE_PREFIX_PATH=${prefix}
-configure.args --mandir=/share/man --docdir=/share/doc/cmake --parallel=${build.jobs}
+configure.env CMAKE_PREFIX_PATH=${prefix} \
+ CMAKE_INCLUDE_PATH=${prefix}/include/ncurses \
+ CMAKE_LIBRARY_PATH=${prefix}/lib
+
+configure.args --mandir=/share/man --docdir=/share/doc/cmake \
+ --parallel=${build.jobs} \
+ --init=${filespath}/macports.cmake
patchfiles patch-CMakeFindFrameworks.cmake.diff
post-patch {
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Modules/CMakeFindFrameworks.cmake
}
+platform darwin {
+ post-configure {
+ reinplace "s|/usr/lib/libcurses|${prefix}/lib/libncurses|g" ${worksrcpath}/CMakeCache.txt
+ }
+}
+
post-destroot {
xinstall -d -m 0755 ${destroot}${prefix}/share/emacs/site-lisp
xinstall -m 0644 ${worksrcpath}/Docs/cmake-mode.el \
Added: trunk/dports/devel/cmake/files/macports.cmake (0 => 70407)
--- trunk/dports/devel/cmake/files/macports.cmake (rev 0)
+++ trunk/dports/devel/cmake/files/macports.cmake 2010-08-08 14:45:57 UTC (rev 70407)
@@ -0,0 +1,4 @@
+# Use ncurses to use the MacPorts ncurses
+set(CURSES_USE_NCURSES TRUE)
+set(CURSES_NEED_NCURSES TRUE)
+set(CURSES_CURSES_LIBRARY ${CURSES_NCURSES_LIBRARY})