[PATCH] enable MAKE_JOBS_SAFE for Vim build
David DEMELIER
demelier.david at gmail.com
Mon Sep 13 14:42:40 UTC 2010
2010/9/9 David O'Brien <obrien at freebsd.org>:
> 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
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>
Here it works, just missing real OPTIONS framework and this port will
be perfect :-).
Kind regards,
--
Demelier David
More information about the freebsd-ports
mailing list