update Sun Jun 20 00:37:00 PDT 2010
[pkgsrc.git] / mk / platform / Haiku.mk
CommitLineData
18844bfa 1# $NetBSD: Haiku.mk,v 1.2 2010/06/20 04:05:39 obache Exp $
c07362be
C
2#
3# Variable definitions for the Haiku operating system.
4
5ECHO_N?= ${ECHO} -n
6PKGLOCALEDIR?= share
7PS?= /bin/ps
8# XXX: default from defaults/mk.conf. Verify/correct for this platform
9# and remove this comment.
10SU?= /bin/su
11TYPE?= type # Shell builtin
12
13CPP_PRECOMP_FLAGS?= # unset
14DEF_UMASK?= 022
15DEFAULT_SERIAL_DEVICE?= /dev/tty
16EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
18844bfa 17#GROUPADD?= /bin/groupadd
c07362be
C
18MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
19NOLOGIN?= /bin/false
20PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
21ROOT_CMD?= ${SU} - root -c
22ROOT_GROUP?= root
23ROOT_USER?= user
24SERIAL_DEVICES?= /dev/tty
25ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
26ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
27ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
18844bfa 28USERADD?= /bin/useradd
c07362be
C
29
30# no native X11
31X11_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