Makefile revision 1097
9fb5c93ff4449e19077128c07c080acbed35ceeavboxsync###############################################################################
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# xdm Makefile
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
74804912a237136f06d0b49682a119577135902bvboxsync# Permission is hereby granted, free of charge, to any person obtaining a
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# copy of this software and associated documentation files (the "Software"),
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# to deal in the Software without restriction, including without limitation
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# the rights to use, copy, modify, merge, publish, distribute, sublicense,
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# and/or sell copies of the Software, and to permit persons to whom the
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Software is furnished to do so, subject to the following conditions:
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# The above copyright notice and this permission notice (including the next
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# paragraph) shall be included in all copies or substantial portions of the
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
74804912a237136f06d0b49682a119577135902bvboxsync# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
9fb5c93ff4449e19077128c07c080acbed35ceeavboxsync# DEALINGS IN THE SOFTWARE.
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Package name used in tarballs
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# pkg(5) name we deliver the files in (override default)
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Version number (used in path names)
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Checksums for upstream tarball
e62cb87bae732e9968199a3ad153cc94004b7182vboxsyncTARBALL_SHA1 = ea0ee2923999d54848dc8a165867ffa7c628fd7b
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Patches to apply to source after unpacking, in order
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Man pages to apply Sun footer to & attributes to list
e62cb87bae732e9968199a3ad153cc94004b7182vboxsyncMODULE_SUNTOUCH_MAN_FLAGS= -p $(MODULE_PREFIX)/sbin/
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Where to install xdm files
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Additional configure script options
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Only build shared greeter module, not static
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Set various paths to better match Solaris
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync DEF_USER_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin \
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync DEF_SYSTEM_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Special handling while xdm is moved to /usr but other apps are still in
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync --with-default-session=command='$(X11_BIN_DIR)/xterm -ls' \
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Additional build & install targets
e62cb87bae732e9968199a3ad153cc94004b7182vboxsyncMODULE_ADD_INSTALL_TARGETS=install_xdmshell install_xdm_configs
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Need to fix libtool interference with our linker flags
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Move xdmshell from default location to the place we put in our packages
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync mv $(PROTODIR)/usr/sbin/xdmshell $(PROTODIR)/usr/lib/X11/xdm/xdmshell
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync# Copy xdm config files from /etc to /usr for use as prototypes
e62cb87bae732e9968199a3ad153cc94004b7182vboxsyncXDM_CONFIG_FILES=Xaccess Xresources Xservers xdm-config
e9a584ee0777ab2612e206eeec264ccb1a8ce333vboxsyncXCF_USR_FILES=$(XDM_CONFIG_FILES:%=$(PROTODIR)/$(XDM_USR_CONFIGDIR)/%)
e62cb87bae732e9968199a3ad153cc94004b7182vboxsyncXCF_ETC_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_ETC_SRCDIR)/%)
e62cb87bae732e9968199a3ad153cc94004b7182vboxsyncXCF_USR_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_USR_SRCDIR)/%)
e9a584ee0777ab2612e206eeec264ccb1a8ce333vboxsyncinstall_xdm_configs: $(XCF_USR_FILES) $(PROTODIR)/$(XDM_USR_CONFIGDIR)/README
e62cb87bae732e9968199a3ad153cc94004b7182vboxsyncXCF_HEADER = %1$$s----------------------------------------------------------------------------
e62cb87bae732e9968199a3ad153cc94004b7182vboxsyncXCF_HEADER += \n%1$$s NOTE: The file provided in $(XDM_USR_CONFIGDIR) is a sample %2$$s
e62cb87bae732e9968199a3ad153cc94004b7182vboxsyncXCF_HEADER += \n%1$$s configuration file provided for your reference.
e62cb87bae732e9968199a3ad153cc94004b7182vboxsyncXCF_HEADER += \n%1$$s xdm reads the actual configuration from the copies located in $(XDM_ETC_CONFIGDIR)
e62cb87bae732e9968199a3ad153cc94004b7182vboxsyncXCF_HEADER += \n%1$$s (unless configured otherwise by $(XDM_ETC_CONFIGDIR)/xdm-config or
e62cb87bae732e9968199a3ad153cc94004b7182vboxsyncXCF_HEADER += \n%1$$s a file specified via the -config command line option).
e62cb87bae732e9968199a3ad153cc94004b7182vboxsyncXCF_HEADER += \n%1$$s----------------------------------------------------------------------------\n
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync$(XCF_USR_FILES): $(PROTODIR)/$(XDM_USR_CONFIGDIR) $(XCF_USR_SRCFILES)
e9a584ee0777ab2612e206eeec264ccb1a8ce333vboxsync$(XCF_USR_SRCFILES): $(XCF_USR_SRCDIR) $(XCF_ETC_SRCFILES)
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync COMMENT_CHAR=$$(head -n 1 $(XCF_ETC_SRCDIR)/$${FILENAME}) ; \
e62cb87bae732e9968199a3ad153cc94004b7182vboxsync printf '$(XCF_HEADER)' $${COMMENT_CHAR} $${FILENAME} > $@ ; \