diff options
author | obrien <obrien@FreeBSD.org> | 2010-09-17 08:46:45 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2010-09-17 08:46:45 +0800 |
commit | cd4c93c1f9939ad2e66c593e997c33727befebf5 (patch) | |
tree | 3210b91d7c632d4129f652389f2b7bcd8b8378e4 /editors/vim | |
parent | 6422d3027e2f07138ebb8a81b7793a827d49048d (diff) | |
download | freebsd-ports-gnome-cd4c93c1f9939ad2e66c593e997c33727befebf5.tar.gz freebsd-ports-gnome-cd4c93c1f9939ad2e66c593e997c33727befebf5.tar.zst freebsd-ports-gnome-cd4c93c1f9939ad2e66c593e997c33727befebf5.zip |
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.
Diffstat (limited to 'editors/vim')
-rw-r--r-- | editors/vim/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
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 |