Add a new _OPSYS_HAS_GMAKE definition, to denote that the OS has GNU make

as standard.

Hoist the default definition of ${GMAKE} from bsd.pkg.mk into the different
defs.${OPSYS}.mk files.

A non-standard location or name for GMAKE can still be specified in
/etc/mk.conf.
This commit is contained in:
agc 2001-12-19 10:29:11 +00:00
parent b467958c66
commit f42759a800
5 changed files with 15 additions and 6 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: bsd.pkg.mk,v 1.881 2001/12/15 20:25:38 agc Exp $
# $NetBSD: bsd.pkg.mk,v 1.882 2001/12/19 10:29:11 agc Exp $
#
# This file is in the public domain.
#
@ -144,9 +144,10 @@ IGNORE+= "${PKGNAME} uses imake, but the buildlink-x11 package was found." \
.endif # USE_IMAKE && !USE_BUILDLINK_X11
.if defined(USE_GMAKE)
. if ${_OPSYS_HAS_GMAKE} == "no"
BUILD_DEPENDS+= gmake>=3.78:../../devel/gmake
. endif
MAKE_PROGRAM= ${GMAKE}
GMAKE?= gmake
.else
. if defined(USE_IMAKE)
MAKE_PROGRAM= ${_IMAKE_MAKE}

View file

@ -1,4 +1,4 @@
# $NetBSD: defs.Darwin.mk,v 1.14 2001/11/21 14:10:07 agc Exp $
# $NetBSD: defs.Darwin.mk,v 1.15 2001/12/19 10:29:11 agc Exp $
#
# Variable definitions for the Darwin operating system.
@ -18,6 +18,7 @@ EGREP?= /usr/bin/egrep
FALSE?= false # Shell builtin
FILE_CMD?= /usr/bin/file
FIND?= /usr/bin/find
GMAKE?= /usr/bin/make
GREP?= /usr/bin/grep
GTAR?= /usr/bin/tar
GUNZIP_CMD?= /usr/bin/gunzip -f
@ -67,6 +68,7 @@ ZOULARISBASE?= ${DESTDIR}/usr/pkg
_DO_LIBINTL_CHECKS= yes # perform checks for valid libintl
_DO_SHLIB_CHECKS= no # on installation, fixup PLIST for shared libs
_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
_OPSYS_HAS_GMAKE= yes # GNU make is standard
_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
_PATCH_BACKUP_ARG= -z # switch to patch(1) for backup file

View file

@ -1,4 +1,4 @@
# $NetBSD: defs.Linux.mk,v 1.20 2001/11/21 14:10:07 agc Exp $
# $NetBSD: defs.Linux.mk,v 1.21 2001/12/19 10:29:11 agc Exp $
#
# Variable definitions for the Linux operating system.
@ -18,6 +18,7 @@ EGREP?= /bin/egrep
FALSE?= /bin/false
FILE_CMD?= /usr/bin/file
FIND?= /usr/bin/find
GMAKE?= /usr/bin/make
GREP?= /bin/grep
GTAR?= /bin/tar
GUNZIP_CMD?= /usr/bin/gunzip -f
@ -71,6 +72,7 @@ ZOULARISBASE?= ${DESTDIR}/usr/local/bsd
_DO_LIBINTL_CHECKS= no # perform checks for valid libintl
_DO_SHLIB_CHECKS= no # on installation, fixup PLIST for shared libs
_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
_OPSYS_HAS_GMAKE= yes # GNU make is standard
_OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages
_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
_PATCH_BACKUP_ARG= -z # switch to patch(1) for backup file

View file

@ -1,4 +1,4 @@
# $NetBSD: defs.NetBSD.mk,v 1.18 2001/11/21 14:10:07 agc Exp $
# $NetBSD: defs.NetBSD.mk,v 1.19 2001/12/19 10:29:11 agc Exp $
#
# Variable definitions for the NetBSD operating system.
@ -18,6 +18,7 @@ EGREP?= /usr/bin/egrep
FALSE?= false # Shell builtin
FILE_CMD?= /usr/bin/file
FIND?= /usr/bin/find
GMAKE?= ${LOCALBASE}/bin/gmake
GREP?= /usr/bin/grep
GTAR?= /usr/bin/tar
GUNZIP_CMD?= /usr/bin/gunzip -f
@ -73,6 +74,7 @@ ROOT_GROUP?= wheel
_DO_LIBINTL_CHECKS= yes # perform checks for valid libintl
_DO_SHLIB_CHECKS= yes # fixup PLIST for shared libs/run ldconfig
_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
_OPSYS_HAS_GMAKE= no # GNU make is not standard
_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
_OPSYS_HAS_OSSAUDIO= yes # libossaudio is available
_PATCH_BACKUP_ARG= -b # switch to patch(1) to provide a backup file

View file

@ -1,4 +1,4 @@
# $NetBSD: defs.SunOS.mk,v 1.18 2001/12/17 09:36:31 tron Exp $
# $NetBSD: defs.SunOS.mk,v 1.19 2001/12/19 10:29:11 agc Exp $
#
# Variable definitions for the SunOS/Solaris operating system.
@ -18,6 +18,7 @@ EGREP?= /usr/xpg4/bin/egrep
FALSE?= /usr/bin/false
FILE_CMD?= /usr/bin/file
FIND?= /usr/bin/find
GMAKE?= ${LOCALBASE}/bin/gmake
GREP?= /usr/bin/grep
GTAR?= ${ZOULARISBASE}/bin/tar
.if exists(/usr/bin/gzip)
@ -76,6 +77,7 @@ USERADD?= /usr/sbin/useradd
_DO_LIBINTL_CHECKS= yes # perform checks for valid libintl
_DO_SHLIB_CHECKS= yes # fixup PLIST for shared libs
_IMAKE_MAKE= /usr/ccs/bin/make # program which gets invoked by imake
_OPSYS_HAS_GMAKE= no # GNU make is not standard
_OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages
_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
_PATCH_BACKUP_ARG= -z # switch to patch(1) for backup file