Annotation of pkgsrc/mk/platform/UnixWare.mk, revision 1.2
1.2 ! tv 1: # $NetBSD: UnixWare.mk,v 1.1 2004/10/06 20:51:47 jlam Exp $
1.1 jlam 2: #
3: # Variable definitions for the UnixWare 7 operating system.
4:
5: AWK?= /usr/bin/nawk
6: BASENAME?= /usr/bin/basename
7: CAT?= /usr/bin/cat
8: CHMOD?= /usr/bin/chmod
9: CHOWN?= /usr/bin/chown
10: CHGRP?= /usr/bin/chgrp
11: CMP?= /usr/bin/cmp
12: CP?= /usr/bin/cp
13: CUT?= /usr/bin/cut
14: DATE?= /usr/bin/date
15: DC?= /usr/bin/dc
16: DIRNAME?= /usr/bin/dirname
17: ECHO?= /usr/ucb/echo
18: ECHO_N?= ${ECHO} -n
19: EGREP?= /usr/bin/grep -E
20: EXPR?= /usr/bin/expr
21: FALSE?= /usr/bin/false
22: FGREP?= /usr/bin/grep -F
23: FILE_CMD?= /usr/bin/file
24: FIND?= /usr/bin/find
25: GMAKE?= ${LOCALBASE}/bin/gmake
26: GREP?= /usr/bin/grep
27: .if exists(${LOCALBASE}/bin/gtar)
28: GTAR?= ${LOCALBASE}/bin/gtar
29: .else
30: GTAR?= ${LOCALBASE}/bin/tar
31: .endif
32: .if exists(${LOCALBASE}/bin/gzip)
33: GUNZIP_CMD?= ${LOCALBASE}/bin/gunzip -f
34: GZCAT?= ${LOCALBASE}/bin/zcat
35: GZIP?= -9
36: GZIP_CMD?= ${LOCALBASE}/bin/gzip -nf ${GZIP}
37: .elif exists(/usr/local/bin/gzip)
38: GUNZIP_CMD?= /usr/local/bin/gzip -df
39: GZCAT?= /usr/local/bin/gzip -cd
40: GZIP?= -9
41: GZIP_CMD?= /usr/local/bin/gzip -nf ${GZIP}
42: .endif
43: HEAD?= /usr/bin/head
44: HOSTNAME_CMD?= /usr/bin/hostname
45: ID?= /usr/bin/id
46: IMAKE?= # XXX only available in the SDK? what about xmkmf?
47: LDCONFIG?= /usr/bin/true
48: LN?= /usr/bin/ln
49: LS?= /usr/bin/ls
50: M4?= /usr/ccs/bin/m4
51: MAIL_CMD?= /usr/bin/mailx
52: MKDIR?= ${LOCALBASE}/sbin/mkdir-sh -p
53: MTREE?= ${LOCALBASE}/sbin/mtree
54: MV?= /usr/bin/mv
55: NICE?= /usr/bin/nice
56: PATCH?= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}patch
57: PAX?= ${LOCALBASE}/bin/pax
58: PERL5?= ${LOCALBASE}/bin/perl
59: PKGLOCALEDIR?= lib
60: PS?= /usr/bin/ps
61: PWD_CMD?= /usr/bin/pwd # needs to print physical path
62: RM?= /usr/bin/rm
63: RMDIR?= /usr/bin/rmdir
64: # XXX: default from bsd.pkg.defaults.mk. Verify/corerct for this platform
65: # and remove this comment.
66: RSH?= /usr/bin/rsh
67: .if exists(${LOCALBASE}/bin/nbsed)
68: SED?= ${LOCALBASE}/bin/nbsed
69: .else
70: SED?= /usr/bin/sed
71: .endif
72: SETENV?= /usr/bin/env
73: SH?= /usr/bin/ksh
74: SHLOCK= ${LOCALBASE}/bin/shlock
75: SORT?= /usr/bin/sort
76: SU?= /usr/bin/su
77: TAIL?= /usr/bin/tail
78: TAR?= ${LOCALBASE}/bin/tar
79: TEE?= /usr/bin/tee
80: TEST?= test # Shell builtin
81: TOUCH?= /usr/bin/touch
82: TR?= /usr/bin/tr
83: TRUE?= /usr/bin/true
84: TSORT?= /usr/ccs/bin/tsort
85: TYPE?= /usr/bin/type
86: WC?= /usr/bin/wc
87: XARGS?= /usr/bin/xargs
88:
89: CPP_PRECOMP_FLAGS?= # unset
90: DEF_UMASK?= 022
91: DEFAULT_SERIAL_DEVICE?= /dev/null
92: EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
93: GROUPADD?= /usr/sbin/groupadd
94: MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type
95: NOLOGIN?= ${FALSE}
96: ROOT_CMD?= ${SU} - root -c
97: ROOT_GROUP?= root
98: ROOT_USER?= root
99: SERIAL_DEVICES?= /dev/null
100: ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
101: ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
102: ULIMIT_CMD_memorysize?= ulimit -v `ulimit -H -v`
103: USERADD?= /usr/sbin/useradd
104:
105: # imake installs manpages in weird places
106: IMAKE_MAN_SOURCE_PATH= share/man/man
107: IMAKE_MAN_SUFFIX= 1
108: IMAKE_LIBMAN_SUFFIX= 3
109: IMAKE_FILEMAN_SUFFIX= 5
110: IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
111: IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
112: IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}5
113: IMAKE_MANNEWSUFFIX= ${IMAKE_MAN_SUFFIX}
114:
115: _DO_SHLIB_CHECKS= yes # fixup PLIST for shared libs
116: _IMAKE_MAKE= /usr/ccs/bin/make # program which gets invoked by imake
117: .if exists(/usr/include/netinet/in6.h)
118: _OPSYS_HAS_INET6= yes # IPv6 is standard
119: .else
120: _OPSYS_HAS_INET6= no # IPv6 is not standard
121: .endif
122: _OPSYS_HAS_JAVA= no # Java is not standard
123: _OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages
124: _OPSYS_HAS_OSSAUDIO= no # libossaudio is available
125: _OPSYS_PERL_REQD= # no base version of perl required
126: _OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
127: _OPSYS_SHLIB_TYPE= ELF/a.out # shared lib type
128: _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
129: _PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
130: _PREFORMATTED_MAN_DIR= man # directory where catman pages are
131: _USE_GNU_GETTEXT= yes # Use GNU gettext
132: #
133: # The native linker for UnixWare doesn't really support an option to pass
134: # rpath directives, but pretend it does anyway since the wrapper scripts
135: # will correctly convert it into the the proper LD_RUN_PATH variable.
136: #
137: _USE_RPATH= yes # add rpath to LDFLAGS
138:
139: # flags passed to the linker to extract all symbols from static archives.
140: # this is the standard Solaris linker, /usr/ccs/bin/ld. The use of GNU
141: # ld is not currently supported.
142: # XXX is this needed for UnixWare?
143: _OPSYS_WHOLE_ARCHIVE_FLAG=
144: _OPSYS_NO_WHOLE_ARCHIVE_FLAG=
145:
146: # UnixWare has /usr/include/iconv.h, but it's not GNU iconv, so mark it
147: # incompatible.
148: _INCOMPAT_ICONV= UnixWare-*-*
149:
150: # XXX Where are those variables used?
1.2 ! tv 151: .if (!defined(INSTALL_UNSTRIPPED) || empty(INSTALL_UNSTRIPPED:M[yY][eE][sS])) && !defined(DEBUG_FLAGS)
1.1 jlam 152: _STRIPFLAG_CC?= # cc(1) option to strip
153: _STRIPFLAG_INSTALL?= # install(1) option to strip
154: .endif
155:
156: LOCALBASE?= ${DESTDIR}/usr/pkg
157:
158: PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
159:
160: # check for maximum command line length and set it in configure's environment,
161: # to avoid a test required by the libtool script that takes forever.
162: # FIXME: Adjust to work on this system and enable the lines below.
163: #.if defined(GNU_CONFIGURE) && defined(USE_LIBTOOL)
164: #_OPSYS_MAX_CMDLEN!= /sbin/sysctl -n kern.argmax
165: #CONFIGURE_ENV+= lt_cv_sys_max_cmd_len=${_OPSYS_MAX_CMDLEN}
166: #.endif
167:
168: # If games are to be installed setgid, then SETGIDGAME is set to 'yes'
169: # (it defaults to 'no' as per bsd.pkg.defaults.mk).
170: # Set the group and mode to meaningful values in that case (defaults to
171: # BINOWN, BINGRP and BINMODE as per bsd.pkg.defaults.mk).
172: # FIXME: Adjust to work on this system and enable the lines below.
173: #.if !(empty(SETGIDGAME:M[yY][eE][sS]))
174: #GAMEOWN= games
175: #GAMEGRP= games
176: #GAMEMODE= 2555
177: #.endif
CVSweb <webmaster@jp.NetBSD.org>