Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / mk / platform / FreeBSD.mk
blob2af80b8d8af9c4288e1d251512a5119ead2e5a2e
1 # $NetBSD: FreeBSD.mk,v 1.29 2012/11/19 11:34:15 ryoon Exp $
3 # Variable definitions for the FreeBSD operating system.
5 BRANDELF?= /usr/bin/brandelf # used by linux compat layer
6 ECHO_N?= ${ECHO} -n
7 IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
8 IMAKEOPTS+= -DBuildHtmlManPages=NO
9 PKGLOCALEDIR?= share
10 PS?= /bin/ps
11 PW?= /usr/sbin/pw
12 SU?= /usr/bin/su
13 TYPE?= type # Shell builtin
15 CPP_PRECOMP_FLAGS?= # unset
16 DEF_UMASK?= 0022
17 .if ${OBJECT_FMT} == "ELF"
18 EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
19 .else
20 EXPORT_SYMBOLS_LDFLAGS?=-Wl,--export-dynamic
21 .endif
22 MOTIF_TYPE_DEFAULT?= motif # default 2.0 compatible libs type
23 NOLOGIN?= /sbin/nologin
24 PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
25 ROOT_CMD?= ${SU} - root -c
26 ROOT_USER?= root
27 ROOT_GROUP?= wheel
28 ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
29 ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
30 ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
32 _OPSYS_EMULDIR.freebsd= # empty
33 _OPSYS_EMULDIR.linux= /compat/linux
35 _OPSYS_SYSTEM_RPATH?= /lib:/usr/lib # STANDARD_LIBRARY_PATH (from rtld.h)
36 _OPSYS_LIB_DIRS?= /lib /usr/lib
37 _OPSYS_INCLUDE_DIRS?= /usr/include
39 .if exists(/usr/include/netinet6)
40 _OPSYS_HAS_INET6= yes # IPv6 is standard
41 .else
42 _OPSYS_HAS_INET6= no # IPv6 is not standard
43 .endif
44 _OPSYS_HAS_JAVA= no # Java is not standard
45 _OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
46 _OPSYS_HAS_OSSAUDIO= yes # libossaudio is available
47 _OPSYS_PERL_REQD= # no base version of perl required
48 _OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
49 _OPSYS_SHLIB_TYPE= ELF/a.out # shared lib type
50 _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
51 _PATCH_BACKUP_ARG?= -V simple -b # switch to patch(1) for backup suffix
52 _USE_RPATH= yes # add rpath to LDFLAGS
54 # flags passed to the linker to extract all symbols from static archives.
55 # this is GNU ld.
56 _OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
57 _OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
59 _STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
60 _STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
62 DEFAULT_SERIAL_DEVICE?= /dev/cuaa0
63 SERIAL_DEVICES?= /dev/cuaa0
65 # check for kqueue(2) support
66 .if exists(/usr/include/sys/event.h)
67 PKG_HAVE_KQUEUE= # defined
68 .endif
70 _OPSYS_CAN_CHECK_SHLIBS= yes # use readelf in check/bsd.check-vars.mk
72 # check for maximum command line length and set it in configure's environment,
73 # to avoid a test required by the libtool script that takes forever.
74 _OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax