From 45a32494a21ffa04d305a13fe9a4376cda71caae Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Fri, 17 Sep 2010 00:46:45 +0000 Subject: Enable MAKE_JOBS_SAFE for Vim build so it will build in parallel. This deals with the misspelling of "./auto/osdef.h" in some of the .o dependencies - which is what caused the race condition needing MAKE_JOBS_UNSAFE=yes. --- editors/vim/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'editors/vim') diff --git a/editors/vim/Makefile b/editors/vim/Makefile index 9382d1051958..94a35dd1fbdd 100644 --- a/editors/vim/Makefile +++ b/editors/vim/Makefile @@ -39,7 +39,7 @@ SLAVEDIRS= editors/vim-lite .endif CONFLICTS= vim6* vim*-lite -MAKE_JOBS_UNSAFE= yes +MAKE_JOBS_SAFE= yes USE_BZIP2= yes DIST_SUBDIR= vim WRKSRC= ${WRKDIR}/vim${PORTVERSION:C/\.[0-9]*$//:S/.//g}/src @@ -195,6 +195,9 @@ post-patch: ${REINPLACE_CMD} -e 's,ctags -R \.,${CTAGS_CMD},g') pre-configure: + # Fix dependency misspelling so that 'make -j#' will work. + @${REINPLACE_CMD} -e 's|\./auto/osdef\.h|auto/osdef.h|g' \ + ${WRKSRC}/Makefile @(cd ${WRKSRC} ; ${MAKE} distclean) @${REINPLACE_CMD} -e ' \ s|\$$gtk_config_prefix/bin/gtk-config|\$${GTK_CONFIG}|g; \ @@ -207,6 +210,9 @@ pre-configure: ${WRKSRC}/feature.h .endif +post-configure: + @(cd ${WRKSRC} ; ${MAKE} scratch config) + # Clean up junk files to keep them from being installed. pre-install: @${FIND} ${WRKSRC:H} -type f -name '*.orig' -delete -- cgit v1.2.3