head 1.17; access; symbols pkgsrc-2023Q4:1.17.0.24 pkgsrc-2023Q4-base:1.17 pkgsrc-2023Q3:1.17.0.22 pkgsrc-2023Q3-base:1.17 pkgsrc-2023Q2:1.17.0.20 pkgsrc-2023Q2-base:1.17 pkgsrc-2023Q1:1.17.0.18 pkgsrc-2023Q1-base:1.17 pkgsrc-2022Q4:1.17.0.16 pkgsrc-2022Q4-base:1.17 pkgsrc-2022Q3:1.17.0.14 pkgsrc-2022Q3-base:1.17 pkgsrc-2022Q2:1.17.0.12 pkgsrc-2022Q2-base:1.17 pkgsrc-2022Q1:1.17.0.10 pkgsrc-2022Q1-base:1.17 pkgsrc-2021Q4:1.17.0.8 pkgsrc-2021Q4-base:1.17 pkgsrc-2021Q3:1.17.0.6 pkgsrc-2021Q3-base:1.17 pkgsrc-2021Q2:1.17.0.4 pkgsrc-2021Q2-base:1.17 pkgsrc-2021Q1:1.17.0.2 pkgsrc-2021Q1-base:1.17 pkgsrc-2020Q4:1.15.0.18 pkgsrc-2020Q4-base:1.15 pkgsrc-2020Q3:1.15.0.16 pkgsrc-2020Q3-base:1.15 pkgsrc-2020Q2:1.15.0.14 pkgsrc-2020Q2-base:1.15 pkgsrc-2020Q1:1.15.0.10 pkgsrc-2020Q1-base:1.15 pkgsrc-2019Q4:1.15.0.12 pkgsrc-2019Q4-base:1.15 pkgsrc-2019Q3:1.15.0.8 pkgsrc-2019Q3-base:1.15 pkgsrc-2019Q2:1.15.0.6 pkgsrc-2019Q2-base:1.15 pkgsrc-2019Q1:1.15.0.4 pkgsrc-2019Q1-base:1.15 pkgsrc-2018Q4:1.15.0.2 pkgsrc-2018Q4-base:1.15 pkgsrc-2018Q3:1.14.0.24 pkgsrc-2018Q3-base:1.14 pkgsrc-2018Q2:1.14.0.22 pkgsrc-2018Q2-base:1.14 pkgsrc-2018Q1:1.14.0.20 pkgsrc-2018Q1-base:1.14 pkgsrc-2017Q4:1.14.0.18 pkgsrc-2017Q4-base:1.14 pkgsrc-2017Q3:1.14.0.16 pkgsrc-2017Q3-base:1.14 pkgsrc-2017Q2:1.14.0.12 pkgsrc-2017Q2-base:1.14 pkgsrc-2017Q1:1.14.0.10 pkgsrc-2017Q1-base:1.14 pkgsrc-2016Q4:1.14.0.8 pkgsrc-2016Q4-base:1.14 pkgsrc-2016Q3:1.14.0.6 pkgsrc-2016Q3-base:1.14 pkgsrc-2016Q2:1.14.0.4 pkgsrc-2016Q2-base:1.14 pkgsrc-2016Q1:1.14.0.2 pkgsrc-2016Q1-base:1.14 pkgsrc-2015Q4:1.13.0.14 pkgsrc-2015Q4-base:1.13 pkgsrc-2015Q3:1.13.0.12 pkgsrc-2015Q3-base:1.13 pkgsrc-2015Q2:1.13.0.10 pkgsrc-2015Q2-base:1.13 pkgsrc-2015Q1:1.13.0.8 pkgsrc-2015Q1-base:1.13 pkgsrc-2014Q4:1.13.0.6 pkgsrc-2014Q4-base:1.13 pkgsrc-2014Q3:1.13.0.4 pkgsrc-2014Q3-base:1.13 pkgsrc-2014Q2:1.13.0.2 pkgsrc-2014Q2-base:1.13 pkgsrc-2014Q1:1.9.0.4 pkgsrc-2014Q1-base:1.9 pkgsrc-2013Q4:1.9.0.2 pkgsrc-2013Q4-base:1.9 pkgsrc-2013Q3:1.8.0.4 pkgsrc-2013Q3-base:1.8 pkgsrc-2013Q2:1.8.0.2 pkgsrc-2013Q2-base:1.8 pkgsrc-2013Q1:1.7.0.4 pkgsrc-2013Q1-base:1.7 pkgsrc-2012Q4:1.7.0.2 pkgsrc-2012Q4-base:1.7 pkgsrc-2012Q3:1.6.0.6 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.4 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.2 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.5.0.4 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.5.0.2 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.4.0.8 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.6 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.4 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.2 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.2.0.2 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.1.0.2 pkgsrc-2010Q1-base:1.1; locks; strict; comment @# @; 1.17 date 2021.03.15.16.17.59; author ryoon; state Exp; branches; next 1.16; commitid FZlvilfMQxNfiqLC; 1.16 date 2021.03.15.14.20.01; author ryoon; state Exp; branches; next 1.15; commitid DQjmdcNmVHQEDpLC; 1.15 date 2018.10.11.08.30.16; author adam; state Exp; branches; next 1.14; commitid 136PQGnnKW2ybwVA; 1.14 date 2016.03.10.16.58.19; author jperkin; state Exp; branches; next 1.13; commitid PJtLncvNwXCOm7Yy; 1.13 date 2014.06.09.08.47.29; author obache; state Exp; branches; next 1.12; commitid QmyGLHdNFcF7ePDx; 1.12 date 2014.05.18.10.13.59; author obache; state Exp; branches; next 1.11; commitid G9p8jJ9Vtp07p0Bx; 1.11 date 2014.05.18.09.45.40; author obache; state Exp; branches; next 1.10; commitid aX6Hh9BFJjGqf0Bx; 1.10 date 2014.05.18.07.56.21; author obache; state Exp; branches; next 1.9; commitid AbH2aqZpA343DZAx; 1.9 date 2013.11.23.07.50.51; author obache; state Exp; branches; next 1.8; commitid 5cznGLoDiedihnex; 1.8 date 2013.04.28.12.53.56; author obache; state Exp; branches; next 1.7; 1.7 date 2012.11.19.11.34.15; author ryoon; state Exp; branches; next 1.6; 1.6 date 2012.03.19.12.34.17; author joerg; state Exp; branches; next 1.5; 1.5 date 2011.09.10.16.30.02; author abs; state Exp; branches; next 1.4; 1.4 date 2010.08.16.10.03.44; author obache; state Exp; branches; next 1.3; 1.3 date 2010.07.08.04.57.36; author dholland; state Exp; branches; next 1.2; 1.2 date 2010.06.20.04.05.39; author obache; state Exp; branches; next 1.1; 1.1 date 2010.02.06.10.44.14; author obache; state Exp; branches; next ; desc @@ 1.17 log @mk/platform: Add -s to ln always, because Haiku does not support hardlink Supplied by jperkin@@. Thak you. @ text @# $NetBSD: Haiku.mk,v 1.16 2021/03/15 14:20:01 ryoon 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 # Use symlink for wrapper in mk/wrapper/bsd.wrapper.mk, # due to lack of hard link support. WRAPPER_USE_SYMLINK= # defined CPP_PRECOMP_FLAGS?= # unset DEF_UMASK?= 022 DEFAULT_SERIAL_DEVICE?= /dev/tty EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table MOTIF_TYPE_DEFAULT?= motif # 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_CMD_stacksize?= : ULIMIT_CMD_memorysize?= : .if exists(/bin/groupadd) USERADD?= /bin/useradd GROUPADD?= /bin/groupadd .endif .if exists(/boot/system/develop) _OPSYS_SYSTEM_RPATH?= /boot/system/lib _OPSYS_LIB_DIRS?= /boot/system/develop/lib /boot/system/lib _OPSYS_INCLUDE_DIRS?= /boot/system/develop/headers \ /boot/system/develop/headers/posix .else _OPSYS_SYSTEM_RPATH?= /boot/common/lib:/boot/system/lib _OPSYS_LIB_DIRS?= /boot/common/lib /boot/system/lib _OPSYS_INCLUDE_DIRS?= /boot/common/include \ /boot/develop/headers/posix \ /boot/develop/headers/3rdparty .endif _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= yes # -lpthread not 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 _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 # Haiku does not support hardlink as of R1/beta2. Use symlink always. TOOLS_ARGS.ln= -s _OPSYS_SUPPORTS_CWRAPPERS= yes # 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 @ 1.16 log @mk/platform: Enable cwrappers for Haiku Confirmed under Haiku/x86_64 R1/beta2. @ text @d1 1 a1 1 # $NetBSD: Haiku.mk,v 1.15 2018/10/11 08:30:16 adam Exp $ d65 3 @ 1.15 log @Fix for platform/Haiku.mk:12: Makefile lines should not start with space characters. @ text @d1 1 a1 1 # $NetBSD: Haiku.mk,v 1.14 2016/03/10 16:58:19 jperkin Exp $ d65 2 @ 1.14 log @Remove _OPSYS_WHOLE_ARCHIVE_FLAG and _OPSYS_NO_WHOLE_ARCHIVE_FLAG, these variables are unused and in at least one case were completely wrong anyway. @ text @d1 1 a1 1 # $NetBSD: Haiku.mk,v 1.13 2014/06/09 08:47:29 obache Exp $ d12 1 a12 1 @ 1.13 log @-lpthread not needed, it's in libroot. @ text @d1 1 a1 1 # $NetBSD: Haiku.mk,v 1.12 2014/05/18 10:13:59 obache Exp $ a59 5 # 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 @ 1.12 log @catch up to /boot/common removal, adust header/library location. noticed by diger in pkgsrc-users@@. @ text @d1 1 a1 1 # $NetBSD: Haiku.mk,v 1.11 2014/05/18 09:45:40 obache Exp $ d54 1 a54 1 _OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads @ 1.11 log @Haiku has groupadd now. noticed by diger in pkgsrc-users@@. While here, enable useradd only for the case groupadd exists, because former useradd is interactive command, not usable with pkgsrc framework. @ text @d1 1 a1 1 # $NetBSD: Haiku.mk,v 1.10 2014/05/18 07:56:21 obache Exp $ d36 6 d47 1 @ 1.10 log @On Haiku: ulimit -m: invalid option ulimit -d: data sg size: cannot get limit: Invalid Argment ulimit -s: stack size: cannot modify limit: Invalid Argment noticed by diger in pkgsrc-users@@. @ text @d1 1 a1 1 # $NetBSD: Haiku.mk,v 1.9 2013/11/23 07:50:51 obache Exp $ a20 1 #GROUPADD?= /bin/groupadd d31 1 d33 2 @ 1.9 log @fixes 3rdparty header path @ text @d1 1 a1 1 # $NetBSD: Haiku.mk,v 1.8 2013/04/28 12:53:56 obache Exp $ d29 3 a31 3 ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d` ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s` ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m` @ 1.8 log @Introduce _OPSYS_LIB_DIRS and _OPSYS_INCLUDE_DIRS varables. list of system library and header file directories. Also add missing _OPSYS_SYSTEM_RPATH for some platforms. @ text @d1 1 a1 1 # $NetBSD: Haiku.mk,v 1.7 2012/11/19 11:34:15 ryoon Exp $ d38 1 a38 1 /boot/develop/3rdparty @ 1.7 log @Make MOTIF_TYPE_DEFAULT as motif (LGPL Motif) instead of openmotif or lesstif. No objection on tech-pkg@@. @ text @d1 1 a1 1 # $NetBSD: Haiku.mk,v 1.6 2012/03/19 12:34:17 joerg Exp $ d34 6 @ 1.6 log @Drop imake-check logic from X11 components' builtin.mk. Always use xorg-cf-files and imake from pkgsrc, replacing xpkgwedge. Always install man pages, not cat pages when using imake. Unify the various imake PLIST variables in preparation for dropping. Adjust xbattbar for the new expectations. @ text @d1 1 a1 1 # $NetBSD: Haiku.mk,v 1.5 2011/09/10 16:30:02 abs Exp $ d22 1 a22 1 MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type @ 1.5 log @From "What platforms work with X11_TYPE=native" thread on pkgsrc-users. Based on the responses I'm going to switch the default X11_TYPE to be modular, and override in platform/*.mk files as required. The new values will be: Changed - from native to modular - FreeBSD - FreeMiNT - Linux Changed - older versions switched from native to modular - NetBSD - native for NetBSD-4 and later Native (unchanged) - should probably be switched to modular - AIX - BSDOS - IRIX - Interix - MirBSD - UnixWare Native (unchanged) - Darwin - for Leopard (10.5) and later - OpenBSD.mk - SunOS.mk Modular (unchanged) - DragonFly - HPUX - Haiku - OSF1 I'd like to encourage anyone using X11 apps on any platforms other than NetBSD, Darwin, DragonFly, FreeBSD, Linux, FreeMiNT, HPUX, Haiku or OSF1 to speak up, whether they are happy with native or having to set modular. @ text @d1 1 a1 1 # $NetBSD: Haiku.mk,v 1.4 2010/08/16 10:03:44 obache Exp $ a33 19 # 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 @ 1.4 log @Force to use symbolic link for wrapper if WRAPPER_USE_SYMLINK is defined. Workaround for missing hard link support on Haiku, PR#43398. @ text @d1 1 a1 1 # $NetBSD: Haiku.mk,v 1.3 2010/07/08 04:57:36 dholland Exp $ a33 3 # no native X11 X11_TYPE?= modular @ 1.3 log @Begin cleanup of setgid game infrastructure. * Introduce USE_GAMESGROUP, which causes the games user and group to be made available. * Retain SETGIDGAME as an alias for USE_GAMESGROUP. Describe it as deprecated. * Always define GAMES_USER, GAMES_GROUP, GAMEMODE, GAMEDIRMODE, and GAMEDATAMODE, regardless of whether USE_GAMESGROUP is turned on or not. * Define these variables in defaults/mk.conf instead of separately in every platform/*.mk file. The definitions used to be the same for each of these platforms anyway, except for some where they were randomly missing or commented out for no clear reason, leading to broken game packages. * Handle all these variables properly when unprivileged. * Update the comments/documentation for these variables. * Describe GAMEOWN and GAMEGRP as deprecated. These need to be retained as aliases for GAMES_USER and GAMES_GROUP respectively for supporting packages that use bsd.*.mk but should otherwise not be used. * Add GAMEDATA_PERMS and GAMEDIR_PERMS using GAMEDATAMODE and GAMEDIRMODE respectively. * Fix a bug I noticed that was improperly mixing the "games" group and "games" user. Things this does *not* do: - get rid of GAMES_USER, for which there should ultimately be no need. - move the declaration/documentation/default value of USE_GAMESGROUP to a suitable place. (It is currently where SETGIDGAME was, which is suboptimal.) - touch any of the games, all of which need updating with at least s/SETGIDGAME/USE_GAMESGROUP/ and probably more. - update the guide to explain how to handle games properly. Also, it would be nice if using GAMES_GROUP without setting USE_GAMESGROUP=yes caused an error but as far as I know there isn't any particularly good way to arrange this right now. Note that these changes may alter the build/install behavior of broken game packages, e.g. some may silently become setgid when they weren't before or things like that. If you run into any of this file a PR. While one might arguably bump the PKGREVISION of all games or other packages using any of these variables as a precaution, that seems like a bad idea. Instead, I think I will be bumping each game once it itself has been fixed up to do everything the right way. @ text @d1 1 a1 1 # $NetBSD: Haiku.mk,v 1.2 2010/06/20 04:05:39 obache Exp $ d12 4 @ 1.2 log @Fixes paths for useradd/groupadd. @ text @d1 1 a1 1 # $NetBSD: Haiku.mk,v 1.1 2010/02/06 10:44:14 obache Exp $ a76 14 # 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 @ 1.1 log @Add Haiku support file. @ text @d1 1 a1 1 # $NetBSD$ d17 1 a17 1 #GROUPADD?= /usr/sbin/groupadd d28 1 a28 1 USERADD?= /usr/sbin/useradd @