[70407] trunk/dports/devel/cmake
css at macports.org
css at macports.org
Sun Aug 8 07:46:01 PDT 2010
Revision: 70407
http://trac.macports.org/changeset/70407
Author: css at macports.org
Date: 2010-08-08 07:45:57 -0700 (Sun, 08 Aug 2010)
Log Message:
-----------
Force cmake to build with the MacPorts ncurses library rather than the MacOS X curses library by adjusting configure.env and configure.args. That should be sufficient, but a platform variant handles the forced replacement of a configuration variable. refs #25614
Modified Paths:
--------------
trunk/dports/devel/cmake/Portfile
Added Paths:
-----------
trunk/dports/devel/cmake/files/macports.cmake
Modified: trunk/dports/devel/cmake/Portfile
===================================================================
--- 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
===================================================================
--- 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})
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100808/e08d67bf/attachment.html>
More information about the macports-changes
mailing list