diff options
author | obache <obache> | 2010-02-06 10:39:59 +0000 |
---|---|---|
committer | obache <obache> | 2010-02-06 10:39:59 +0000 |
commit | 1cf82eac20a96c30605fafd3758b2eae1a476d7e (patch) | |
tree | 947437e3c66f1fd11a5ce0fde95fe1bb1bb0df9b /mk | |
parent | 21b2c53d2e37b3a5e790d4eedb4c12c5553ebc8e (diff) | |
download | pkgsrc-1cf82eac20a96c30605fafd3758b2eae1a476d7e.tar.gz |
Add Haiku support file.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/platform/Haiku.mk | 90 | ||||
-rw-r--r-- | mk/tools/tools.Haiku.mk | 87 |
2 files changed, 177 insertions, 0 deletions
diff --git a/mk/platform/Haiku.mk b/mk/platform/Haiku.mk new file mode 100644 index 00000000000..a771d0acac8 --- /dev/null +++ b/mk/platform/Haiku.mk @@ -0,0 +1,90 @@ +# $NetBSD: Haiku.mk,v 1.1 2010/02/06 10:44:14 obache Exp $ +# +# Variable definitions for the Haiku operating system. + +ECHO_N?= ${ECHO} -n +PKGLOCALEDIR?= share +PS?= /bin/ps +# XXX: default from defaults/mk.conf. Verify/correct for this platform +# and remove this comment. +SU?= /bin/su +TYPE?= type # Shell builtin + +CPP_PRECOMP_FLAGS?= # unset +DEF_UMASK?= 022 +DEFAULT_SERIAL_DEVICE?= /dev/tty +EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table +#GROUPADD?= /usr/sbin/groupadd +MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type +NOLOGIN?= /bin/false +PKG_TOOLS_BIN?= ${LOCALBASE}/sbin +ROOT_CMD?= ${SU} - root -c +ROOT_GROUP?= root +ROOT_USER?= user +SERIAL_DEVICES?= /dev/tty +ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d` +ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s` +ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m` +USERADD?= /usr/sbin/useradd + +# no native X11 +X11_TYPE?= modular + +# imake installs manpages in weird places +# these values from /boot/common/X11/lib/X11/config/Haiku.cf +#IMAKE_MAN_SOURCE_PATH= man/man +#IMAKE_MAN_SUFFIX= 1 +#IMAKE_LIBMAN_SUFFIX= 3 +#IMAKE_KERNMAN_SUFFIX= 4 +#IMAKE_FILEMAN_SUFFIX= 5 +#IMAKE_GAMEMAN_SUFFIX= 6 +#IMAKE_MISCMAN_SUFFIX= 7 +#IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1 +#IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3 +#IMAKE_KERNMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}4 +#IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}5 +#IMAKE_GAMEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}6 +#IMAKE_MISCMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}7 +#IMAKE_MANNEWSUFFIX= ${IMAKE_MAN_SUFFIX} +#IMAKE_MANINSTALL?= maninstall catinstall +#IMAKE_TOOLS= gmake # extra tools required when we use imake + +_OPSYS_HAS_INET6= yes # IPv6 is standard +_OPSYS_HAS_JAVA= no # Java is not standard +_OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages +_OPSYS_HAS_OSSAUDIO= no # libossaudio is available +_OPSYS_PERL_REQD= # no base version of perl required +_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads +_OPSYS_SHLIB_TYPE= ELF # shared lib type +_PATCH_CAN_BACKUP= yes # native patch(1) can make backups +_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix +_USE_RPATH= yes # add rpath to LDFLAGS + +# flags passed to the linker to extract all symbols from static archives. +# this is GNU ld. +_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive +_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive + +_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip +_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip + +_OPSYS_CAN_CHECK_SHLIBS= no # can't use readelf in check/bsd.check-vars.mk + +# check for maximum command line length and set it in configure's environment, +# to avoid a test required by the libtool script that takes forever. +# FIXME: Adjust to work on this system and enable the lines below. +#_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax + +# If games are to be installed setgid, then SETGIDGAME is set to 'yes' +# (it defaults to 'no' as per defaults/mk.conf). +# Set the group and mode to meaningful values in that case (defaults to +# BINOWN, BINGRP and BINMODE as per defaults/mk.conf). +# FIXME: Adjust to work on this system and enable the lines below. +#.if !(empty(SETGIDGAME:M[yY][eE][sS])) +#GAMES_USER= games +#GAMES_GROUP= games +#GAMEOWN= ${GAMES_USER} +#GAMEGRP= ${GAMES_GROUP} +#GAMEMODE= 2555 +#GAMEDIRMODE= 0775 +#.endif diff --git a/mk/tools/tools.Haiku.mk b/mk/tools/tools.Haiku.mk new file mode 100644 index 00000000000..d6dc8e2a676 --- /dev/null +++ b/mk/tools/tools.Haiku.mk @@ -0,0 +1,87 @@ +# $NetBSD: tools.Haiku.mk,v 1.1 2010/02/06 10:39:59 obache Exp $ +# +# System-supplied tools for the Haiku operating system. + +TOOLS_PLATFORM.[?= [ # shell builtin +TOOLS_PLATFORM.awk?= /bin/awk +TOOLS_PLATFORM.basename?= /bin/basename +TOOLS_PLATFORM.bash?= /bin/bash +TOOLS_PLATFORM.bison?= /boot/common/bin/bison +TOOLS_PLATFORM.bison-yacc?= /boot/common/bin/bison -y +TOOLS_PLATFORM.bzcat?= /bin/bzip2 -cd +TOOLS_PLATFORM.bzip2?= /bin/bzip2 +TOOLS_PLATFORM.cat?= /bin/cat +TOOLS_PLATFORM.chgrp?= /bin/chgrp +TOOLS_PLATFORM.chmod?= /bin/chmod +TOOLS_PLATFORM.chown?= /bin/chown +TOOLS_PLATFORM.cmp?= /bin/cmp +TOOLS_PLATFORM.cp?= /bin/cp +TOOLS_PLATFORM.cut?= /bin/cut +TOOLS_PLATFORM.date?= /bin/date +TOOLS_PLATFORM.diff?= /bin/diff +TOOLS_PLATFORM.diff3?= /bin/diff3 +TOOLS_PLATFORM.dirname?= /bin/dirname +TOOLS_PLATFORM.echo?= echo # shell builtin +TOOLS_PLATFORM.egrep?= /bin/egrep +TOOLS_PLATFORM.env?= /bin/env +TOOLS_PLATFORM.expr?= /bin/expr +TOOLS_PLATFORM.false?= false # shell builtin +TOOLS_PLATFORM.fgrep?= /bin/fgrep +TOOLS_PLATFORM.file?= /usr/bin/file +TOOLS_PLATFORM.find?= /bin/find +TOOLS_PLATFORM.ftp?= /bin/ftp +TOOLS_PLATFORM.gawk?= /bin/gawk +TOOLS_PLATFORM.gm4?= /boot/common/bin/m4 +TOOLS_PLATFORM.gmake?= /bin/make +TOOLS_PLATFORM.grep?= /bin/grep +#TOOLS_PLATFORM.groff?= /usr/bin/groff +TOOLS_PLATFORM.gsed?= /bin/sed +#TOOLS_PLATFORM.gsoelim?= /usr/bin/soelim +TOOLS_PLATFORM.gtar?= /bin/tar +TOOLS_PLATFORM.gunzip?= /bin/gunzip -f +TOOLS_PLATFORM.gzcat?= /bin/zcat +TOOLS_PLATFORM.gzip?= /bin/gzip -nf ${GZIP} +TOOLS_PLATFORM.head?= /bin/head +TOOLS_PLATFORM.hostname?= /bin/hostname +TOOLS_PLATFORM.id?= /bin/id +TOOLS_PLATFORM.ident?= /bin/ident +TOOLS_PLATFORM.install?= /bin/install +TOOLS_PLATFORM.install-info?= /boot/common/bin/install-info +#TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig +# XXX: Haiku currently no support of hard link. +TOOLS_PLATFORM.ln?= /bin/ln -s +TOOLS_PLATFORM.ls?= /bin/ls +TOOLS_PLATFORM.m4?= ${TOOLS_PLATFORM.gm4} +#TOOLS_PLATFORM.mail?= /bin/mail +TOOLS_PLATFORM.makeinfo?= /boot/common/bin/makeinfo +TOOLS_PLATFORM.mkdir?= /bin/mkdir -p +#TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp +#TOOLS_PLATFORM.msgfmt?= /usr/bin/msgfmt +TOOLS_PLATFORM.mv?= /bin/mv +#TOOLS_PLATFORM.nice?= /bin/nice +#TOOLS_PLATFORM.nroff?= /usr/bin/nroff +TOOLS_PLATFORM.openssl?= /boot/common/bin/openssl +TOOLS_PLATFORM.patch?= /bin/patch +TOOLS_PLATFORM.printf?= /bin/printf +TOOLS_PLATFORM.pwd?= /bin/pwd +TOOLS_PLATFORM.rm?= /bin/rm +TOOLS_PLATFORM.rmdir?= /bin/rmdir +#TOOLS_PLATFORM.sdiff?= /bin/sdiff +TOOLS_PLATFORM.sed?= ${TOOLS_PLATFORM.gsed} +TOOLS_PLATFORM.sh?= /bin/sh +TOOLS_PLATFORM.sleep?= /bin/sleep +#TOOLS_PLATFORM.soelim?= /usr/bin/soelim +TOOLS_PLATFORM.sort?= /bin/sort +TOOLS_PLATFORM.strip?= /boot/develop/tools/gnupro/bin/strip +TOOLS_PLATFORM.tail?= /bin/tail +TOOLS_PLATFORM.tar?= ${TOOLS_PLATFORM.gtar} +#TOOLS_PLATFORM.tbl?= /usr/bin/tbl +TOOLS_PLATFORM.tee?= /bin/tee +TOOLS_PLATFORM.test?= test # shell builtin +TOOLS_PLATFORM.touch?= /bin/touch +TOOLS_PLATFORM.tr?= /bin/tr +TOOLS_PLATFORM.true?= true # shell builtin +TOOLS_PLATFORM.tsort?= /bin/tsort +TOOLS_PLATFORM.wc?= /bin/wc +TOOLS_PLATFORM.xargs?= /bin/xargs -r +#TOOLS_PLATFORM.xgettext?= /usr/bin/xgettext |