Makefile revision 970
f743002678eb67b99bbc29fee116b65d9530fec0wrowe###############################################################################
5c43d2fb853f84497b5ece2d414ef9484aa87e5fsf# xdm Makefile
1366443dc565c33e7b449ae428bbfc4c86f33935drh# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
88fac54d9d64f85bbdab5d7010816f4377f95bd7rjung# Permission is hereby granted, free of charge, to any person obtaining a
c896413ef7cc4cf8cea20c6783d0a93a9d77dc21jailletc# copy of this software and associated documentation files (the "Software"),
c896413ef7cc4cf8cea20c6783d0a93a9d77dc21jailletc# to deal in the Software without restriction, including without limitation
c896413ef7cc4cf8cea20c6783d0a93a9d77dc21jailletc# the rights to use, copy, modify, merge, publish, distribute, sublicense,
bd3f5647b96d378d9c75c954e3f13582af32c643sf# and/or sell copies of the Software, and to permit persons to whom the
bd3f5647b96d378d9c75c954e3f13582af32c643sf# Software is furnished to do so, subject to the following conditions:
bd3f5647b96d378d9c75c954e3f13582af32c643sf# The above copyright notice and this permission notice (including the next
bd3f5647b96d378d9c75c954e3f13582af32c643sf# paragraph) shall be included in all copies or substantial portions of the
2a7beea91d46beb41f043a84eaad060047ee04aafabien# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2a7beea91d46beb41f043a84eaad060047ee04aafabien# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9e430d18dde58791589bd699416c8319560dd067jim# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
9e430d18dde58791589bd699416c8319560dd067jim# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
9e430d18dde58791589bd699416c8319560dd067jim# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
584a85dd4047e38d3ed3a29b6662fcc9d100ae4csf# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
584a85dd4047e38d3ed3a29b6662fcc9d100ae4csf# DEALINGS IN THE SOFTWARE.
f21e9e3d0bfb7a507ecc5bc963f2159d693503d1sf# Package name used in tarballs
7f40ab64e74b7d1057b5ee6abc349e32e74b1b4cjim# pkg(5) name we deliver the files in (override default)
132ee6ac1c26d6e8953836316ba50734eefab47bsf# Version number (used in path names)
132ee6ac1c26d6e8953836316ba50734eefab47bsf# Checksums for upstream tarball
5c43d2fb853f84497b5ece2d414ef9484aa87e5fsf# Patches to apply to source after unpacking, in order
20eead0b01d51fce0cc17d04b8f98ec38eac68aejim# Man pages to apply Sun footer to & attributes to list
46e5dfe0899face9346d6711e4f2ba873d526991sf# Where to install xdm files
85eacfc96a04547ef25aabbc06440039715084c2jorton# Additional configure script options
85eacfc96a04547ef25aabbc06440039715084c2jorton# Only build shared greeter module, not static
85eacfc96a04547ef25aabbc06440039715084c2jorton# Set various paths to better match Solaris
68ba377fc3b124baa759662077c48077ebadb186minfrin DEF_USER_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin \
d776b0a2d2889ce1d13494873368f34327a2e1bbtrawick DEF_SYSTEM_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin
57db302f0875a6c93a79333b8941cea4c1827272jim# Special handling while xdm is moved to /usr but other apps are still in
92b1631880b0bf43fe8b2663a03c8571eb04e433jim --with-default-session=command='$(X11_BIN_DIR)/xterm -ls' \
92b1631880b0bf43fe8b2663a03c8571eb04e433jim# Additional build & install targets
78f94f1d06c4e6828ce04d618221e0fcecb57849humbedoohMODULE_ADD_INSTALL_TARGETS=install_xdmshell install_xdm_configs
536d2e7cd1fdec1255b8c3bdf41fdc714c506a54trawick# Move xdmshell from default location to the place we put in our packages
985a4368b93c3e9171a57897ad9454c8dbf4cdf6jorton mv $(PROTODIR)/usr/sbin/xdmshell $(PROTODIR)/usr/lib/X11/xdm/xdmshell
70caa242e6b90e0d6f0fabb56b8c5c2fb51717b3jorton# Copy xdm config files from /etc to /usr for use as prototypes
109e2a09790de3fb315d36d6232a14ab66c8eb0ahumbedoohXDM_CONFIG_FILES=Xaccess Xresources Xservers xdm-config
74e7a30182af5e68f14ccb8d57918b22b982db8bhumbedoohXCF_USR_FILES=$(XDM_CONFIG_FILES:%=$(PROTODIR)/$(XDM_USR_CONFIGDIR)/%)
74e7a30182af5e68f14ccb8d57918b22b982db8bhumbedoohXCF_ETC_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_ETC_SRCDIR)/%)
10961a2f60207cb873d889bb28b1f0ef707a4311humbedoohXCF_USR_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_USR_SRCDIR)/%)
0448378b899e8df0c060360f17c0af692adf17bchumbedoohinstall_xdm_configs: $(XCF_USR_FILES) $(PROTODIR)/$(XDM_USR_CONFIGDIR)/README
60a765cccbd3f3b5997b65b0034220c79f78369etrawickXCF_HEADER = %1$$s----------------------------------------------------------------------------
60a765cccbd3f3b5997b65b0034220c79f78369etrawickXCF_HEADER += \n%1$$s NOTE: The file provided in $(XDM_USR_CONFIGDIR) is a sample %2$$s
e7ca863b04ee2a7aea7738cadbf51ce5e6c5245dhumbedoohXCF_HEADER += \n%1$$s configuration file provided for your reference.
e7ca863b04ee2a7aea7738cadbf51ce5e6c5245dhumbedoohXCF_HEADER += \n%1$$s xdm reads the actual configuration from the copies located in $(XDM_ETC_CONFIGDIR)
e7ca863b04ee2a7aea7738cadbf51ce5e6c5245dhumbedoohXCF_HEADER += \n%1$$s (unless configured otherwise by $(XDM_ETC_CONFIGDIR)/xdm-config or
91654e263480f0fdc2a03d782ff23f8dad07cf79humbedoohXCF_HEADER += \n%1$$s a file specified via the -config command line option).
91814c869ca39ce45dfe147307d2a831cac6ecbehumbedoohXCF_HEADER += \n%1$$s----------------------------------------------------------------------------\n
79c5787b92ac5f0e1cc82393816c77a006399316trawick$(XCF_USR_FILES): $(PROTODIR)/$(XDM_USR_CONFIGDIR) $(XCF_USR_SRCFILES)
79c5787b92ac5f0e1cc82393816c77a006399316trawick$(XCF_USR_SRCFILES): $(XCF_USR_SRCDIR) $(XCF_ETC_SRCFILES)
12b987b969f03ef98d9175a53d849ab62f5684fecovener COMMENT_CHAR=$$(head -n 1 $(XCF_ETC_SRCDIR)/$${FILENAME}) ; \
7b395e4e878c28a4784919cfd2e704ddd14a3390jorton printf '$(XCF_HEADER)' $${COMMENT_CHAR} $${FILENAME} > $@ ; \