Switch CMake to use ninja to build itself.
OK espie@; makes sense to sthen@
This commit is contained in:
parent
b3651ec943
commit
2e1751cd73
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.84 2013/06/25 07:16:46 dcoppa Exp $
|
||||
# $OpenBSD: Makefile,v 1.85 2013/06/28 14:58:23 dcoppa Exp $
|
||||
|
||||
VMEM_WARNING = Yes
|
||||
DPB_PROPERTIES =parallel
|
||||
@ -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>
|
||||
|
15
devel/cmake/patches/patch-bootstrap
Normal file
15
devel/cmake/patches/patch-bootstrap
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-bootstrap,v 1.3 2013/06/28 14:58:23 dcoppa Exp $
|
||||
|
||||
Use Ninja to build CMake
|
||||
|
||||
--- 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.
|
Loading…
Reference in New Issue
Block a user