[PATCH] enable MAKE_JOBS_SAFE for Vim build

David O'Brien obrien at freebsd.org
Thu Sep 9 18:07:07 UTC 2010


This patch allows me to build Vim in parallel.

Give it a try if you're interested.  Please let me know if you are
UNABLE to build with this patch applied.
[I only need to know of failures, thanks.]

-- 
-- David  (obrien at FreeBSD.org)

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/editors/vim/Makefile,v
retrieving revision 1.356
diff -u -p -r1.356 Makefile
--- Makefile	9 Sep 2010 06:06:28 -0000	1.356
+++ Makefile	9 Sep 2010 07:48:48 -0000
@@ -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


More information about the freebsd-ports mailing list