Tested. It works w/o problems.
Opinions/OKs ?
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/cmake/Makefile,v
retrieving revision 1.84
diff -u -p -u -p -r1.84 Makefile
--- Makefile 25 Jun 2013 07:16:46 -0000 1.84
+++ Makefile 28 Jun 2013 11:18:26 -0000
@@ -23,6 +23,8 @@ PERMIT_PACKAGE_CDROM = Yes
WANTLIB = archive c curl curses expat form m \
stdc++ z
+BUILD_DEPENDS = devel/ninja
+
LIB_DEPENDS = archivers/libarchive \
net/curl
@@ -57,9 +59,19 @@ pre-configure:
${WRKSRC}/Modules/FindSDL.cmake \
${WRKSRC}/Modules/FindTCL.cmake
-post-install:
+do-build:
+ cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} ninja -v -j \
+ ${MAKE_JOBS} ${ALL_TARGET}
+
+do-install:
+ cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
+ ${FAKE_SETUP} ninja -v -j ${MAKE_JOBS} ${FAKE_TARGET}
rm ${WRKINST}/${LOCALBASE}/share/cmake/Modules/*.{beforesubst,orig}
rm ${WRKINST}/${LOCALBASE}/share/cmake/Modules/Compiler/*.orig
rm ${WRKINST}/${LOCALBASE}/share/cmake/Modules/Platform/*.orig
+
+do-test:
+ cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} ninja -v -j \
+ ${MAKE_JOBS} ${TEST_FLAGS} ${TEST_TARGET}
.include <bsd.port.mk>
Index: patches/patch-bootstrap
===================================================================
RCS file: patches/patch-bootstrap
diff -N patches/patch-bootstrap
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-bootstrap 28 Jun 2013 11:18:26 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- bootstrap.orig Thu Jun 27 11:26:07 2013
++++ bootstrap Thu Jun 27 11:26:31 2013
+@@ -112,7 +112,7 @@ if ${cmake_system_mingw}; then
+ cmake_bootstrap_generator="MSYS Makefiles"
+ else
+ # Bootstrapping from a standard UNIX prompt.
+- cmake_bootstrap_generator="Unix Makefiles"
++ cmake_bootstrap_generator="Ninja"
+ fi
+
+ # Choose tools and extensions for this platform.