Sat Nov 15 22:05:12 2008 UTC ()
Pull up following revision(s) (requested by mrg in ticket #64):
	distrib/sets/Makefile: revision 1.64
	external/mit/xorg/server/Makefile: revision 1.5
	share/mk/bsd.README: revision 1.237
	BUILDING: revision 1.79
	share/mk/bsd.x11.mk: revision 1.71
	share/mk/bsd.own.mk: revision 1.544
	usr.bin/ssh/Makefile.inc: revision 1.18
	distrib/sets/sets.subr: revision 1.72
	share/man/man5/mk.conf.5: revision 1.42
	doc/BUILDING.mdoc: revision 1.68
	etc/Makefile: revision 1.360
	Makefile: revision 1.263
- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
  for the X11 to build if MKX11=yes is set.  it takes the values
  of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


(snj)
diff -r1.78 -r1.78.2.1 src/BUILDING
diff -r1.262 -r1.262.2.1 src/Makefile
diff -r1.63 -r1.63.2.1 src/distrib/sets/Makefile
diff -r1.71 -r1.71.2.1 src/distrib/sets/sets.subr
diff -r1.67 -r1.67.2.1 src/doc/BUILDING.mdoc
diff -r1.359 -r1.359.2.1 src/etc/Makefile
diff -r1.4 -r1.4.8.1 src/external/mit/xorg/server/Makefile
diff -r1.41 -r1.41.2.1 src/share/man/man5/mk.conf.5
diff -r1.236 -r1.236.2.1 src/share/mk/bsd.README
diff -r1.542 -r1.542.2.1 src/share/mk/bsd.own.mk
diff -r1.70 -r1.70.2.1 src/share/mk/bsd.x11.mk
diff -r1.17 -r1.17.2.1 src/usr.bin/ssh/Makefile.inc

cvs diff -r1.78 -r1.78.2.1 src/BUILDING (expand / switch to unified diff)

--- src/BUILDING 2008/09/24 07:38:04 1.78
+++ src/BUILDING 2008/11/15 22:05:11 1.78.2.1
@@ -295,38 +295,29 @@ CONFIGURATION @@ -295,38 +295,29 @@ CONFIGURATION
295 during the generation of the distribution tar files to ensure 295 during the generation of the distribution tar files to ensure
296 that the appropriate file ownership is stored. 296 that the appropriate file ownership is stored.
297 297
298 Default: ``no'' 298 Default: ``no''
299 299
300 MKUPDATE Can be set to ``yes'' or ``no''. Indicates whether all 300 MKUPDATE Can be set to ``yes'' or ``no''. Indicates whether all
301 install operations intended to write to DESTDIR will compare 301 install operations intended to write to DESTDIR will compare
302 file timestamps before installing, and skip the install phase 302 file timestamps before installing, and skip the install phase
303 if the destination files are up-to-date. This also has 303 if the destination files are up-to-date. This also has
304 implications on full builds (see next subsection). 304 implications on full builds (see next subsection).
305 305
306 Default: ``no'' 306 Default: ``no''
307 307
308 MKX11 Can be set to ``yes'' or ``no''. Indicates whether X11R6 is 308 MKX11 Can be set to ``yes'' or ``no''. Indicates whether X11 is
309 built from X11SRCDIR. 309 built from X11SRCDIR.
310 310
311 Mutually exclusive to MKXORG != no. 
312 
313 Default: ``no'' 
314 
315 MKXORG Can be set to ``yes'' or ``no''. Indicates whether X11R7 
316 (modular Xorg) is built from X11SRCDIR. 
317 
318 Mutually exclusive to MKX11 != no. 
319 
320 Default: ``no'' 311 Default: ``no''
321 312
322 TOOLDIR Directory to hold the host tools, once built. If specified, 313 TOOLDIR Directory to hold the host tools, once built. If specified,
323 must be an absolute path. This directory should be unique to 314 must be an absolute path. This directory should be unique to
324 a given host system and NetBSD source tree. (However, multi- 315 a given host system and NetBSD source tree. (However, multi-
325 ple targets may share the same TOOLDIR; the target-dependent 316 ple targets may share the same TOOLDIR; the target-dependent
326 files have unique names.) If unset, a default based on the 317 files have unique names.) If unset, a default based on the
327 uname(1) information of the host platform will be created in 318 uname(1) information of the host platform will be created in
328 the .OBJDIR of src. 319 the .OBJDIR of src.
329 320
330 Default: Unset. 321 Default: Unset.
331 322
332 USETOOLS Indicates whether the tools specified by TOOLDIR should be 323 USETOOLS Indicates whether the tools specified by TOOLDIR should be
@@ -348,26 +339,32 @@ CONFIGURATION @@ -348,26 +339,32 @@ CONFIGURATION
348 NetBSD source tree. 339 NetBSD source tree.
349 340
350 Default: ``yes'', unless TOOLCHAIN_MISSING is set to ``yes''. 341 Default: ``yes'', unless TOOLCHAIN_MISSING is set to ``yes''.
351 342
352 USETOOLS is also set to ``no'' when using <bsd.*.mk> outside 343 USETOOLS is also set to ``no'' when using <bsd.*.mk> outside
353 the NetBSD source tree. 344 the NetBSD source tree.
354 345
355 X11SRCDIR Directory containing the X11R6 source. If specified, must be 346 X11SRCDIR Directory containing the X11R6 source. If specified, must be
356 an absolute path. The main X11R6 source is found in 347 an absolute path. The main X11R6 source is found in
357 X11SRCDIR/xfree/xc. 348 X11SRCDIR/xfree/xc.
358 349
359 Default: ``/usr/xsrc'' 350 Default: ``/usr/xsrc''
360 351
 352 X11FLAVOUR The style of X11 cross-built, set to either ``Xorg'' or
 353 ``XFree86''.
 354
 355 Default: ``Xorg'' on amd64, i386, macppc, shark, sparc and
 356 sparc64 platforms, ``XFree86'' on everything else.
 357
361 "make" variables for full builds 358 "make" variables for full builds
362 These variables only affect the top level ``Makefile'' and do not affect 359 These variables only affect the top level ``Makefile'' and do not affect
363 manually building subtrees of the NetBSD source code. 360 manually building subtrees of the NetBSD source code.
364 361
365 INSTALLWORLDDIR Location for the ``make installworld'' target to install 362 INSTALLWORLDDIR Location for the ``make installworld'' target to install
366 to. If specified, must be an absolute path. 363 to. If specified, must be an absolute path.
367 364
368 Default: ``/'' 365 Default: ``/''
369 366
370 MKOBJDIRS Can be set to ``yes'' or ``no''. Indicates whether 367 MKOBJDIRS Can be set to ``yes'' or ``no''. Indicates whether
371 object directories will be created automatically (via a 368 object directories will be created automatically (via a
372 ``make obj'' pass) at the start of a build. 369 ``make obj'' pass) at the start of a build.
373 370

cvs diff -r1.262 -r1.262.2.1 src/Makefile (expand / switch to unified diff)

--- src/Makefile 2008/10/27 22:32:51 1.262
+++ src/Makefile 2008/11/15 22:05:11 1.262.2.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.262 2008/10/27 22:32:51 mrg Exp $ 1# $NetBSD: Makefile,v 1.262.2.1 2008/11/15 22:05:11 snj Exp $
2 2
3# 3#
4# This is the top-level makefile for building NetBSD. For an outline of 4# This is the top-level makefile for building NetBSD. For an outline of
5# how to build a snapshot or release, as well as other release engineering 5# how to build a snapshot or release, as well as other release engineering
6# information, see http://www.NetBSD.org/developers/releng/index.html 6# information, see http://www.NetBSD.org/developers/releng/index.html
7# 7#
8# Not everything you can set or do is documented in this makefile. In 8# Not everything you can set or do is documented in this makefile. In
9# particular, you should review the files in /usr/share/mk (especially 9# particular, you should review the files in /usr/share/mk (especially
10# bsd.README) for general information on building programs and writing 10# bsd.README) for general information on building programs and writing
11# Makefiles within this structure, and see the comments in src/etc/Makefile 11# Makefiles within this structure, and see the comments in src/etc/Makefile
12# for further information on installation and release set options. 12# for further information on installation and release set options.
13# 13#
14# Variables listed below can be set on the make command line (highest 14# Variables listed below can be set on the make command line (highest
@@ -93,29 +93,29 @@ @@ -93,29 +93,29 @@
93# do-gnu-lib: builds and installs prerequisites from gnu/lib. 93# do-gnu-lib: builds and installs prerequisites from gnu/lib.
94# do-external-lib: builds and installs prerequisites from external/lib. 94# do-external-lib: builds and installs prerequisites from external/lib.
95# do-sys-rump-fs-lib: builds and installs prerequisites from sys/rump/fs/lib 95# do-sys-rump-fs-lib: builds and installs prerequisites from sys/rump/fs/lib
96# do-sys-rump-net-lib: builds and installs prerequisites from sys/rump/net/lib 96# do-sys-rump-net-lib: builds and installs prerequisites from sys/rump/net/lib
97# do-ld.so: builds and installs prerequisites from libexec/ld.*_so. 97# do-ld.so: builds and installs prerequisites from libexec/ld.*_so.
98# do-compat-lib-csu: builds and installs prerequisites from compat/lib/csu 98# do-compat-lib-csu: builds and installs prerequisites from compat/lib/csu
99# if ${MKCOMPAT} != "no". 99# if ${MKCOMPAT} != "no".
100# do-compat-libgcc: builds and installs prerequisites from 100# do-compat-libgcc: builds and installs prerequisites from
101# compat/gnu/lib/crtstuff${LIBGCC_EXT} (if necessary) and 101# compat/gnu/lib/crtstuff${LIBGCC_EXT} (if necessary) and
102# compat/gnu/lib/libgcc${LIBGCC_EXT} if ${MKCOMPAT} != "no". 102# compat/gnu/lib/libgcc${LIBGCC_EXT} if ${MKCOMPAT} != "no".
103# do-compat-lib-libc: builds and installs prerequisites from compat/lib/libc 103# do-compat-lib-libc: builds and installs prerequisites from compat/lib/libc
104# if ${MKCOMPAT} != "no". 104# if ${MKCOMPAT} != "no".
105# do-build: builds and installs the entire system. 105# do-build: builds and installs the entire system.
106# do-x11: builds and installs X11; either 106# do-x11: builds and installs X11 if ${MKX11} != "no"; either
107# X11R7 from src/external/mit/xorg if ${MKXORG} != "no" 107# X11R7 from src/external/mit/xorg if ${X11FLAVOUR} == "Xorg"
108# or X11R6 from src/x11 if ${MKX11} != "no" 108# or X11R6 from src/x11
109# do-obsolete: installs the obsolete sets (for the postinstall-* targets). 109# do-obsolete: installs the obsolete sets (for the postinstall-* targets).
110# 110#
111 111
112.if ${.MAKEFLAGS:M${.CURDIR}/share/mk} == "" 112.if ${.MAKEFLAGS:M${.CURDIR}/share/mk} == ""
113.MAKEFLAGS: -m ${.CURDIR}/share/mk 113.MAKEFLAGS: -m ${.CURDIR}/share/mk
114.endif 114.endif
115 115
116# 116#
117# If _SRC_TOP_OBJ_ gets set here, we will end up with a directory that may 117# If _SRC_TOP_OBJ_ gets set here, we will end up with a directory that may
118# not be the top level objdir, because "make obj" can happen in the *middle* 118# not be the top level objdir, because "make obj" can happen in the *middle*
119# of "make build" (long after <bsd.own.mk> is calculated it). So, pre-set 119# of "make build" (long after <bsd.own.mk> is calculated it). So, pre-set
120# _SRC_TOP_OBJ_ here so it will not be added to ${.MAKEOVERRIDES}. 120# _SRC_TOP_OBJ_ here so it will not be added to ${.MAKEOVERRIDES}.
121# 121#
@@ -232,27 +232,27 @@ BUILDTARGETS+= do-libgcc @@ -232,27 +232,27 @@ BUILDTARGETS+= do-libgcc
232.if ${MKPCC} != "no" 232.if ${MKPCC} != "no"
233BUILDTARGET+= do-libpcc 233BUILDTARGET+= do-libpcc
234.endif 234.endif
235BUILDTARGETS+= do-lib-libc 235BUILDTARGETS+= do-lib-libc
236BUILDTARGETS+= do-lib do-gnu-lib do-external-lib 236BUILDTARGETS+= do-lib do-gnu-lib do-external-lib
237BUILDTARGETS+= do-sys-rump-fs-lib do-sys-rump-net-lib 237BUILDTARGETS+= do-sys-rump-fs-lib do-sys-rump-net-lib
238.if ${MKCOMPAT} != "no" 238.if ${MKCOMPAT} != "no"
239BUILDTARGETS+= do-compat-lib-csu 239BUILDTARGETS+= do-compat-lib-csu
240BUILDTARGETS+= do-compat-libgcc 240BUILDTARGETS+= do-compat-libgcc
241BUILDTARGETS+= do-compat-lib-libc 241BUILDTARGETS+= do-compat-lib-libc
242.endif 242.endif
243BUILDTARGETS+= do-ld.so 243BUILDTARGETS+= do-ld.so
244BUILDTARGETS+= do-build 244BUILDTARGETS+= do-build
245.if ${MKX11} != "no" || ${MKXORG} != "no" 245.if ${MKX11} != "no"
246BUILDTARGETS+= do-x11 246BUILDTARGETS+= do-x11
247.endif 247.endif
248BUILDTARGETS+= do-obsolete 248BUILDTARGETS+= do-obsolete
249 249
250# 250#
251# Enforce proper ordering of some rules. 251# Enforce proper ordering of some rules.
252# 252#
253 253
254.ORDER: ${BUILDTARGETS} 254.ORDER: ${BUILDTARGETS}
255includes-lib: .PHONY includes-include includes-sys 255includes-lib: .PHONY includes-include includes-sys
256includes-gnu: .PHONY includes-lib 256includes-gnu: .PHONY includes-lib
257 257
258# 258#
@@ -448,32 +448,34 @@ do-ld.so: .PHONY .MAKE @@ -448,32 +448,34 @@ do-ld.so: .PHONY .MAKE
448 ${MAKEDIRTARGET} libexec/ld.aout_so ${targ} 448 ${MAKEDIRTARGET} libexec/ld.aout_so ${targ}
449.endif 449.endif
450.if (${OBJECT_FMT} == "ELF") 450.if (${OBJECT_FMT} == "ELF")
451 ${MAKEDIRTARGET} libexec/ld.elf_so ${targ} 451 ${MAKEDIRTARGET} libexec/ld.elf_so ${targ}
452.endif 452.endif
453.endfor 453.endfor
454 454
455do-build: .PHONY .MAKE 455do-build: .PHONY .MAKE
456.for targ in dependall install 456.for targ in dependall install
457 ${MAKEDIRTARGET} . ${targ} BUILD_tools=no BUILD_lib=no 457 ${MAKEDIRTARGET} . ${targ} BUILD_tools=no BUILD_lib=no
458.endfor 458.endfor
459 459
460do-x11: .PHONY .MAKE 460do-x11: .PHONY .MAKE
461.if ${MKXORG} != "no" 461.if ${MKX11} != "no"
 462.if ${X11FLAVOUR} == "Xorg"
462 ${MAKEDIRTARGET} external/mit/xorg build 463 ${MAKEDIRTARGET} external/mit/xorg build
463.elif ${MKX11} != "no" 464.else
464 ${MAKEDIRTARGET} x11 build 465 ${MAKEDIRTARGET} x11 build
 466.endif
465.else 467.else
466 @echo "Neither MKX11 or MKXORG is enabled" 468 @echo "MKX11 is not enabled"
467 @false 469 @false
468.endif 470.endif
469 471
470do-obsolete: .PHONY .MAKE 472do-obsolete: .PHONY .MAKE
471 ${MAKEDIRTARGET} etc install-obsolete-lists 473 ${MAKEDIRTARGET} etc install-obsolete-lists
472 474
473# 475#
474# Speedup stubs for some subtrees that don't need to run these rules. 476# Speedup stubs for some subtrees that don't need to run these rules.
475# (Tells <bsd.subdir.mk> not to recurse for them.) 477# (Tells <bsd.subdir.mk> not to recurse for them.)
476# 478#
477 479
478.for dir in bin etc distrib games libexec regress sbin usr.sbin tools 480.for dir in bin etc distrib games libexec regress sbin usr.sbin tools
479includes-${dir}: .PHONY 481includes-${dir}: .PHONY

cvs diff -r1.63 -r1.63.2.1 src/distrib/sets/Makefile (expand / switch to unified diff)

--- src/distrib/sets/Makefile 2008/10/25 22:23:55 1.63
+++ src/distrib/sets/Makefile 2008/11/15 22:05:11 1.63.2.1
@@ -1,41 +1,41 @@ @@ -1,41 +1,41 @@
1# $NetBSD: Makefile,v 1.63 2008/10/25 22:23:55 apb Exp $ 1# $NetBSD: Makefile,v 1.63.2.1 2008/11/15 22:05:11 snj Exp $
2 2
3# The `all' target must appear before bsd.own.mk is pulled in. 3# The `all' target must appear before bsd.own.mk is pulled in.
4all: 4all:
5 @echo "Please understand what you are doing, first." 5 @echo "Please understand what you are doing, first."
6 @false 6 @false
7 7
8.include <bsd.own.mk> 8.include <bsd.own.mk>
9.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 9.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
10GREP?= grep 10GREP?= grep
11 11
12SETSCMD= cd ${.CURDIR} && \ 12SETSCMD= cd ${.CURDIR} && \
13 DESTDIR=${DESTDIR:Q} \ 13 DESTDIR=${DESTDIR:Q} \
14 MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \ 14 MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \
15 AWK=${TOOL_AWK:Q} \ 15 AWK=${TOOL_AWK:Q} \
16 CKSUM=${TOOL_CKSUM:Q} \ 16 CKSUM=${TOOL_CKSUM:Q} \
17 DB=${TOOL_DB:Q} \ 17 DB=${TOOL_DB:Q} \
18 HOST_SH=${HOST_SH:Q} \ 18 HOST_SH=${HOST_SH:Q} \
19 MAKE=${MAKE:Q} \ 19 MAKE=${MAKE:Q} \
20 MKTEMP=${TOOL_MKTEMP:Q} \ 20 MKTEMP=${TOOL_MKTEMP:Q} \
21 MTREE=${TOOL_MTREE:Q} \ 21 MTREE=${TOOL_MTREE:Q} \
22 PAX=${TOOL_PAX:Q} \ 22 PAX=${TOOL_PAX:Q} \
23 SED=${TOOL_SED:Q} \ 23 SED=${TOOL_SED:Q} \
24 TSORT=${TSORT:Q} \ 24 TSORT=${TSORT:Q} \
25 ${HOST_SH} 25 ${HOST_SH}
26 26
27MAKETARS_FLAGS= 27MAKETARS_FLAGS=
28.if ${MKX11} != "no" || ${MKXORG} != "no" 28.if ${MKX11} != "no"
29MAKEFLIST_FLAGS= -b 29MAKEFLIST_FLAGS= -b
30MAKESRCTARS_FLAGS= -x ${X11SRCDIR} -N ${NETBSDSRCDIR}/etc 30MAKESRCTARS_FLAGS= -x ${X11SRCDIR} -N ${NETBSDSRCDIR}/etc
31.else 31.else
32MAKEFLIST_FLAGS= 32MAKEFLIST_FLAGS=
33MAKESRCTARS_FLAGS= -N ${NETBSDSRCDIR}/etc 33MAKESRCTARS_FLAGS= -N ${NETBSDSRCDIR}/etc
34.endif 34.endif
35 35
36.if ${MAKEVERBOSE} != 2 36.if ${MAKEVERBOSE} != 2
37MAKETARS_FLAGS+= -q 37MAKETARS_FLAGS+= -q
38MAKESRCTARS_FLAGS+= -q 38MAKESRCTARS_FLAGS+= -q
39.endif 39.endif
40 40
41.if !defined(MAKETARSETS) 41.if !defined(MAKETARSETS)

cvs diff -r1.71 -r1.71.2.1 src/distrib/sets/sets.subr (expand / switch to unified diff)

--- src/distrib/sets/sets.subr 2008/10/26 07:31:00 1.71
+++ src/distrib/sets/sets.subr 2008/11/15 22:05:12 1.71.2.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: sets.subr,v 1.71 2008/10/26 07:31:00 mrg Exp $ 1# $NetBSD: sets.subr,v 1.71.2.1 2008/11/15 22:05:12 snj Exp $
2# 2#
3 3
4# 4#
5# The following variables contain defaults for sets.subr functions and callers: 5# The following variables contain defaults for sets.subr functions and callers:
6# setsdir path to src/distrib/sets 6# setsdir path to src/distrib/sets
7# nlists list of base sets 7# nlists list of base sets
8# xlists list of x11 sets 8# xlists list of x11 sets
9# obsolete controls if obsolete files are selected instead 9# obsolete controls if obsolete files are selected instead
10# lkm if != "no", enable LKM sets 10# lkm if != "no", enable LKM sets
11# shlib shared library format (a.out, elf, or "") 11# shlib shared library format (a.out, elf, or "")
12# stlib static library format (a.out, elf) 12# stlib static library format (a.out, elf)
13# 13#
14# The following <bsd.own.mk> variables are exported to the environment: 14# The following <bsd.own.mk> variables are exported to the environment:
@@ -161,26 +161,34 @@ case "$(type printf)" in @@ -161,26 +161,34 @@ case "$(type printf)" in
161esac 161esac
162 162
163oIFS=$IFS 163oIFS=$IFS
164IFS=" 164IFS="
165" 165"
166for x in $( 166for x in $(
167${MAKE} -B -f- all <<EOMAKE 167${MAKE} -B -f- all <<EOMAKE
168.include <bsd.own.mk> 168.include <bsd.own.mk>
169.if (\${MKMAN} == "no" || empty(MANINSTALL:Mmaninstall)) 169.if (\${MKMAN} == "no" || empty(MANINSTALL:Mmaninstall))
170MKMANPAGES=no 170MKMANPAGES=no
171.else 171.else
172MKMANPAGES=yes 172MKMANPAGES=yes
173.endif 173.endif
 174.if \${MKX11} != "no"
 175. if \${X11FLAVOUR} == "Xorg"
 176MKXORG:=yes
 177MKX11:=no
 178. else
 179MKXORG:=no
 180. endif
 181.endif
174all: 182all:
175.for i in MACHINE MACHINE_ARCH MACHINE_CPU \ 183.for i in MACHINE MACHINE_ARCH MACHINE_CPU \
176 HAVE_GCC HAVE_GDB OBJECT_FMT TOOLCHAIN_MISSING \ 184 HAVE_GCC HAVE_GDB OBJECT_FMT TOOLCHAIN_MISSING \
177 ${MKVARS} 185 ${MKVARS}
178 @echo "export \$i=\${\$i}" 186 @echo "export \$i=\${\$i}"
179.endfor 187.endfor
180 188
181EOMAKE 189EOMAKE
182); do 190); do
183# echo 1>&2 "DEBUG: read $x" 191# echo 1>&2 "DEBUG: read $x"
184 eval $x 192 eval $x
185done 193done
186IFS=$oIFS 194IFS=$oIFS
@@ -211,27 +219,27 @@ fi @@ -211,27 +219,27 @@ fi
211OSRELEASE=`${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh` 219OSRELEASE=`${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh`
212MODULEDIR="stand/${MACHINE}/${OSRELEASE}/modules" 220MODULEDIR="stand/${MACHINE}/${OSRELEASE}/modules"
213SUBST="s#@MODULEDIR@#${MODULEDIR}#g" 221SUBST="s#@MODULEDIR@#${MODULEDIR}#g"
214SUBST="${SUBST};s#@OSRELEASE@#${OSRELEASE}#g" 222SUBST="${SUBST};s#@OSRELEASE@#${OSRELEASE}#g"
215SUBST="${SUBST};s#@MACHINE@#${MACHINE}#g" 223SUBST="${SUBST};s#@MACHINE@#${MACHINE}#g"
216 224
217# 225#
218# list_set_files setfile [...] 226# list_set_files setfile [...]
219#  227#
220# Produce a packing list for setfile(s). 228# Produce a packing list for setfile(s).
221# In each file, a record consists of a path and a System Package name, 229# In each file, a record consists of a path and a System Package name,
222# separated by whitespace. E.g., 230# separated by whitespace. E.g.,
223# 231#
224# # $NetBSD: sets.subr,v 1.71 2008/10/26 07:31:00 mrg Exp $ 232# # $NetBSD: sets.subr,v 1.71.2.1 2008/11/15 22:05:12 snj Exp $
225# . base-sys-root [keyword[,...]] 233# . base-sys-root [keyword[,...]]
226# ./altroot base-sys-root 234# ./altroot base-sys-root
227# ./bin base-sys-root 235# ./bin base-sys-root
228# ./bin/[ base-util-root 236# ./bin/[ base-util-root
229# ./bin/cat base-util-root 237# ./bin/cat base-util-root
230# [...] 238# [...]
231# 239#
232# A # in the first column marks a comment. 240# A # in the first column marks a comment.
233# 241#
234# If ${obsolete} != 0, only entries with an "obsolete" keyword will 242# If ${obsolete} != 0, only entries with an "obsolete" keyword will
235# be printed. All other keywords must be present. 243# be printed. All other keywords must be present.
236# 244#
237# The third field is an optional comma separated list of keywords to 245# The third field is an optional comma separated list of keywords to
@@ -270,28 +278,28 @@ SUBST="${SUBST};s#@MACHINE@#${MACHINE}#g @@ -270,28 +278,28 @@ SUBST="${SUBST};s#@MACHINE@#${MACHINE}#g
270# manz ${MKMANZ} != no 278# manz ${MKMANZ} != no
271# modular ${MKMODULAR} != no 279# modular ${MKMODULAR} != no
272# nls ${MKNLS} != no 280# nls ${MKNLS} != no
273# nvi ${MKNVI} != no 281# nvi ${MKNVI} != no
274# pam ${MKPAM} != no 282# pam ${MKPAM} != no
275# pf ${MKPF} != no 283# pf ${MKPF} != no
276# pic ${MKPIC} != no 284# pic ${MKPIC} != no
277# postfix ${MKPOSTFIX} != no 285# postfix ${MKPOSTFIX} != no
278# profile ${MKPROFILE} != no 286# profile ${MKPROFILE} != no
279# puffs ${MKPUFFS} != no 287# puffs ${MKPUFFS} != no
280# sendmail ${MKSENDMAIL} != no 288# sendmail ${MKSENDMAIL} != no
281# share ${MKSHARE} != no 289# share ${MKSHARE} != no
282# skey ${MKSKEY} != no 290# skey ${MKSKEY} != no
283# x11 ${MKX11} != no 291# x11 ${MKX11} != no && ${X11FLAVOUR} == "XFree86"
284# xorg ${MKXORG} != no 292# xorg ${MKX11} != no && ${X11FLAVOUR} == "XFree86"
285# yp ${MKYP} != no 293# yp ${MKYP} != no
286# 294#
287# gcc=<n> <n> = value of ${HAVE_GCC} 295# gcc=<n> <n> = value of ${HAVE_GCC}
288# gdb=<n> <n> = value of ${HAVE_GDB} 296# gdb=<n> <n> = value of ${HAVE_GDB}
289# 297#
290# use_inet6 ${USE_INET6} != no 298# use_inet6 ${USE_INET6} != no
291# use_kerberos ${USE_KERBEROS} != no 299# use_kerberos ${USE_KERBEROS} != no
292# use_yp ${USE_YP} != no 300# use_yp ${USE_YP} != no
293# 301#
294# .cat if ${MKMANZ} != "no" && ${MKCATPAGES} != "no" 302# .cat if ${MKMANZ} != "no" && ${MKCATPAGES} != "no"
295# automatically append ".gz" to the filename 303# automatically append ".gz" to the filename
296# 304#
297# .man if ${MKMANZ} != "no" && ${MKMAN} != "no" 305# .man if ${MKMANZ} != "no" && ${MKMAN} != "no"

cvs diff -r1.67 -r1.67.2.1 src/doc/BUILDING.mdoc (expand / switch to unified diff)

--- src/doc/BUILDING.mdoc 2008/09/24 07:36:52 1.67
+++ src/doc/BUILDING.mdoc 2008/11/15 22:05:12 1.67.2.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: BUILDING.mdoc,v 1.67 2008/09/24 07:36:52 apb Exp $ 1.\" $NetBSD: BUILDING.mdoc,v 1.67.2.1 2008/11/15 22:05:12 snj Exp $
2.\" 2.\"
3.\" Copyright (c) 2001-2008 The NetBSD Foundation, Inc. 3.\" Copyright (c) 2001-2008 The NetBSD Foundation, Inc.
4.\" All rights reserved. 4.\" All rights reserved.
5.\" 5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation 6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Todd Vierling and Luke Mewburn. 7.\" by Todd Vierling and Luke Mewburn.
8.\" 8.\"
9.\" Redistribution and use in source and binary forms, with or without 9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions 10.\" modification, are permitted provided that the following conditions
11.\" are met: 11.\" are met:
12.\" 1. Redistributions of source code must retain the above copyright 12.\" 1. Redistributions of source code must retain the above copyright
13.\" notice, this list of conditions and the following disclaimer. 13.\" notice, this list of conditions and the following disclaimer.
14.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" 2. Redistributions in binary form must reproduce the above copyright
@@ -539,40 +539,28 @@ that the appropriate file ownership is s @@ -539,40 +539,28 @@ that the appropriate file ownership is s
539.DFLTn 539.DFLTn
540. 540.
541.It Sy MKUPDATE 541.It Sy MKUPDATE
542.YorN 542.YorN
543Indicates whether all install operations intended to write to 543Indicates whether all install operations intended to write to
544.Sy DESTDIR 544.Sy DESTDIR
545will compare file timestamps before installing, and skip the install 545will compare file timestamps before installing, and skip the install
546phase if the destination files are up-to-date. 546phase if the destination files are up-to-date.
547This also has implications on full builds (see next subsection). 547This also has implications on full builds (see next subsection).
548.DFLTn 548.DFLTn
549. 549.
550.It Sy MKX11 550.It Sy MKX11
551.YorN 551.YorN
552Indicates whether X11R6 is built from 552Indicates whether X11 is built from
553.Sy X11SRCDIR . 553.Sy X11SRCDIR .
554.Pp 
555Mutually exclusive to  
556.Sy MKXORG != no . 
557.DFLTn 
558. 
559.It Sy MKXORG 
560.YorN 
561Indicates whether X11R7 (modular Xorg) is built from 
562.Sy X11SRCDIR . 
563.Pp 
564Mutually exclusive to  
565.Sy MKX11 != no . 
566.DFLTn 554.DFLTn
567. 555.
568.It Sy TOOLDIR 556.It Sy TOOLDIR
569Directory to hold the host tools, once built. 557Directory to hold the host tools, once built.
570If specified, must be an absolute path. 558If specified, must be an absolute path.
571This directory should be unique to a given host system and 559This directory should be unique to a given host system and
572.Nx 560.Nx
573source tree. 561source tree.
574(However, multiple targets may share the same 562(However, multiple targets may share the same
575.Sy TOOLDIR ; 563.Sy TOOLDIR ;
576the target-dependent files have unique names.) If unset, a default based 564the target-dependent files have unique names.) If unset, a default based
577on the 565on the
578.Xr uname 1 566.Xr uname 1
@@ -626,26 +614,37 @@ when using @@ -626,26 +614,37 @@ when using
626.Aq bsd.*.mk 614.Aq bsd.*.mk
627outside the 615outside the
628.Nx 616.Nx
629source tree. 617source tree.
630. 618.
631.It Sy X11SRCDIR 619.It Sy X11SRCDIR
632Directory containing the X11R6 source. 620Directory containing the X11R6 source.
633If specified, must be an absolute path. 621If specified, must be an absolute path.
634The main X11R6 source is found in 622The main X11R6 source is found in
635.Sy X11SRCDIR Ns Pa /xfree/xc . 623.Sy X11SRCDIR Ns Pa /xfree/xc .
636.DFLT 624.DFLT
637.Dq /usr/xsrc 625.Dq /usr/xsrc
638. 626.
 627.It Sy X11FLAVOUR
 628The style of X11 cross-built, set to either
 629.Dq Xorg
 630or
 631.Dq XFree86 .
 632.DFLT
 633.Dq Xorg
 634on amd64, i386, macppc, shark, sparc and sparc64 platforms,
 635.Dq XFree86
 636on everything else.
 637.
639.El 638.El
640. 639.
641.Ss \*qmake\*q variables for full builds 640.Ss \*qmake\*q variables for full builds
642These variables only affect the top level 641These variables only affect the top level
643.Dq Makefile 642.Dq Makefile
644and do not affect manually building subtrees of the 643and do not affect manually building subtrees of the
645.Nx 644.Nx
646source code. 645source code.
647. 646.
648.Bl -tag -width "INSTALLWORLDDIR" 647.Bl -tag -width "INSTALLWORLDDIR"
649. 648.
650.It Sy INSTALLWORLDDIR 649.It Sy INSTALLWORLDDIR
651Location for the 650Location for the

cvs diff -r1.359 -r1.359.2.1 src/etc/Makefile (expand / switch to unified diff)

--- src/etc/Makefile 2008/10/19 22:05:20 1.359
+++ src/etc/Makefile 2008/11/15 22:05:12 1.359.2.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.359 2008/10/19 22:05:20 apb Exp $ 1# $NetBSD: Makefile,v 1.359.2.1 2008/11/15 22:05:12 snj Exp $
2# from: @(#)Makefile 8.7 (Berkeley) 5/25/95 2# from: @(#)Makefile 8.7 (Berkeley) 5/25/95
3 3
4# Environment variables without default values: 4# Environment variables without default values:
5# DESTDIR must be set before anything in this file will work. 5# DESTDIR must be set before anything in this file will work.
6# RELEASEDIR is where the tarred up stuff for a snapshot or 6# RELEASEDIR is where the tarred up stuff for a snapshot or
7# release will be placed. 7# release will be placed.
8# 8#
9# Environment variables with default values: 9# Environment variables with default values:
10# LOCALTIME will set the default local time for the system you 10# LOCALTIME will set the default local time for the system you
11# build; it determines what /etc/localtime is symlink'd to. 11# build; it determines what /etc/localtime is symlink'd to.
12# KERNSRCDIR points to kernel source; it is set by default to ../sys, 12# KERNSRCDIR points to kernel source; it is set by default to ../sys,
13# but can be overridden. 13# but can be overridden.
14# KERNOBJDIR is the kernel build directory, it defaults to 14# KERNOBJDIR is the kernel build directory, it defaults to
@@ -148,31 +148,33 @@ PWD_MKDB_ENDIAN= @@ -148,31 +148,33 @@ PWD_MKDB_ENDIAN=
148.endif 148.endif
149 149
150 150
151# distribution -- 151# distribution --
152# Build a distribution 152# Build a distribution
153# 153#
154distribution: .PHONY .MAKE check_DESTDIR distrib-dirs 154distribution: .PHONY .MAKE check_DESTDIR distrib-dirs
155.if !defined(DISTRIBUTION_DONE) 155.if !defined(DISTRIBUTION_DONE)
156.if !defined(INSTALL_DONE) 156.if !defined(INSTALL_DONE)
157 ${MAKEDIRTARGET} ${NETBSDSRCDIR} include _DISTRIB= 157 ${MAKEDIRTARGET} ${NETBSDSRCDIR} include _DISTRIB=
158 ${MAKEDIRTARGET} ${NETBSDSRCDIR} install _DISTRIB= 158 ${MAKEDIRTARGET} ${NETBSDSRCDIR} install _DISTRIB=
159.endif # !INSTALL_DONE 159.endif # !INSTALL_DONE
160 ${MAKEDIRTARGET} . install-etc-files 160 ${MAKEDIRTARGET} . install-etc-files
161.if ${MKXORG} != "no" 161. if ${MKX11} != "no"
 162. if ${X11FLAVOUR} == "Xorg"
162 ${MAKEDIRTARGET} ${NETBSDSRCDIR}/external/mit/xorg distribution 163 ${MAKEDIRTARGET} ${NETBSDSRCDIR}/external/mit/xorg distribution
163.elif ${MKX11} != "no" 164. else
164 ${MAKEDIRTARGET} ${NETBSDSRCDIR}/x11 distribution 165 ${MAKEDIRTARGET} ${NETBSDSRCDIR}/x11 distribution
165.endif 166. endif
 167. endif
166 ${MAKEDIRTARGET} ${NETBSDSRCDIR}/distrib/sets makesetfiles 168 ${MAKEDIRTARGET} ${NETBSDSRCDIR}/distrib/sets makesetfiles
167.endif # !DISTRIBUTION_DONE 169.endif # !DISTRIBUTION_DONE
168 170
169 171
170CLEANFILES+= MAKEDEV 172CLEANFILES+= MAKEDEV
171MAKEDEV: .EXEC 173MAKEDEV: .EXEC
172 ${_MKTARGET_CREATE} 174 ${_MKTARGET_CREATE}
173 MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \ 175 MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \
174 NETBSDSRCDIR=${NETBSDSRCDIR:Q} \ 176 NETBSDSRCDIR=${NETBSDSRCDIR:Q} \
175 ${TOOL_AWK} -f ${.CURDIR}/MAKEDEV.awk ${.CURDIR}/MAKEDEV.tmpl \ 177 ${TOOL_AWK} -f ${.CURDIR}/MAKEDEV.awk ${.CURDIR}/MAKEDEV.tmpl \
176 > ${.TARGET} 178 > ${.TARGET}
177 179
178RELEASEVARS= BSDOBJDIR BSDSRCDIR BUILDID \ 180RELEASEVARS= BSDOBJDIR BSDSRCDIR BUILDID \
@@ -180,35 +182,35 @@ RELEASEVARS= BSDOBJDIR BSDSRCDIR BUILDID @@ -180,35 +182,35 @@ RELEASEVARS= BSDOBJDIR BSDSRCDIR BUILDID
180 INSTALLWORLDDIR \ 182 INSTALLWORLDDIR \
181 KERNARCHDIR KERNCONFDIR KERNOBJDIR KERNSRCDIR \ 183 KERNARCHDIR KERNCONFDIR KERNOBJDIR KERNSRCDIR \
182 MACHINE MACHINE_ARCH MAKE MAKECONF MAKEFLAGS \ 184 MACHINE MACHINE_ARCH MAKE MAKECONF MAKEFLAGS \
183 MAKEOBJDIR MAKEOBJDIRPREFIX MAKEVERBOSE \ 185 MAKEOBJDIR MAKEOBJDIRPREFIX MAKEVERBOSE \
184 MKBFD MKCATPAGES \ 186 MKBFD MKCATPAGES \
185 MKCRYPTO MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS \ 187 MKCRYPTO MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS \
186 MKDEBUG MKDEBUGLIB MKDOC MKDYNAMICROOT \ 188 MKDEBUG MKDEBUGLIB MKDOC MKDYNAMICROOT \
187 MKGCC MKGCCCMDS MKGDB \ 189 MKGCC MKGCCCMDS MKGDB \
188 MKHESIOD MKHOSTOBJ MKHTML MKIEEEFP MKINET6 MKINFO MKIPFILTER \ 190 MKHESIOD MKHOSTOBJ MKHTML MKIEEEFP MKINET6 MKINFO MKIPFILTER \
189 MKKERBEROS MKLDAP MKLINKLIB MKLINT \ 191 MKKERBEROS MKLDAP MKLINKLIB MKLINT \
190 MKMAN MKMANZ MKNLS MKNVI MKOBJ MKOBJDIRS \ 192 MKMAN MKMANZ MKNLS MKNVI MKOBJ MKOBJDIRS \
191 MKPAM MKPF MKPIC MKPICINSTALL MKPICLIB MKPOSTFIX MKPROFILE \ 193 MKPAM MKPF MKPIC MKPICINSTALL MKPICLIB MKPOSTFIX MKPROFILE \
192 MKSHARE MKSKEY MKSOFTFLOAT MKSTATICLIB \ 194 MKSHARE MKSKEY MKSOFTFLOAT MKSTATICLIB \
193 MKUNPRIVED MKUPDATE MKX11 MKXORG MKYP \ 195 MKUNPRIVED MKUPDATE MKX11 MKYP \
194 NBUILDJOBS NETBSDSRCDIR \ 196 NBUILDJOBS NETBSDSRCDIR \
195 NOCLEANDIR NODISTRIBDIRS NOINCLUDES \ 197 NOCLEANDIR NODISTRIBDIRS NOINCLUDES \
196 OBJMACHINE \ 198 OBJMACHINE \
197 RELEASEDIR RELEASEMACHINEDIR TOOLCHAIN_MISSING TOOLDIR \ 199 RELEASEDIR RELEASEMACHINEDIR TOOLCHAIN_MISSING TOOLDIR \
198 USE_HESIOD USE_INET6 USE_JEMALLOC USE_KERBEROS USE_LDAP \ 200 USE_HESIOD USE_INET6 USE_JEMALLOC USE_KERBEROS USE_LDAP \
199 USE_PAM USE_SKEY USE_YP \ 201 USE_PAM USE_SKEY USE_YP \
200 USETOOLS USR_OBJMACHINE \ 202 USETOOLS USR_OBJMACHINE \
201 X11SRCDIR 203 X11SRCDIR X11FLAVOUR
202 204
203params: .PHONY 205params: .PHONY
204.for var in ${RELEASEVARS} 206.for var in ${RELEASEVARS}
205.if defined(${var}) 207.if defined(${var})
206 @printf "%20s = '%-s'\n" ${var} ${${var}:Q} 208 @printf "%20s = '%-s'\n" ${var} ${${var}:Q}
207.else 209.else
208 @printf "%20s = (undefined)\n" ${var} 210 @printf "%20s = (undefined)\n" ${var}
209.endif 211.endif
210.endfor 212.endfor
211 213
212CLEANFILES+= etc-release 214CLEANFILES+= etc-release
213etc-release: .EXEC .MAKE 215etc-release: .EXEC .MAKE
214 ${_MKTARGET_CREATE} 216 ${_MKTARGET_CREATE}
@@ -347,33 +349,33 @@ install-etc-files: .PHONY .MAKE check_DE @@ -347,33 +349,33 @@ install-etc-files: .PHONY .MAKE check_DE
347.if (${MKCRYPTO} != "no") 349.if (${MKCRYPTO} != "no")
348 ${MAKEDIRTARGET} ${NETBSDSRCDIR}/usr.bin/ssh configinstall 350 ${MAKEDIRTARGET} ${NETBSDSRCDIR}/usr.bin/ssh configinstall
349.endif 351.endif
350.if (${MKPOSTFIX} != "no") 352.if (${MKPOSTFIX} != "no")
351 ${MAKEDIRTARGET} ${NETBSDSRCDIR}/gnu/usr.sbin/postfix configinstall 353 ${MAKEDIRTARGET} ${NETBSDSRCDIR}/gnu/usr.sbin/postfix configinstall
352.endif 354.endif
353 355
354 356
355# install-obsolete-lists -- 357# install-obsolete-lists --
356# Install var/db/obsolete set lists; this is performed by "make build" 358# Install var/db/obsolete set lists; this is performed by "make build"
357# 359#
358OBSOLETE.dir= ${.OBJDIR}/obsolete.dir 360OBSOLETE.dir= ${.OBJDIR}/obsolete.dir
359OBSOLETE.files= base comp etc games man misc tests text 361OBSOLETE.files= base comp etc games man misc tests text
360.if ${MKX11} != "no" || ${MKXORG} != "no" 362.if ${MKX11} != "no"
361OBSOLETE.files+= xbase xcomp xetc xfont xserver 363OBSOLETE.files+= xbase xcomp xetc xfont xserver
362.endif 364.endif
363 365
364install-obsolete-lists: .PHONY .MAKE 366install-obsolete-lists: .PHONY .MAKE
365 mkdir -p ${OBSOLETE.dir} 367 mkdir -p ${OBSOLETE.dir}
366.if ${MKX11} != "no" || ${MKXORG} != "no" 368.if ${MKX11} != "no"
367 (cd ${NETBSDSRCDIR}/distrib/sets && \ 369 (cd ${NETBSDSRCDIR}/distrib/sets && \
368 MAKE=${MAKE:Q} ${HOST_SH} ./makeobsolete -b -t ${OBSOLETE.dir}) 370 MAKE=${MAKE:Q} ${HOST_SH} ./makeobsolete -b -t ${OBSOLETE.dir})
369.else 371.else
370 (cd ${NETBSDSRCDIR}/distrib/sets && \ 372 (cd ${NETBSDSRCDIR}/distrib/sets && \
371 MAKE=${MAKE:Q} ${HOST_SH} ./makeobsolete -t ${OBSOLETE.dir}) 373 MAKE=${MAKE:Q} ${HOST_SH} ./makeobsolete -t ${OBSOLETE.dir})
372.endif 374.endif
373.for file in ${OBSOLETE.files} 375.for file in ${OBSOLETE.files}
374 ${_MKMSG_INSTALL} ${DESTDIR}/var/db/obsolete/${file} 376 ${_MKMSG_INSTALL} ${DESTDIR}/var/db/obsolete/${file}
375 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \ 377 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
376 ${OBSOLETE.dir}/${file} ${DESTDIR}/var/db/obsolete 378 ${OBSOLETE.dir}/${file} ${DESTDIR}/var/db/obsolete
377.endfor 379.endfor
378 380
379 381

cvs diff -r1.4 -r1.4.8.1 src/external/mit/xorg/server/Makefile (expand / switch to unified diff)

--- src/external/mit/xorg/server/Makefile 2008/08/28 07:21:44 1.4
+++ src/external/mit/xorg/server/Makefile 2008/11/15 22:05:12 1.4.8.1
@@ -1,13 +1,9 @@ @@ -1,13 +1,9 @@
1# $NetBSD: Makefile,v 1.4 2008/08/28 07:21:44 mrg Exp $ 1# $NetBSD: Makefile,v 1.4.8.1 2008/11/15 22:05:12 snj Exp $
2 2
3# Makefile for modular-xorg-server and drivers 3# Makefile for modular-xorg-server and drivers
4 4
5.include <bsd.own.mk> 5.include <bsd.own.mk>
6 6
7.if ${MKXORG_WITH_XSRC_XSERVER} != "no" 
8SUBDIR= ../../../../x11/Xserver 
9.else 
10SUBDIR= xorg-server drivers 7SUBDIR= xorg-server drivers
11.endif 
12 8
13.include <bsd.subdir.mk> 9.include <bsd.subdir.mk>

cvs diff -r1.41 -r1.41.2.1 src/share/man/man5/mk.conf.5 (expand / switch to unified diff)

--- src/share/man/man5/mk.conf.5 2008/09/10 11:16:41 1.41
+++ src/share/man/man5/mk.conf.5 2008/11/15 22:05:12 1.41.2.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: mk.conf.5,v 1.41 2008/09/10 11:16:41 joerg Exp $ 1.\" $NetBSD: mk.conf.5,v 1.41.2.1 2008/11/15 22:05:12 snj Exp $
2.\" 2.\"
3.\" Copyright (c) 1999-2003 The NetBSD Foundation, Inc. 3.\" Copyright (c) 1999-2003 The NetBSD Foundation, Inc.
4.\" All rights reserved. 4.\" All rights reserved.
5.\" 5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation 6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Luke Mewburn. 7.\" by Luke Mewburn.
8.\" 8.\"
9.\" Redistribution and use in source and binary forms, with or without 9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions 10.\" modification, are permitted provided that the following conditions
11.\" are met: 11.\" are met:
12.\" 1. Redistributions of source code must retain the above copyright 12.\" 1. Redistributions of source code must retain the above copyright
13.\" notice, this list of conditions and the following disclaimer. 13.\" notice, this list of conditions and the following disclaimer.
14.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" 2. Redistributions in binary form must reproduce the above copyright
@@ -669,43 +669,35 @@ that the appropriate file ownership is s @@ -669,43 +669,35 @@ that the appropriate file ownership is s
669.DFLTn 669.DFLTn
670. 670.
671.It Sy MKUPDATE 671.It Sy MKUPDATE
672.YorN 672.YorN
673Indicates whether all install operations intended to write to 673Indicates whether all install operations intended to write to
674.Sy DESTDIR 674.Sy DESTDIR
675will compare file timestamps before installing, and skip the install 675will compare file timestamps before installing, and skip the install
676phase if the destination files are up-to-date. 676phase if the destination files are up-to-date.
677This also has implications on full builds (see next subsection). 677This also has implications on full builds (see next subsection).
678.DFLTn 678.DFLTn
679. 679.
680.It Sy MKX11 680.It Sy MKX11
681.YorN 681.YorN
682Indicates whether X11R6 is built and installed 682Indicates whether X11 is built and installed
683(by descending into 683(by descending into
684.Pa src/x11 ) . 684.Pa src/x11
685.DFLTn 685or
686.Pp 686.Pa src/external/mit/xorg
687This is mutually exclusive to 687depending on the value of
688.Sy MKXORG!=no . 688.Sy X11FLAVOUR ) .
689. 
690.It Sy MKXORG 
691.YorN 
692Indicates whether X11R7 is built and installed 
693(by descending into 
694.Pa src/external/mit/xorg ) . 
695.DFLTn 689.DFLTn
696.Pp 690.Pp
697This is mutually exclusive to 
698.Sy MKX11!=no . 
699. 691.
700.It Sy MKYP 692.It Sy MKYP
701.YorN 693.YorN
702Indicates whether the YP (NIS) infrastructure 694Indicates whether the YP (NIS) infrastructure
703(libraries and support programs) is built. 695(libraries and support programs) is built.
704.DFLTy 696.DFLTy
705. 697.
706.It Sy OBJMACHINE 698.It Sy OBJMACHINE
707If defined, creates objdirs of the form 699If defined, creates objdirs of the form
708.Pa obj. Ns Sy MACHINE , 700.Pa obj. Ns Sy MACHINE ,
709where 701where
710.Sy MACHINE 702.Sy MACHINE
711is the current architecture (as per 703is the current architecture (as per
@@ -877,26 +869,42 @@ This may cause build or runtime problems @@ -877,26 +869,42 @@ This may cause build or runtime problems
877source tree. 869source tree.
878.El 870.El
879.DFLT 871.DFLT
880.Dq yes 872.Dq yes
881if building all or part of a whole 873if building all or part of a whole
882.Nx 874.Nx
883source tree (detected automatically); 875source tree (detected automatically);
884.Dq no 876.Dq no
885otherwise (to preserve traditional semantics of the 877otherwise (to preserve traditional semantics of the
886.Aq bsd.*.mk 878.Aq bsd.*.mk
887.Xr make 1 879.Xr make 1
888include files). 880include files).
889. 881.
 882.It Sy X11FLAVOUR
 883Picks which X11 distribution to cross-build with
 884.Nx .
 885Set to either
 886.Dq Xorg
 887or
 888.Dq XFree86 .
 889Only relevant if
 890.Sy MKX11!=no .
 891.Pp
 892.Em Default :
 893.Dq Xorg
 894on alpha, i386, macppc, shark, sparc and sparc64 platforms.
 895.Dq XFree86
 896on everything else.
 897.
890.El 898.El
891. 899.
892.Ss pkgsrc system variables 900.Ss pkgsrc system variables
893. 901.
894Please see the pkgsrc guide at 902Please see the pkgsrc guide at
895.Pa http://www.netbsd.org/Documentation/pkgsrc/ 903.Pa http://www.netbsd.org/Documentation/pkgsrc/
896or 904or
897.Pa pkgsrc/doc/pkgsrc.txt 905.Pa pkgsrc/doc/pkgsrc.txt
898for more variables used internally by the package system and 906for more variables used internally by the package system and
899.Pa ${PKGSRCDIR}/mk/defaults/mk.conf 907.Pa ${PKGSRCDIR}/mk/defaults/mk.conf
900for package-specific examples. 908for package-specific examples.
901. 909.
902.Sh FILES 910.Sh FILES

cvs diff -r1.236 -r1.236.2.1 src/share/mk/bsd.README (expand / switch to unified diff)

--- src/share/mk/bsd.README 2008/10/26 23:13:24 1.236
+++ src/share/mk/bsd.README 2008/11/15 22:05:12 1.236.2.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: bsd.README,v 1.236 2008/10/26 23:13:24 apb Exp $ 1# $NetBSD: bsd.README,v 1.236.2.1 2008/11/15 22:05:12 snj Exp $
2# @(#)bsd.README 8.2 (Berkeley) 4/2/94 2# @(#)bsd.README 8.2 (Berkeley) 4/2/94
3 3
4This is the README file for the make "include" files for the NetBSD 4This is the README file for the make "include" files for the NetBSD
5source tree. The files are installed in /usr/share/mk, and are, 5source tree. The files are installed in /usr/share/mk, and are,
6by convention, named with the suffix ".mk". 6by convention, named with the suffix ".mk".
7 7
8Note, this file is not intended to replace reading through the .mk 8Note, this file is not intended to replace reading through the .mk
9files for anything tricky. 9files for anything tricky.
10 10
11=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 11=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
12 12
13RANDOM THINGS WORTH KNOWING: 13RANDOM THINGS WORTH KNOWING:
14 14
@@ -322,36 +322,30 @@ MKSTATICLIB If "no", don't build or inst @@ -322,36 +322,30 @@ MKSTATICLIB If "no", don't build or inst
322 Default: yes 322 Default: yes
323 323
324MKUNPRIVED If not "no", don't set the owner/group/mode when installing 324MKUNPRIVED If not "no", don't set the owner/group/mode when installing
325 files or directories, and keep a metadata log of what 325 files or directories, and keep a metadata log of what
326 the owner/group/mode should be. This allows a 326 the owner/group/mode should be. This allows a
327 non-root "make install". 327 non-root "make install".
328 Default: no 328 Default: no
329 329
330MKUPDATE If not "no", 'make install' only installs targets that are 330MKUPDATE If not "no", 'make install' only installs targets that are
331 more recently modified in the source directories that their 331 more recently modified in the source directories that their
332 installed counterparts. 332 installed counterparts.
333 Default: no 333 Default: no
334 334
335MKX11 If not "no", 'make build' also descends into src/x11 335MKX11 If not "no", depending on the value of ${X11FLAVOUR},
336 to cross-build X11R6 and automatically enables creation 336 'make build' also descends into either src/x11 (XFree86) or
337 of X sets. 337 src/external/mit/xorg (modular Xorg) to cross-build X11 and
338 Mutually exclusive to MKXORG!=no 338 automatically enables creation of X sets.
339 Default: no 
340 
341MKXORG If not "no", 'make build' also descends into 
342 src/external/mit/xorg to cross-build X11R7 (modular Xorg) 
343 and automatically enables creation of X sets. 
344 Mutually exclusive to MKX11!=no 
345 Default: no 339 Default: no
346 340
347MKYP If "no", disables building of YP (NIS) 341MKYP If "no", disables building of YP (NIS)
348 infrastructure (libraries and support programs). 342 infrastructure (libraries and support programs).
349 Default: yes 343 Default: yes
350 344
351USE_HESIOD If "no", disables building Hesiod support into 345USE_HESIOD If "no", disables building Hesiod support into
352 various system utilities/libraries that support it. 346 various system utilities/libraries that support it.
353 If ${MKHESIOD} is "no", USE_HESIOD will also be 347 If ${MKHESIOD} is "no", USE_HESIOD will also be
354 forced to "no". 348 forced to "no".
355 349
356USE_INET6 If "no", disables building INET6 (IPv6) support into 350USE_INET6 If "no", disables building INET6 (IPv6) support into
357 various system utilities/libraries that support it. 351 various system utilities/libraries that support it.
@@ -381,26 +375,31 @@ USE_SKEY If "no", disables building S/ke @@ -381,26 +375,31 @@ USE_SKEY If "no", disables building S/ke
381 support it. If ${MKSKEY} is "no", USE_SKEY will 375 support it. If ${MKSKEY} is "no", USE_SKEY will
382 also be forced to "no". 376 also be forced to "no".
383 Default: no 377 Default: no
384 378
385USE_SSP If "no", disables GCC stack protection code, which 379USE_SSP If "no", disables GCC stack protection code, which
386 detects stack overflows and aborts the program. This 380 detects stack overflows and aborts the program. This
387 imposes some performance penalty. 381 imposes some performance penalty.
388 Default: no 382 Default: no
389 383
390USE_YP If "no", disables building YP (NIS) support into 384USE_YP If "no", disables building YP (NIS) support into
391 various system utilities/libraries that support it. 385 various system utilities/libraries that support it.
392 If ${MKYP} is "no", USE_YP will also be forced to "no". 386 If ${MKYP} is "no", USE_YP will also be forced to "no".
393 387
 388X11FLAVOUR Set to "Xorg" or "XFree86", depending on whether to build
 389 XFree86 or modular Xorg. Only matters if MKX11!=no.
 390 Default: "yes" on amd64, i386, macppc, shark, sparc and
 391 sparc64, "no" on everything else.
 392
394COPTS.lib<lib> 393COPTS.lib<lib>
395OBJCOPTS.lib<lib> 394OBJCOPTS.lib<lib>
396LDADD.lib<lib> 395LDADD.lib<lib>
397CPPFLAGS.lib<lib> 396CPPFLAGS.lib<lib>
398CXXFLAGS.lib<lib> 397CXXFLAGS.lib<lib>
399COPTS.<prog> 398COPTS.<prog>
400OBJCCOPTS.<prog> 399OBJCCOPTS.<prog>
401LDADD.<prog> 400LDADD.<prog>
402CPPFLAGS.<prog> 401CPPFLAGS.<prog>
403CXXFLAGS.<prog> These provide a way to specify additions to the associated 402CXXFLAGS.<prog> These provide a way to specify additions to the associated
404 variables in a way that applies only to a particular library 403 variables in a way that applies only to a particular library
405 or program. <lib> corresponds to the LIB variable set in 404 or program. <lib> corresponds to the LIB variable set in
406 the library's makefile. <prog> corresponds to either PROG 405 the library's makefile. <prog> corresponds to either PROG

cvs diff -r1.542 -r1.542.2.1 src/share/mk/bsd.own.mk (expand / switch to unified diff)

--- src/share/mk/bsd.own.mk 2008/10/29 23:46:52 1.542
+++ src/share/mk/bsd.own.mk 2008/11/15 22:05:12 1.542.2.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: bsd.own.mk,v 1.542 2008/10/29 23:46:52 macallan Exp $ 1# $NetBSD: bsd.own.mk,v 1.542.2.1 2008/11/15 22:05:12 snj Exp $
2 2
3.if !defined(_BSD_OWN_MK_) 3.if !defined(_BSD_OWN_MK_)
4_BSD_OWN_MK_=1 4_BSD_OWN_MK_=1
5 5
6MAKECONF?= /etc/mk.conf 6MAKECONF?= /etc/mk.conf
7.-include "${MAKECONF}" 7.-include "${MAKECONF}"
8 8
9# 9#
10# CPU model, derived from MACHINE_ARCH 10# CPU model, derived from MACHINE_ARCH
11# 11#
12MACHINE_CPU= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/mips64e[bl]/mips/:C/sh3e[bl]/sh3/:S/m68000/m68k/:S/armeb/arm/} 12MACHINE_CPU= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/mips64e[bl]/mips/:C/sh3e[bl]/sh3/:S/m68000/m68k/:S/armeb/arm/}
13 13
14# 14#
@@ -653,31 +653,42 @@ MKCOMPAT:= no @@ -653,31 +653,42 @@ MKCOMPAT:= no
653 MKSHARE MKSKEY MKSTATICLIB \ 653 MKSHARE MKSKEY MKSTATICLIB \
654 MKYP 654 MKYP
655${var}?= yes 655${var}?= yes
656.endfor 656.endfor
657 657
658# 658#
659# MK* options which default to "no". 659# MK* options which default to "no".
660# 660#
661.for var in \ 661.for var in \
662 MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKDEBUG MKDEBUGLIB \ 662 MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKDEBUG MKDEBUGLIB \
663 MKMANZ MKMODULAR MKOBJDIRS \ 663 MKMANZ MKMODULAR MKOBJDIRS \
664 MKPCC MKPCCCMDS \ 664 MKPCC MKPCCCMDS \
665 MKSOFTFLOAT MKSTRIPIDENT \ 665 MKSOFTFLOAT MKSTRIPIDENT \
666 MKUNPRIVED MKUPDATE MKX11 MKXORG 666 MKUNPRIVED MKUPDATE MKX11
667${var}?=no 667${var}?=no
668.endfor 668.endfor
669 669
670# 670#
 671# Do we default to XFree86 or Xorg for this platform?
 672#
 673.if ${MACHINE} == "amd64" || ${MACHINE} == "i386" || \
 674 ${MACHINE} == "macppc" || ${MACHINE} == "shark" || \
 675 ${MACHINE} == "sparc" || ${MACHINE} == "sparc64"
 676X11FLAVOUR?= Xorg
 677.else
 678X11FLAVOUR?= XFree86
 679.endif
 680
 681#
671# Force some options off if their dependencies are off. 682# Force some options off if their dependencies are off.
672# 683#
673 684
674.if ${MKCRYPTO} == "no" 685.if ${MKCRYPTO} == "no"
675MKKERBEROS:= no 686MKKERBEROS:= no
676.endif 687.endif
677 688
678.if ${MKMAN} == "no" 689.if ${MKMAN} == "no"
679MKCATPAGES:= no 690MKCATPAGES:= no
680MKHTML:= no 691MKHTML:= no
681.endif 692.endif
682 693
683.if ${MKLINKLIB} == "no" 694.if ${MKLINKLIB} == "no"
@@ -776,27 +787,27 @@ ${var}?= yes @@ -776,27 +787,27 @@ ${var}?= yes
776# 787#
777# USE_* options which default to "no". 788# USE_* options which default to "no".
778# 789#
779#.for var in 790#.for var in
780#${var}?= no 791#${var}?= no
781#.endfor 792#.endfor
782 793
783# 794#
784# Where X11 sources are and where it is installed to. 795# Where X11 sources are and where it is installed to.
785# 796#
786X11SRCDIR?= /usr/xsrc 797X11SRCDIR?= /usr/xsrc
787X11SRCDIR.xc?= ${X11SRCDIR}/xfree/xc 798X11SRCDIR.xc?= ${X11SRCDIR}/xfree/xc
788X11SRCDIR.local?= ${X11SRCDIR}/local 799X11SRCDIR.local?= ${X11SRCDIR}/local
789.if ${MKXORG} != "no" 800.if ${X11FLAVOUR} == "Xorg"
790X11ROOTDIR?= /usr/X11R7 801X11ROOTDIR?= /usr/X11R7
791.else 802.else
792X11ROOTDIR?= /usr/X11R6 803X11ROOTDIR?= /usr/X11R6
793.endif 804.endif
794X11BINDIR?= ${X11ROOTDIR}/bin 805X11BINDIR?= ${X11ROOTDIR}/bin
795X11ETCDIR?= /etc/X11 806X11ETCDIR?= /etc/X11
796X11FONTDIR?= ${X11ROOTDIR}/lib/X11/fonts 807X11FONTDIR?= ${X11ROOTDIR}/lib/X11/fonts
797X11INCDIR?= ${X11ROOTDIR}/include 808X11INCDIR?= ${X11ROOTDIR}/include
798X11LIBDIR?= ${X11ROOTDIR}/lib/X11 809X11LIBDIR?= ${X11ROOTDIR}/lib/X11
799X11MANDIR?= ${X11ROOTDIR}/man 810X11MANDIR?= ${X11ROOTDIR}/man
800X11USRLIBDIR?= ${X11ROOTDIR}/lib 811X11USRLIBDIR?= ${X11ROOTDIR}/lib
801 812
802# 813#
@@ -850,30 +861,27 @@ X11SRCDIR.${_dir}?= ${X11SRCDIRMIT}/${_ @@ -850,30 +861,27 @@ X11SRCDIR.${_dir}?= ${X11SRCDIRMIT}/${_
850 keyboard mouse vmmouse void 861 keyboard mouse vmmouse void
851X11SRCDIR.xf86-input-${_i}?= ${X11SRCDIRMIT}/xf86-input-${_i}/dist 862X11SRCDIR.xf86-input-${_i}?= ${X11SRCDIRMIT}/xf86-input-${_i}/dist
852.endfor 863.endfor
853 864
854.for _v in \ 865.for _v in \
855 apm ark ast ati chips cirrus cyrix glint i128 i740 imstt intel \ 866 apm ark ast ati chips cirrus cyrix glint i128 i740 imstt intel \
856 mach64 mga neomagic nsc nv nvxbox r128 radeonhd rendition \ 867 mach64 mga neomagic nsc nv nvxbox r128 radeonhd rendition \
857 s3 s3virge savage \ 868 s3 s3virge savage \
858 siliconmotion sis sunffb suncg6 tdfx tga trident tseng vesa vga via \ 869 siliconmotion sis sunffb suncg6 tdfx tga trident tseng vesa vga via \
859 vmware wsfb 870 vmware wsfb
860X11SRCDIR.xf86-video-${_v}?= ${X11SRCDIRMIT}/xf86-video-${_v}/dist 871X11SRCDIR.xf86-video-${_v}?= ${X11SRCDIRMIT}/xf86-video-${_v}/dist
861.endfor 872.endfor
862 873
863# Default to no old Xserver builds for now 874.if ${X11FLAVOUR} == "Xorg"
864MKXORG_WITH_XSRC_XSERVER?= no 
865 
866.if ${MKXORG} != no 
867X11DRI?= yes 875X11DRI?= yes
868.endif 876.endif
869 877
870X11DRI?= no 878X11DRI?= no
871X11LOADABLE?= yes 879X11LOADABLE?= yes
872 880
873 881
874# 882#
875# MAKEDIRTARGET dir target [extra make(1) params] 883# MAKEDIRTARGET dir target [extra make(1) params]
876# run "cd $${dir} && ${MAKE} [params] $${target}", with a pretty message 884# run "cd $${dir} && ${MAKE} [params] $${target}", with a pretty message
877# 885#
878MAKEDIRTARGET=\ 886MAKEDIRTARGET=\
879 @_makedirtarget() { \ 887 @_makedirtarget() { \

cvs diff -r1.70 -r1.70.2.1 src/share/mk/bsd.x11.mk (expand / switch to unified diff)

--- src/share/mk/bsd.x11.mk 2008/10/25 22:27:36 1.70
+++ src/share/mk/bsd.x11.mk 2008/11/15 22:05:12 1.70.2.1
@@ -1,53 +1,43 @@ @@ -1,53 +1,43 @@
1# $NetBSD: bsd.x11.mk,v 1.70 2008/10/25 22:27:36 apb Exp $ 1# $NetBSD: bsd.x11.mk,v 1.70.2.1 2008/11/15 22:05:12 snj Exp $
2 2
3.include <bsd.init.mk> 3.include <bsd.init.mk>
4 4
5.if make(depend) || make(all) || make(dependall) 
6.if (${MKX11} != "no" && ${MKXORG} != "no") 
7.BEGIN: 
8 @echo 
9 @echo "ERROR: \$$MKX11 and \$$MKXORG are mutually exclusive." 
10 @echo 
11 @false 
12.endif 
13.endif 
14 
15BINDIR= ${X11BINDIR} 5BINDIR= ${X11BINDIR}
16LIBDIR= ${X11USRLIBDIR} 6LIBDIR= ${X11USRLIBDIR}
17MANDIR= ${X11MANDIR} 7MANDIR= ${X11MANDIR}
18 8
19COPTS+= -fno-strict-aliasing 9COPTS+= -fno-strict-aliasing
20 10
21.if defined(USE_SSP) && (${USE_SSP} != "no") 11.if defined(USE_SSP) && (${USE_SSP} != "no")
22CPPFLAGS+= -DNO_ALLOCA 12CPPFLAGS+= -DNO_ALLOCA
23.endif 13.endif
24 14
25X11FLAGS.VERSION= -DOSMAJORVERSION=1 -DOSMINORVERSION=6 # XXX 15X11FLAGS.VERSION= -DOSMAJORVERSION=1 -DOSMINORVERSION=6 # XXX
26 16
27# THREADS_DEFINES 17# THREADS_DEFINES
28X11FLAGS.THREADS= -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API \ 18X11FLAGS.THREADS= -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API \
29 -DXNO_MTSAFE_PWDAPI 19 -DXNO_MTSAFE_PWDAPI
30 20
31# CONNECTION_FLAGS 21# CONNECTION_FLAGS
32X11FLAGS.CONNECTION= -DTCPCONN -DUNIXCONN -DHAS_STICKY_DIR_BIT \ 22X11FLAGS.CONNECTION= -DTCPCONN -DUNIXCONN -DHAS_STICKY_DIR_BIT \
33 -DHAS_FCHOWN 23 -DHAS_FCHOWN
34 24
35.if (${USE_INET6} != "no") 25.if (${USE_INET6} != "no")
36X11FLAGS.CONNECTION+= -DIPv6 26X11FLAGS.CONNECTION+= -DIPv6
37.endif 27.endif
38 28
39# EXT_DEFINES 29# EXT_DEFINES
40.if ${MKXORG} != "no" 30.if ${X11FLAVOUR} == "Xorg"
41X11FLAGS.BASE_EXTENSION= -DMITMISC -DXTEST -DXTRAP -DXSYNC -DXCMISC \ 31X11FLAGS.BASE_EXTENSION= -DMITMISC -DXTEST -DXTRAP -DXSYNC -DXCMISC \
42 -DXRECORD -DMITSHM -DBIGREQS -DXF86VIDMODE \ 32 -DXRECORD -DMITSHM -DBIGREQS -DXF86VIDMODE \
43 -DXF86MISC -DDPMSExtension -DEVI \ 33 -DXF86MISC -DDPMSExtension -DEVI \
44 -DSCREENSAVER -DXV -DXVMC -DGLXEXT \ 34 -DSCREENSAVER -DXV -DXVMC -DGLXEXT \
45 -DFONTCACHE -DRES 35 -DFONTCACHE -DRES
46 36
47X11FLAGS.PERVASIVE_EXTENSION= -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP \ 37X11FLAGS.PERVASIVE_EXTENSION= -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP \
48 -DXCSECURITY -DTOGCUP -DXF86BIGFONT \ 38 -DXCSECURITY -DTOGCUP -DXF86BIGFONT \
49 -DDPMSExtension -DPIXPRIV -DPANORAMIX \ 39 -DDPMSExtension -DPIXPRIV -DPANORAMIX \
50 -DRENDER -DRANDR -DXFIXES -DDAMAGE \ 40 -DRENDER -DRANDR -DXFIXES -DDAMAGE \
51 -DCOMPOSITE -DXEVIE 41 -DCOMPOSITE -DXEVIE
52X11FLAGS.EXTENSION= ${X11FLAGS.BASE_EXTENSION} \ 42X11FLAGS.EXTENSION= ${X11FLAGS.BASE_EXTENSION} \
53 ${X11FLAGS.PERVASIVE_EXTENSION} 43 ${X11FLAGS.PERVASIVE_EXTENSION}
@@ -121,27 +111,27 @@ X11FLAGS.EXTENSION+= -D__GLX_ALIGN64 @@ -121,27 +111,27 @@ X11FLAGS.EXTENSION+= -D__GLX_ALIGN64
121 ${MACHINE} == "macppc" || \ 111 ${MACHINE} == "macppc" || \
122 ${MACHINE} == "netwinder" || \ 112 ${MACHINE} == "netwinder" || \
123 ${MACHINE} == "ofppc" || \ 113 ${MACHINE} == "ofppc" || \
124 ${MACHINE} == "sgimips" || \ 114 ${MACHINE} == "sgimips" || \
125 ${MACHINE} == "sparc64" || \ 115 ${MACHINE} == "sparc64" || \
126 ${MACHINE} == "sparc" || \ 116 ${MACHINE} == "sparc" || \
127 ${MACHINE} == "shark" 117 ${MACHINE} == "shark"
128# LOADABLE 118# LOADABLE
129X11FLAGS.LOADABLE= -DXFree86LOADER -DIN_MODULE -DXFree86Module \ 119X11FLAGS.LOADABLE= -DXFree86LOADER -DIN_MODULE -DXFree86Module \
130 -fno-merge-constants 120 -fno-merge-constants
131.endif 121.endif
132  122
133# XXX FIX ME 123# XXX FIX ME
134.if ${MKXORG} != "no" 124.if ${X11FLAVOUR} == "Xorg"
135XVENDORNAMESHORT= '"X.Org"' 125XVENDORNAMESHORT= '"X.Org"'
136XVENDORNAME= '"The X.Org Foundation"' 126XVENDORNAME= '"The X.Org Foundation"'
137XORG_RELEASE= '"Release 1.4.2"' 127XORG_RELEASE= '"Release 1.4.2"'
138__XKBDEFRULES__= '"xorg"' 128__XKBDEFRULES__= '"xorg"'
139XLOCALE.DEFINES= -DXLOCALEDIR=\"${X11LIBDIR}/locale\" \ 129XLOCALE.DEFINES= -DXLOCALEDIR=\"${X11LIBDIR}/locale\" \
140 -DXLOCALELIBDIR=\"${X11LIBDIR}/locale\" 130 -DXLOCALELIBDIR=\"${X11LIBDIR}/locale\"
141 131
142# XXX oh yeah, fix me later 132# XXX oh yeah, fix me later
143XORG_VERSION_CURRENT="(((1) * 10000000) + ((4) * 100000) + ((2) * 1000) + 0)" 133XORG_VERSION_CURRENT="(((1) * 10000000) + ((4) * 100000) + ((2) * 1000) + 0)"
144.endif 134.endif
145 135
146PRINT_PACKAGE_VERSION= awk '/^PACKAGE_VERSION=/ { \ 136PRINT_PACKAGE_VERSION= awk '/^PACKAGE_VERSION=/ { \
147 match($$1, "([0-9]+\\.)+[0-9]+"); \ 137 match($$1, "([0-9]+\\.)+[0-9]+"); \
@@ -345,27 +335,27 @@ _X11MANTRANSFORM= \ @@ -345,27 +335,27 @@ _X11MANTRANSFORM= \
345 __bindir__ ${X11BINDIR} \ 335 __bindir__ ${X11BINDIR} \
346 __drivermansuffix__ 4 \ 336 __drivermansuffix__ 4 \
347 __filemansuffix__ 5 \ 337 __filemansuffix__ 5 \
348 __LIB_MAN_SUFFIX__ 3 \ 338 __LIB_MAN_SUFFIX__ 3 \
349 __libmansuffix__ 3 \ 339 __libmansuffix__ 3 \
350 __logdir__ /var/log \ 340 __logdir__ /var/log \
351 __mandir__ ${X11MANDIR} \ 341 __mandir__ ${X11MANDIR} \
352 __miscmansuffix__ 7 \ 342 __miscmansuffix__ 7 \
353 __oslibmansuffix__ 3 \ 343 __oslibmansuffix__ 3 \
354 __projectroot__ ${X11ROOTDIR} \ 344 __projectroot__ ${X11ROOTDIR} \
355 ${X11EXTRAMANTRANSFORMS} 345 ${X11EXTRAMANTRANSFORMS}
356 346
357# Note the escaping trick for _X11MANTRANSFORM using % to replace spaces 347# Note the escaping trick for _X11MANTRANSFORM using % to replace spaces
358.if ${MKXORG} == "no" 348.if ${X11FLAVOUR} != "Xorg"
359X11VERSION= "XFree86 4.5.0" 349X11VERSION= "XFree86 4.5.0"
360X11MANCPP?= yes 350X11MANCPP?= yes
361_X11MANTRANSFORM+= \ 351_X11MANTRANSFORM+= \
362 __vendorversion__ ${X11VERSION:C/ /%/gW} 352 __vendorversion__ ${X11VERSION:C/ /%/gW}
363.else 353.else
364XORGVERSION= '"X.Org 7.3nb20081014" "X Version 11"' 354XORGVERSION= '"X.Org 7.3nb20081014" "X Version 11"'
365X11MANCPP?= no 355X11MANCPP?= no
366_X11MANTRANSFORM+= \ 356_X11MANTRANSFORM+= \
367 __vendorversion__ ${XORGVERSION:C/ /%/gW} \ 357 __vendorversion__ ${XORGVERSION:C/ /%/gW} \
368 __XCONFIGFILE__ xorg.conf \ 358 __XCONFIGFILE__ xorg.conf \
369 __xconfigfile__ xorg.conf \ 359 __xconfigfile__ xorg.conf \
370 __xorgversion__ ${XORGVERSION:C/ /%/gW} \ 360 __xorgversion__ ${XORGVERSION:C/ /%/gW} \
371 __XSERVERNAME__ Xorg \ 361 __XSERVERNAME__ Xorg \

cvs diff -r1.17 -r1.17.2.1 src/usr.bin/ssh/Attic/Makefile.inc (expand / switch to unified diff)

--- src/usr.bin/ssh/Attic/Makefile.inc 2008/10/27 08:27:04 1.17
+++ src/usr.bin/ssh/Attic/Makefile.inc 2008/11/15 22:05:12 1.17.2.1
@@ -1,37 +1,37 @@ @@ -1,37 +1,37 @@
1# $NetBSD: Makefile.inc,v 1.17 2008/10/27 08:27:04 hubertf Exp $ 1# $NetBSD: Makefile.inc,v 1.17.2.1 2008/11/15 22:05:12 snj Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
5USE_FORT?= yes # network client/server 5USE_FORT?= yes # network client/server
6 6
7SSHDIST?= ${NETBSDSRCDIR}/crypto/dist/ssh 7SSHDIST?= ${NETBSDSRCDIR}/crypto/dist/ssh
8 8
9CPPFLAGS+=-I${SSHDIST} -DHAVE_LOGIN_CAP -DHAVE_MMAP -DHAVE_OPENPTY 9CPPFLAGS+=-I${SSHDIST} -DHAVE_LOGIN_CAP -DHAVE_MMAP -DHAVE_OPENPTY
10.PATH: ${SSHDIST} 10.PATH: ${SSHDIST}
11 11
12LDADD+= -lssh -lcrypto -lcrypt -lz 12LDADD+= -lssh -lcrypto -lcrypt -lz
13DPADD+= ${LIBSSH} ${LIBCRYPTO} ${LIBCRYPT} ${LIBZ} 13DPADD+= ${LIBSSH} ${LIBCRYPTO} ${LIBCRYPT} ${LIBZ}
14 14
15.if (${USE_PAM} != "no") 15.if (${USE_PAM} != "no")
16CPPFLAGS+=-DUSE_PAM 16CPPFLAGS+=-DUSE_PAM
17.else # USE_PAM == no 17.else # USE_PAM == no
18.if (${USE_SKEY} != "no") 18.if (${USE_SKEY} != "no")
19CPPFLAGS+=-DSKEY 19CPPFLAGS+=-DSKEY
20.endif 20.endif
21.endif # USE_PAM == no 21.endif # USE_PAM == no
22 22
23.if (${USE_KERBEROS} != "no") 23.if (${USE_KERBEROS} != "no")
24CPPFLAGS+=-DGSSAPI -I${DESTDIR}/usr/include/gssapi 24CPPFLAGS+=-DGSSAPI -I${DESTDIR}/usr/include/gssapi
25CPPFLAGS+=-DKRB5 -I${DESTDIR}/usr/include/krb5 -DHEIMDAL 25CPPFLAGS+=-DKRB5 -I${DESTDIR}/usr/include/krb5 -DHEIMDAL
26.endif 26.endif
27 27
28.if (${MKXORG} != "no") 28.if ${X11FLAVOUR} == "Xorg"
29CPPFLAGS+=-DX11BASE=\"/usr/X11R7\" 29CPPFLAGS+=-DX11BASE=\"/usr/X11R7\"
30.endif 30.endif
31 31
32CPPFLAGS+=-DSUPPORT_UTMP -DSUPPORT_UTMPX 32CPPFLAGS+=-DSUPPORT_UTMP -DSUPPORT_UTMPX
33CPPFLAGS+=-DLIBWRAP 33CPPFLAGS+=-DLIBWRAP
34 34
35.if exists(${.CURDIR}/../../Makefile.inc) 35.if exists(${.CURDIR}/../../Makefile.inc)
36.include "${.CURDIR}/../../Makefile.inc" 36.include "${.CURDIR}/../../Makefile.inc"
37.endif 37.endif