2002-01-19 22:29:41 +01:00
|
|
|
# $NetBSD: defs.NetBSD.mk,v 1.20 2002/01/19 21:29:41 agc Exp $
|
2001-06-12 14:49:55 +02:00
|
|
|
#
|
|
|
|
# Variable definitions for the NetBSD operating system.
|
|
|
|
|
|
|
|
AWK?= /usr/bin/awk
|
|
|
|
BASENAME?= /usr/bin/basename
|
|
|
|
CAT?= /bin/cat
|
|
|
|
CHMOD?= /bin/chmod
|
|
|
|
CHOWN?= /usr/sbin/chown
|
|
|
|
CHGRP?= /usr/bin/chgrp
|
2001-07-13 08:16:02 +02:00
|
|
|
CMP?= /usr/bin/cmp
|
2001-06-12 14:49:55 +02:00
|
|
|
CP?= /bin/cp
|
|
|
|
CUT?= /usr/bin/cut
|
|
|
|
DC?= /usr/bin/dc
|
2001-06-18 21:58:55 +02:00
|
|
|
DIRNAME?= /usr/bin/dirname
|
2001-06-12 14:49:55 +02:00
|
|
|
ECHO?= echo # Shell builtin
|
|
|
|
EGREP?= /usr/bin/egrep
|
|
|
|
FALSE?= false # Shell builtin
|
2001-07-15 14:40:03 +02:00
|
|
|
FILE_CMD?= /usr/bin/file
|
2001-06-12 14:49:55 +02:00
|
|
|
FIND?= /usr/bin/find
|
2001-12-19 11:29:11 +01:00
|
|
|
GMAKE?= ${LOCALBASE}/bin/gmake
|
2001-06-12 14:49:55 +02:00
|
|
|
GREP?= /usr/bin/grep
|
|
|
|
GTAR?= /usr/bin/tar
|
|
|
|
GUNZIP_CMD?= /usr/bin/gunzip -f
|
|
|
|
GZCAT?= /usr/bin/gzcat
|
|
|
|
GZIP?= -9
|
|
|
|
GZIP_CMD?= /usr/bin/gzip -nf ${GZIP}
|
|
|
|
HEAD?= /usr/bin/head
|
|
|
|
ID?= /usr/bin/id
|
|
|
|
LDCONFIG?= /sbin/ldconfig
|
|
|
|
LN?= /bin/ln
|
|
|
|
LS?= /bin/ls
|
|
|
|
MKDIR?= /bin/mkdir -p
|
|
|
|
MTREE?= /usr/sbin/mtree
|
|
|
|
MV?= /bin/mv
|
|
|
|
PATCH?= /usr/bin/patch
|
|
|
|
PAX?= /bin/pax
|
|
|
|
PKGLOCALEDIR?= share
|
2002-01-19 22:29:41 +01:00
|
|
|
PS?= /bin/ps
|
2001-06-12 14:49:55 +02:00
|
|
|
RM?= /bin/rm
|
|
|
|
RMDIR?= /bin/rmdir
|
|
|
|
SED?= /usr/bin/sed
|
|
|
|
SETENV?= /usr/bin/env
|
|
|
|
SH?= /bin/sh
|
2002-01-19 22:29:41 +01:00
|
|
|
SHLOCK= /usr/bin/shlock
|
2001-06-12 15:16:09 +02:00
|
|
|
SORT?= /usr/bin/sort
|
2001-06-12 14:49:55 +02:00
|
|
|
SU?= /usr/bin/su
|
|
|
|
TAIL?= /usr/bin/tail
|
|
|
|
TEST?= test # Shell builtin
|
|
|
|
TOUCH?= /usr/bin/touch
|
|
|
|
TR?= /usr/bin/tr
|
|
|
|
TRUE?= true # Shell builtin
|
|
|
|
TYPE?= type # Shell builtin
|
2001-06-12 15:16:09 +02:00
|
|
|
WC?= /usr/bin/wc
|
2001-06-12 14:49:55 +02:00
|
|
|
XARGS?= /usr/bin/xargs
|
2001-11-19 17:17:51 +01:00
|
|
|
|
|
|
|
.if exists(/usr/sbin/user)
|
|
|
|
USERADD?= /usr/sbin/useradd
|
|
|
|
GROUPADD?= /usr/sbin/groupadd
|
|
|
|
.else
|
|
|
|
USERADD?= ${LOCALBASE}/sbin/useradd
|
|
|
|
GROUPADD?= ${LOCALBASE}/sbin/groupadd
|
|
|
|
.if defined(USE_USERADD) || defined(USE_GROUPADD)
|
|
|
|
DEPENDS+= user>=20000313:../../sysutils/user
|
|
|
|
.endif
|
2001-11-20 17:53:44 +01:00
|
|
|
.endif
|
2001-11-21 13:42:23 +01:00
|
|
|
|
2001-11-21 15:10:06 +01:00
|
|
|
DEF_UMASK?= 0022
|
2001-11-21 14:54:14 +01:00
|
|
|
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
|
|
|
|
MOTIF12_TYPE_DEFAULT?= lesstif12 # default 1.2 compatible libs type
|
2001-11-21 15:10:06 +01:00
|
|
|
NOLOGIN?= /sbin/nologin
|
|
|
|
PKG_TOOLS_BIN?= /usr/sbin
|
|
|
|
ROOT_USER?= root
|
2001-11-20 17:19:20 +01:00
|
|
|
ROOT_GROUP?= wheel
|
2001-11-21 13:53:04 +01:00
|
|
|
|
2001-11-21 13:58:15 +01:00
|
|
|
_DO_LIBINTL_CHECKS= yes # perform checks for valid libintl
|
2001-11-21 14:17:14 +01:00
|
|
|
_DO_SHLIB_CHECKS= yes # fixup PLIST for shared libs/run ldconfig
|
2001-11-21 14:44:44 +01:00
|
|
|
_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
|
2001-12-19 11:29:11 +01:00
|
|
|
_OPSYS_HAS_GMAKE= no # GNU make is not standard
|
2001-11-21 14:44:44 +01:00
|
|
|
_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
|
2001-11-21 14:57:31 +01:00
|
|
|
_OPSYS_HAS_OSSAUDIO= yes # libossaudio is available
|
2001-11-21 14:44:44 +01:00
|
|
|
_PATCH_BACKUP_ARG= -b # switch to patch(1) to provide a backup file
|
|
|
|
_PREFORMATTED_MAN_DIR= cat # directory where catman pages are
|
|
|
|
_USE_RPATH= yes # add rpath to LDFLAGS
|
2001-11-21 15:10:06 +01:00
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} == alpha)
|
|
|
|
DEFAULT_SERIAL_DEVICE?= /dev/ttyC0
|
|
|
|
SERIAL_DEVICES?= /dev/ttyC0 \
|
|
|
|
/dev/ttyC1
|
|
|
|
.elif (${MACHINE_ARCH} == "i386")
|
|
|
|
DEFAULT_SERIAL_DEVICE?= /dev/tty00
|
|
|
|
SERIAL_DEVICES?= /dev/tty00 \
|
|
|
|
/dev/tty01
|
|
|
|
.elif (${MACHINE_ARCH} == m68k)
|
|
|
|
DEFAULT_SERIAL_DEVICE?= /dev/tty00
|
|
|
|
SERIAL_DEVICES?= /dev/tty00 \
|
|
|
|
/dev/tty01
|
|
|
|
.elif (${MACHINE_ARCH} == mipsel)
|
|
|
|
DEFAULT_SERIAL_DEVICE?= /dev/ttyC0
|
|
|
|
SERIAL_DEVICES?= /dev/ttyC0 \
|
|
|
|
/dev/ttyC1
|
|
|
|
.elif (${MACHINE_ARCH} == "sparc")
|
|
|
|
DEFAULT_SERIAL_DEVICE?= /dev/ttya
|
|
|
|
SERIAL_DEVICES?= /dev/ttya \
|
|
|
|
/dev/ttyb
|
|
|
|
.else
|
|
|
|
DEFAULT_SERIAL_DEVICE?= /dev/null
|
|
|
|
SERIAL_DEVICES?= /dev/null
|
|
|
|
.endif
|