Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / mk / platform / MirBSD.mk
blob216de065984d43d8e65e2672838fb9c906d76975
1 # $NetBSD: MirBSD.mk,v 1.8 2012/11/19 11:34:15 ryoon Exp $
3 # Variable definitions for the MirOS BSD operating system.
5 ECHO_N?= ${ECHO} -n
6 IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
7 PKGLOCALEDIR?= share
8 PS?= /bin/ps
9 RSH?= /usr/bin/false # not delivered with MirOS any more
10 SU?= /usr/bin/su
11 TYPE?= type # Shell builtin
13 #USERADD?= ${LOCALBASE}/sbin/useradd
14 #GROUPADD?= ${LOCALBASE}/sbin/groupadd
15 #_USER_DEPENDS= user>=20000313:../../sysutils/user #XXX make this work
17 CPP_PRECOMP_FLAGS?= # unset
18 DEF_UMASK?= 0022
19 EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
20 MOTIF_TYPE_DEFAULT?= motif
21 NOLOGIN?= /sbin/nologin
22 PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
23 ROOT_CMD?= /usr/bin/sudo /bin/mksh -c
24 ROOT_USER?= root
25 ROOT_GROUP?= wheel
26 ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
27 ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
28 ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
30 X11_TYPE?= modular
32 _OPSYS_SYSTEM_RPATH?= /usr/lib
33 _OPSYS_LIB_DIRS?= /usr/lib
34 _OPSYS_INCLUDE_DIRS?= /usr/include
36 _OPSYS_HAS_INET6= yes # IPv6 is standard
37 _OPSYS_HAS_JAVA= no # Java is not standard
38 _OPSYS_HAS_MANZ= no # MANZ controls gzipping of man pages
39 _OPSYS_HAS_OSSAUDIO= yes # libossaudio is available
40 _OPSYS_LIBTOOL_REQD= 1.5.22nb5
41 _OPSYS_PERL_REQD= # no base version of perl required
42 _OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
43 _OPSYS_SHLIB_TYPE= ELF # shared lib type
44 _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
45 _PATCH_BACKUP_ARG?= -V simple -z # switch to patch(1) for backup suffix
46 _USE_RPATH= yes # add rpath to LDFLAGS
48 BUILDLINK_TRANSFORM+= rm:-ldl # libdl.a is an empty static library
50 # flags passed to the linker to extract all symbols from static archives.
51 # this is GNU ld.
52 _OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
53 _OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
55 _STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
56 _STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
58 .if (${MACHINE_ARCH} == "i386")
59 DEFAULT_SERIAL_DEVICE?= /dev/tty00
60 SERIAL_DEVICES?= /dev/tty00 \
61 /dev/tty01
62 .elif (${MACHINE_ARCH} == "sparc")
63 DEFAULT_SERIAL_DEVICE?= /dev/ttya
64 SERIAL_DEVICES?= /dev/ttya \
65 /dev/ttyb
66 .else
67 DEFAULT_SERIAL_DEVICE?= /dev/null
68 SERIAL_DEVICES?= /dev/null
69 .endif
71 PKG_HAVE_KQUEUE= # defined
73 _OPSYS_CAN_CHECK_SHLIBS= no # can't use readelf in check/bsd.check-vars.mk
75 # check for maximum command line length and set it in configure's environment,
76 # to avoid a test required by the libtool script that takes forever.
77 _OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax