Date: Thu, 9 Sep 2010 10:38:40 -0700 From: "David O'Brien" <obrien@freebsd.org> To: ports@freebsd.org Subject: [PATCH] enable MAKE_JOBS_SAFE for Vim build Message-ID: <20100909173840.GA32701@dragon.NUXI.org>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100909173840.GA32701>