diff options
Diffstat (limited to 'sysutils/grub/Makefile')
-rw-r--r-- | sysutils/grub/Makefile | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/sysutils/grub/Makefile b/sysutils/grub/Makefile index 48d581dc16b..6a23b47ca32 100644 --- a/sysutils/grub/Makefile +++ b/sysutils/grub/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.34 2005/08/21 15:08:46 jmmv Exp $ +# $NetBSD: Makefile,v 1.35 2005/09/24 00:15:03 jlam Exp $ # DISTNAME= grub-0.97 @@ -25,6 +25,9 @@ BUILD_DEFS+= GRUB_NETWORK_CARDS BUILD_DEFS+= GRUB_PRESET_COMMAND BUILD_DEFS+= GRUB_SCAN_ARGS +.include "../../devel/binutils/buildlink3.mk" +.include "../../devel/ncurses/buildlink3.mk" + .if defined(GRUB_NETWORK_CARDS) CONFIGURE_ARGS+= --enable-diskless PLIST_SUBST+= NETBOOT= @@ -33,7 +36,8 @@ PLIST_SUBST+= NETBOOT= CONFIGURE_ARGS+= --enable-${GRUB_NETWORK_CARD} .endfor -post-install: +post-install: grub-netboot-install +grub-netboot-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/grub ${INSTALL_DATA} ${WRKSRC}/netboot/README.netboot \ ${PREFIX}/share/doc/grub @@ -44,7 +48,8 @@ PLIST_SUBST+= NETBOOT="@comment " .if defined(GRUB_PRESET_COMMAND) && !empty(GRUB_PRESET_COMMAND) CONFIGURE_ARGS+= --enable-preset-menu=${WRKSRC}/presetmenu -post-extract: +post-extract: grub-presetmenu +grub-presetmenu: ${ECHO} ${GRUB_PRESET_COMMAND} > ${WRKSRC}/presetmenu .endif @@ -52,6 +57,14 @@ post-extract: CONFIGURE_ARGS+= ${GRUB_SCAN_ARGS} .endif -.include "../../devel/binutils/buildlink3.mk" -.include "../../devel/ncurses/buildlink3.mk" +SUBST_CLASSES+= grubterm +SUBST_STAGE.grubterm= post-patch +SUBST_MESSAGE.grubterm= "Changing references to <term.h> to <grubterm.h>" +SUBST_FILES.grubterm= grub/*.c stage2/Makefile.in stage2/*.c +SUBST_SED.grubterm= -e "s,<term.h>,<grubterm.h>,g" \ + -e "s, term.h , grubterm.h ,g" + +post-extract: + ${MV} ${WRKSRC}/stage2/term.h ${WRKSRC}/stage2/grubterm.h + .include "../../mk/bsd.pkg.mk" |