author | Alan Coopersmith <Alan.Coopersmith@Sun.COM> |
Tue, 02 Mar 2010 13:31:46 -0800 | |
changeset 919 | 425233ae7236 |
parent 911 | a3e7e197651c |
child 924 | 107931382538 |
permissions | -rw-r--r-- |
792
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
1 |
############################################################################### |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
2 |
# |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
3 |
# xdm Makefile |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
4 |
# |
911
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
5 |
# Copyright 2010 Sun Microsystems, Inc. All rights reserved. |
792
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
6 |
# Use is subject to license terms. |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
7 |
# |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
8 |
# Permission is hereby granted, free of charge, to any person obtaining a |
919
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
9 |
# copy of this software and associated documentation files (the "Software"), |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
10 |
# to deal in the Software without restriction, including without limitation |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
11 |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
12 |
# and/or sell copies of the Software, and to permit persons to whom the |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
13 |
# Software is furnished to do so, subject to the following conditions: |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
14 |
# |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
15 |
# The above copyright notice and this permission notice (including the next |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
16 |
# paragraph) shall be included in all copies or substantial portions of the |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
17 |
# Software. |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
18 |
# |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
19 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
20 |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
21 |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
22 |
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
23 |
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
24 |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
25 |
# DEALINGS IN THE SOFTWARE. |
792
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
26 |
# |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
27 |
# |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
28 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
29 |
# Package name used in tarballs |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
30 |
MODULE_NAME=xdm |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
31 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
32 |
# Version number (used in path names) |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
33 |
MODULE_VERSION=1.1.9 |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
34 |
|
911
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
35 |
# Checksums for upstream tarball |
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
36 |
TARBALL_MD5 = 030ae4bd9b8d428749d68bfdf56ce8a5 |
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
37 |
TARBALL_SHA1 = ea0ee2923999d54848dc8a165867ffa7c628fd7b |
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
38 |
|
792
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
39 |
# Patches to apply to source after unpacking, in order |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
40 |
SOURCE_PATCHES = \ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
41 |
mkdir.patch,-p1 \ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
42 |
bindir.patch \ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
43 |
terminateServer.patch \ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
44 |
Xsession.patch |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
45 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
46 |
# Man pages to apply Sun footer to & attributes to list |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
47 |
SUNTOUCHED_MANPAGES=xdm.man.cpp |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
48 |
SUN_PACKAGE=SUNWxdm |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
49 |
MODULE_STABILITY=Committed |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
50 |
MODULE_SUNTOUCH_MAN_FLAGS= -p $(MODULE_PREFIX)/sbin/ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
51 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
52 |
# Where to install xdm files |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
53 |
MODULE_PREFIX=/usr |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
54 |
MODULE_PREFIX_SET=yes |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
55 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
56 |
# Additional configure script options |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
57 |
# Only build shared greeter module, not static |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
58 |
# Set various paths to better match Solaris |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
59 |
MODULE_CONFIG_OPTS= \ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
60 |
--enable-shared=yes --enable-static=no \ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
61 |
--with-xdmconfigdir=/etc/X11/xdm \ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
62 |
--with-piddir=/var/run/xdm \ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
63 |
--with-authdir=/var/run/xdm \ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
64 |
--bindir=/usr/sbin \ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
65 |
DEF_USER_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin \ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
66 |
DEF_SYSTEM_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
67 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
68 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
69 |
# Special handling while xdm is moved to /usr but other apps are still in |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
70 |
# /usr/X11 |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
71 |
MODULE_CONFIG_OPTS += \ |
851
d428083dbbdd
6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
792
diff
changeset
|
72 |
--with-xrdb='$(X11_BIN_DIR)/xrdb' \ |
d428083dbbdd
6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
792
diff
changeset
|
73 |
--with-default-session=command='$(X11_BIN_DIR)/xterm -ls' \ |
792
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
74 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
75 |
# Additional build & install targets |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
76 |
MODULE_ADD_BUILD_TARGETS=build_xdm_configs |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
77 |
MODULE_ADD_INSTALL_TARGETS=install_xdmshell install_xdm_configs |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
78 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
79 |
include ../Makefile.inc |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
80 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
81 |
# Move xdmshell from default location to the place we put in our packages |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
82 |
install_xdmshell: default_install |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
83 |
-rm -f $(PROTODIR)/usr/lib/X11/xdm/xdmshell |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
84 |
mv $(PROTODIR)/usr/sbin/xdmshell $(PROTODIR)/usr/lib/X11/xdm/xdmshell |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
85 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
86 |
# Copy xdm config files from /etc to /usr for use as prototypes |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
87 |
XDM_CONFIG_FILES=Xaccess Xresources Xservers xdm-config |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
88 |
XDM_ETC_CONFIGDIR=/etc/X11/xdm |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
89 |
XDM_USR_CONFIGDIR=/usr/lib/X11/xdm |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
90 |
XCF_USR_FILES=$(XDM_CONFIG_FILES:%=$(PROTODIR)/$(XDM_USR_CONFIGDIR)/%) |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
91 |
XCF_ETC_SRCDIR=$(SOURCE_DIR)/config |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
92 |
XCF_ETC_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_ETC_SRCDIR)/%) |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
93 |
XCF_USR_SRCDIR=$(SOURCE_DIR)/config/annotated |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
94 |
XCF_USR_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_USR_SRCDIR)/%) |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
95 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
96 |
build_xdm_configs: $(XCF_USR_SRCFILES) |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
97 |
install_xdm_configs: $(XCF_USR_FILES) $(PROTODIR)/$(XDM_USR_CONFIGDIR)/README |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
98 |
$(XCF_ETC_SRCFILES): default_build |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
99 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
100 |
XCF_HEADER = %1$$s---------------------------------------------------------------------------- |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
101 |
XCF_HEADER += \n%1$$s NOTE: The file provided in $(XDM_USR_CONFIGDIR) is a sample %2$$s |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
102 |
XCF_HEADER += \n%1$$s configuration file provided for your reference. |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
103 |
XCF_HEADER += \n%1$$s |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
104 |
XCF_HEADER += \n%1$$s xdm reads the actual configuration from the copies located in $(XDM_ETC_CONFIGDIR) |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
105 |
XCF_HEADER += \n%1$$s (unless configured otherwise by $(XDM_ETC_CONFIGDIR)/xdm-config or |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
106 |
XCF_HEADER += \n%1$$s a file specified via the -config command line option). |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
107 |
XCF_HEADER += \n%1$$s----------------------------------------------------------------------------\n |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
108 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
109 |
$(PROTODIR)/$(XDM_USR_CONFIGDIR) $(XCF_USR_SRCDIR): |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
110 |
mkdir -p $@ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
111 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
112 |
$(XCF_USR_FILES): $(PROTODIR)/$(XDM_USR_CONFIGDIR) $(XCF_USR_SRCFILES) |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
113 |
-rm -f $@ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
114 |
mkdir -p $(PROTODIR)/$(XDM_USR_CONFIGDIR) |
851
d428083dbbdd
6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
792
diff
changeset
|
115 |
@ $(START_CMD_ECHO) ; cp -p $(XCF_USR_SRCDIR)/$$(basename $@) $@ |
792
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
116 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
117 |
$(XCF_USR_SRCFILES): $(XCF_USR_SRCDIR) $(XCF_ETC_SRCFILES) |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
118 |
-rm -f $@ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
119 |
FILENAME=$$(basename $@) ; \ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
120 |
COMMENT_CHAR=$$(head -n 1 $(XCF_ETC_SRCDIR)/$${FILENAME}) ; \ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
121 |
printf '$(XCF_HEADER)' $${COMMENT_CHAR} $${FILENAME} > $@ ; \ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
122 |
cat $(XCF_ETC_SRCDIR)/$${FILENAME} >> $@ |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
123 |
|
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
124 |
$(PROTODIR)/$(XDM_USR_CONFIGDIR)/README:$(PROTODIR)/$(XDM_USR_CONFIGDIR) config-README.txt |
be478ae051ae
6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
125 |
cp -p config-README.txt $@ |