a771d0acac8bcaced02e50d879d5a064ad02ea77
[pkgsrc.git] / mk / platform / Haiku.mk
1 # $NetBSD: Haiku.mk,v 1.1 2010/02/06 10:44:14 obache Exp $
2 #
3 # Variable definitions for the Haiku operating system.
4
5 ECHO_N?=        ${ECHO} -n
6 PKGLOCALEDIR?=  share
7 PS?=            /bin/ps
8 # XXX: default from defaults/mk.conf.  Verify/correct for this platform
9 # and remove this comment.
10 SU?=            /bin/su
11 TYPE?=          type                    # Shell builtin
12
13 CPP_PRECOMP_FLAGS?=     # unset
14 DEF_UMASK?=             022
15 DEFAULT_SERIAL_DEVICE?= /dev/tty
16 EXPORT_SYMBOLS_LDFLAGS?=        # Don't add symbols to the dynamic symbol table
17 #GROUPADD?=             /usr/sbin/groupadd
18 MOTIF_TYPE_DEFAULT?=    openmotif       # default 2.0 compatible libs type
19 NOLOGIN?=               /bin/false
20 PKG_TOOLS_BIN?=         ${LOCALBASE}/sbin
21 ROOT_CMD?=              ${SU} - root -c
22 ROOT_GROUP?=            root
23 ROOT_USER?=             user
24 SERIAL_DEVICES?=        /dev/tty
25 ULIMIT_CMD_datasize?=   ulimit -d `ulimit -H -d`
26 ULIMIT_CMD_stacksize?=  ulimit -s `ulimit -H -s`
27 ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
28 USERADD?=               /usr/sbin/useradd
29
30 # no native X11
31 X11_TYPE?=              modular
32
33 # imake installs manpages in weird places
34 # these values from /boot/common/X11/lib/X11/config/Haiku.cf
35 #IMAKE_MAN_SOURCE_PATH= man/man
36 #IMAKE_MAN_SUFFIX=      1
37 #IMAKE_LIBMAN_SUFFIX=   3
38 #IMAKE_KERNMAN_SUFFIX=  4
39 #IMAKE_FILEMAN_SUFFIX=  5
40 #IMAKE_GAMEMAN_SUFFIX=  6
41 #IMAKE_MISCMAN_SUFFIX=  7
42 #IMAKE_MAN_DIR=         ${IMAKE_MAN_SOURCE_PATH}1
43 #IMAKE_LIBMAN_DIR=      ${IMAKE_MAN_SOURCE_PATH}3
44 #IMAKE_KERNMAN_DIR=     ${IMAKE_MAN_SOURCE_PATH}4
45 #IMAKE_FILEMAN_DIR=     ${IMAKE_MAN_SOURCE_PATH}5
46 #IMAKE_GAMEMAN_DIR=     ${IMAKE_MAN_SOURCE_PATH}6
47 #IMAKE_MISCMAN_DIR=     ${IMAKE_MAN_SOURCE_PATH}7
48 #IMAKE_MANNEWSUFFIX=    ${IMAKE_MAN_SUFFIX}
49 #IMAKE_MANINSTALL?=     maninstall catinstall
50 #IMAKE_TOOLS=           gmake   # extra tools required when we use imake
51
52 _OPSYS_HAS_INET6=       yes     # IPv6 is standard
53 _OPSYS_HAS_JAVA=        no      # Java is not standard
54 _OPSYS_HAS_MANZ=        no      # no MANZ for gzipping of man pages
55 _OPSYS_HAS_OSSAUDIO=    no      # libossaudio is available
56 _OPSYS_PERL_REQD=               # no base version of perl required
57 _OPSYS_PTHREAD_AUTO=    no      # -lpthread needed for pthreads
58 _OPSYS_SHLIB_TYPE=      ELF     # shared lib type
59 _PATCH_CAN_BACKUP=      yes     # native patch(1) can make backups
60 _PATCH_BACKUP_ARG?=     -b -V simple -z # switch to patch(1) for backup suffix
61 _USE_RPATH=             yes     # add rpath to LDFLAGS
62
63 # flags passed to the linker to extract all symbols from static archives.
64 # this is GNU ld.
65 _OPSYS_WHOLE_ARCHIVE_FLAG=      -Wl,--whole-archive
66 _OPSYS_NO_WHOLE_ARCHIVE_FLAG=   -Wl,--no-whole-archive
67
68 _STRIPFLAG_CC?=         ${_INSTALL_UNSTRIPPED:D:U-s}    # cc(1) option to strip
69 _STRIPFLAG_INSTALL?=    ${_INSTALL_UNSTRIPPED:D:U-s}    # install(1) option to strip
70
71 _OPSYS_CAN_CHECK_SHLIBS=        no # can't use readelf in check/bsd.check-vars.mk
72
73 # check for maximum command line length and set it in configure's environment,
74 # to avoid a test required by the libtool script that takes forever.
75 # FIXME: Adjust to work on this system and enable the lines below.
76 #_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
77
78 # If games are to be installed setgid, then SETGIDGAME is set to 'yes'
79 # (it defaults to 'no' as per defaults/mk.conf).
80 # Set the group and mode to meaningful values in that case (defaults to
81 # BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
82 # FIXME: Adjust to work on this system and enable the lines below.
83 #.if !(empty(SETGIDGAME:M[yY][eE][sS]))
84 #GAMES_USER=            games
85 #GAMES_GROUP=           games
86 #GAMEOWN=               ${GAMES_USER}
87 #GAMEGRP=               ${GAMES_GROUP}
88 #GAMEMODE=              2555
89 #GAMEDIRMODE=           0775
90 #.endif