diff --git a/en_US.ISO8859-1/books/porters-handbook/slow-porting/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/slow-porting/chapter.xml index cf16730786..de1227ac82 100644 --- a/en_US.ISO8859-1/books/porters-handbook/slow-porting/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/slow-porting/chapter.xml @@ -492,6 +492,34 @@ BAR_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-bar.c \ ${PATCHDIR}/extra-patch-bar.h + + Using <varname>EXTRA_PATCHES</varname> With a + Directory + + Sometime, there are many patches that are needed for a + feature, in this case, it is possible to point + EXTRA_PATCHES to a directory, and it will + automatically apply all files named + patch-* in + it. + + Create a subdirectory in + ${PATCHDIR}, and move the patches in + it. For example: + + &prompt.user; ls -l files/foo-patches +-rw-r--r-- 1 root wheel 350 Jan 16 01:27 patch-Makefile.in +-rw-r--r-- 1 root wheel 3084 Jan 18 15:37 patch-configure + + Then add this to the Makefile: + + OPTIONS_DEFINE= FOO +FOO_EXTRA_PATCHES= ${PATCHDIR}/foo-patches + + The framework will then use all the files named + patch-* in + that directory. +