Makefile revision 851
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt###############################################################################
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# xdm Makefile
938440694b33cd752e9e4b71a526368b4811c177Tinderbox User# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Use is subject to license terms.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Permission is hereby granted, free of charge, to any person obtaining a
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# copy of this software and associated documentation files (the
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# "Software"), to deal in the Software without restriction, including
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# without limitation the rights to use, copy, modify, merge, publish,
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# distribute, and/or sell copies of the Software, and to permit persons
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# to whom the Software is furnished to do so, provided that the above
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# copyright notice(s) and this permission notice appear in all copies of
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# the Software and that both the above copyright notice(s) and this
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# permission notice appear in supporting documentation.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
1753d3c4d74241a847794f7e7cfd94cc79be6600Evan Hunt# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Except as contained in this notice, the name of a copyright holder
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# shall not be used in advertising or otherwise to promote the sale, use
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# or other dealings in this Software without prior written authorization
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# of the copyright holder.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Package name used in tarballs
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Version number (used in path names)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Patches to apply to source after unpacking, in order
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Man pages to apply Sun footer to & attributes to list
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntMODULE_SUNTOUCH_MAN_FLAGS= -p $(MODULE_PREFIX)/sbin/
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Where to install xdm files
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Additional configure script options
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Only build shared greeter module, not static
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Set various paths to better match Solaris
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt DEF_USER_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin \
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt DEF_SYSTEM_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Special handling while xdm is moved to /usr but other apps are still in
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt --with-default-session=command='$(X11_BIN_DIR)/xterm -ls' \
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Additional build & install targets
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntMODULE_ADD_INSTALL_TARGETS=install_xdmshell install_xdm_configs
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Move xdmshell from default location to the place we put in our packages
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt mv $(PROTODIR)/usr/sbin/xdmshell $(PROTODIR)/usr/lib/X11/xdm/xdmshell
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Copy xdm config files from /etc to /usr for use as prototypes
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntXDM_CONFIG_FILES=Xaccess Xresources Xservers xdm-config
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntXCF_USR_FILES=$(XDM_CONFIG_FILES:%=$(PROTODIR)/$(XDM_USR_CONFIGDIR)/%)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntXCF_ETC_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_ETC_SRCDIR)/%)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntXCF_USR_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_USR_SRCDIR)/%)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntinstall_xdm_configs: $(XCF_USR_FILES) $(PROTODIR)/$(XDM_USR_CONFIGDIR)/README
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntXCF_HEADER = %1$$s----------------------------------------------------------------------------
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntXCF_HEADER += \n%1$$s NOTE: The file provided in $(XDM_USR_CONFIGDIR) is a sample %2$$s
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntXCF_HEADER += \n%1$$s configuration file provided for your reference.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntXCF_HEADER += \n%1$$s xdm reads the actual configuration from the copies located in $(XDM_ETC_CONFIGDIR)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntXCF_HEADER += \n%1$$s (unless configured otherwise by $(XDM_ETC_CONFIGDIR)/xdm-config or
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntXCF_HEADER += \n%1$$s a file specified via the -config command line option).
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntXCF_HEADER += \n%1$$s----------------------------------------------------------------------------\n
mkdir -p $@
-rm -f $@
-rm -f $@