diff options
author | xtraeme <xtraeme> | 2004-05-02 20:04:36 +0000 |
---|---|---|
committer | xtraeme <xtraeme> | 2004-05-02 20:04:36 +0000 |
commit | 01bb13805fc5a0c4c986a78f86408499d2f5d9ad (patch) | |
tree | a44e94856c601665205a8e448a0c11c0c9d4e81d /sysutils/grub | |
parent | 4d5ffdd243cb6130080fc5cd0c17bad3417bac25 (diff) | |
download | pkgsrc-01bb13805fc5a0c4c986a78f86408499d2f5d9ad.tar.gz |
Rename GRUB_ISO9660 and GRUB_UFS2 to GRUB_USE_ISO9660 and GRUB_USE_UFS2
respectively, and document them in bsd.pkg.defaults.mk.
Diffstat (limited to 'sysutils/grub')
-rw-r--r-- | sysutils/grub/Makefile | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sysutils/grub/Makefile b/sysutils/grub/Makefile index bba51538c64..6c29aaa510f 100644 --- a/sysutils/grub/Makefile +++ b/sysutils/grub/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2004/05/02 17:00:14 xtraeme Exp $ +# $NetBSD: Makefile,v 1.25 2004/05/02 20:04:36 xtraeme Exp $ # DISTNAME= grub-0.94 @@ -25,8 +25,8 @@ BUILDLINK_TRANSFORM+= S:-fno-builtin:-ffreestanding: BUILD_DEFS+= GRUB_NETWORK_CARDS BUILD_DEFS+= GRUB_PRESET_COMMAND BUILD_DEFS+= GRUB_SCAN_ARGS -BUILD_DEFS+= GRUB_ISO9660 -BUILD_DEFS+= GRUB_UFS2 +BUILD_DEFS+= GRUB_USE_ISO9660 +BUILD_DEFS+= GRUB_USE_UFS2 .if defined(GRUB_NETWORK_CARDS) CONFIGURE_ARGS+= --enable-diskless @@ -55,8 +55,7 @@ post-extract: CONFIGURE_ARGS+= ${GRUB_SCAN_ARGS} .endif -# eltorito support for GRUB -.if defined(GRUB_ISO9660) +.if !empty(GRUB_USE_ISO9660:M[Yy][Ee][Ss]) CONFIGURE_ARGS+= --enable-iso9660 PATCHFILES+= grub-0.94-iso9660.diff SITES_grub-0.94-iso9660.diff=ftp://ftp.netbsd.org/pub/NetBSD/misc/xtraeme/ @@ -66,8 +65,7 @@ PLIST_SUBST+= ISO9660= PLIST_SUBST+= ISO9660="@comment " .endif -# UFS2 support for GRUB -.if defined(GRUB_UFS2) +.if !empty(GRUB_USE_UFS2:M[Yy][Ee][Ss]) CONFIGURE_ARGS+= --enable-ufs2 PATCHFILES+= patch-ufs2 SITES_patch-ufs2=http://sources.freebsd.org/HEAD/ports/sysutils/grub/files/ @@ -77,7 +75,8 @@ PLIST_SUBST+= UFS2= PLIST_SUBST+= UFS2="@comment " .endif -.if defined(GRUB_ISO9660) || defined(GRUB_UFS2) +.if (!empty(GRUB_USE_ISO9660:M[Yy][Ee][Ss]) || \ + !empty(GRUB_USE_UFS2:M[Yy][Ee][Ss])) pre-configure: cd ${WRKSRC}; \ ${ACLOCAL}; \ @@ -87,8 +86,9 @@ pre-configure: .include "../../mk/automake.mk" .endif -.if defined(GRUB_ISO9660) && defined(GRUB_UFS2) -PKG_FAIL_REASON+= "Please use GRUB_ISO9660 or GRUB_UFS2, but not both." +.if (!empty(GRUB_USE_ISO9660:M[Yy][Ee][Ss]) && \ + !empty(GRUB_USE_UFS2:M[Yy][Ee][Ss])) +PKG_FAIL_REASON+= "Please use GRUB_USE_ISO9660 or GRUB_USE_UFS2, but not both." .endif .include "../../devel/binutils/buildlink3.mk" |