Makefile revision 965
98N/A###############################################################################
98N/A#
1339N/A# xdm Makefile
98N/A#
98N/A# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
919N/A#
919N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the "Software"),
919N/A# to deal in the Software without restriction, including without limitation
919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A# and/or sell copies of the Software, and to permit persons to whom the
919N/A# Software is furnished to do so, subject to the following conditions:
919N/A#
919N/A# The above copyright notice and this permission notice (including the next
919N/A# paragraph) shall be included in all copies or substantial portions of the
919N/A# Software.
919N/A#
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
98N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
98N/A# DEALINGS IN THE SOFTWARE.
98N/A#
493N/A#
493N/A
98N/A# Package name used in tarballs
970N/AMODULE_NAME=xdm
970N/A
970N/A# Version number (used in path names)
970N/AMODULE_VERSION=1.1.9
970N/A
970N/A# Checksums for upstream tarball
970N/ATARBALL_MD5 = 030ae4bd9b8d428749d68bfdf56ce8a5
1003N/ATARBALL_SHA1 = ea0ee2923999d54848dc8a165867ffa7c628fd7b
1339N/A
1339N/A# Patches to apply to source after unpacking, in order
970N/ASOURCE_PATCHES = \
970N/A mkdir.patch,-p1 \
970N/A bindir.patch \
970N/A terminateServer.patch \
970N/A bug-6822636.patch \
98N/A bug-6820612.patch,-p1 \
1265N/A Xsession.patch
98N/A
911N/A# Man pages to apply Sun footer to & attributes to list
1265N/ASUNTOUCHED_MANPAGES=xdm.man.cpp
1265N/ASUN_PACKAGE=SUNWxdm
911N/AMODULE_STABILITY=Committed
98N/AMODULE_SUNTOUCH_MAN_FLAGS= -p $(MODULE_PREFIX)/sbin/
493N/A
493N/A# Where to install xdm files
98N/AMODULE_PREFIX=/usr
98N/AMODULE_PREFIX_SET=yes
1089N/A
156N/A# Additional configure script options
493N/A# Only build shared greeter module, not static
493N/A# Set various paths to better match Solaris
493N/AMODULE_CONFIG_OPTS= \
493N/A --enable-shared=yes --enable-static=no \
493N/A --with-xdmconfigdir=/etc/X11/xdm \
493N/A --with-piddir=/var/run/xdm \
493N/A --with-authdir=/var/run/xdm \
98N/A --bindir=/usr/sbin \
98N/A DEF_USER_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin \
98N/A DEF_SYSTEM_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin
1345N/A
1265N/A
1265N/A# Special handling while xdm is moved to /usr but other apps are still in
1089N/A# /usr/X11
705N/AMODULE_CONFIG_OPTS += \
1283N/A --with-xrdb='$(X11_BIN_DIR)/xrdb' \
1283N/A --with-default-session=command='$(X11_BIN_DIR)/xterm -ls' \
606N/A
606N/A# Additional build & install targets
606N/AMODULE_ADD_BUILD_TARGETS=build_xdm_configs
606N/AMODULE_ADD_INSTALL_TARGETS=install_xdmshell install_xdm_configs
705N/A
967N/Ainclude ../Makefile.inc
606N/A
606N/A# Move xdmshell from default location to the place we put in our packages
606N/Ainstall_xdmshell: default_install
606N/A -rm -f $(PROTODIR)/usr/lib/X11/xdm/xdmshell
606N/A mv $(PROTODIR)/usr/sbin/xdmshell $(PROTODIR)/usr/lib/X11/xdm/xdmshell
606N/A
1089N/A# Copy xdm config files from /etc to /usr for use as prototypes
1262N/AXDM_CONFIG_FILES=Xaccess Xresources Xservers xdm-config
1265N/AXDM_ETC_CONFIGDIR=/etc/X11/xdm
1265N/AXDM_USR_CONFIGDIR=/usr/lib/X11/xdm
606N/AXCF_USR_FILES=$(XDM_CONFIG_FILES:%=$(PROTODIR)/$(XDM_USR_CONFIGDIR)/%)
1109N/AXCF_ETC_SRCDIR=$(SOURCE_DIR)/config
1109N/AXCF_ETC_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_ETC_SRCDIR)/%)
1109N/AXCF_USR_SRCDIR=$(SOURCE_DIR)/config/annotated
606N/AXCF_USR_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_USR_SRCDIR)/%)
606N/A
606N/Abuild_xdm_configs: $(XCF_USR_SRCFILES)
98N/Ainstall_xdm_configs: $(XCF_USR_FILES) $(PROTODIR)/$(XDM_USR_CONFIGDIR)/README
1126N/A$(XCF_ETC_SRCFILES): default_build
1126N/A
1126N/AXCF_HEADER = %1$$s----------------------------------------------------------------------------
970N/AXCF_HEADER += \n%1$$s NOTE: The file provided in $(XDM_USR_CONFIGDIR) is a sample %2$$s
493N/AXCF_HEADER += \n%1$$s configuration file provided for your reference.
493N/AXCF_HEADER += \n%1$$s
493N/AXCF_HEADER += \n%1$$s xdm reads the actual configuration from the copies located in $(XDM_ETC_CONFIGDIR)
98N/AXCF_HEADER += \n%1$$s (unless configured otherwise by $(XDM_ETC_CONFIGDIR)/xdm-config or
647N/AXCF_HEADER += \n%1$$s a file specified via the -config command line option).
1089N/AXCF_HEADER += \n%1$$s----------------------------------------------------------------------------\n
1089N/A
98N/A$(PROTODIR)/$(XDM_USR_CONFIGDIR) $(XCF_USR_SRCDIR):
647N/A mkdir -p $@
647N/A
1089N/A$(XCF_USR_FILES): $(PROTODIR)/$(XDM_USR_CONFIGDIR) $(XCF_USR_SRCFILES)
647N/A -rm -f $@
606N/A mkdir -p $(PROTODIR)/$(XDM_USR_CONFIGDIR)
1089N/A @ $(START_CMD_ECHO) ; cp -p $(XCF_USR_SRCDIR)/$$(basename $@) $@
98N/A
606N/A$(XCF_USR_SRCFILES): $(XCF_USR_SRCDIR) $(XCF_ETC_SRCFILES)
1196N/A -rm -f $@
98N/A FILENAME=$$(basename $@) ; \
493N/A COMMENT_CHAR=$$(head -n 1 $(XCF_ETC_SRCDIR)/$${FILENAME}) ; \
493N/A printf '$(XCF_HEADER)' $${COMMENT_CHAR} $${FILENAME} > $@ ; \
98N/A cat $(XCF_ETC_SRCDIR)/$${FILENAME} >> $@
705N/A
705N/A$(PROTODIR)/$(XDM_USR_CONFIGDIR)/README:$(PROTODIR)/$(XDM_USR_CONFIGDIR) config-README.txt
705N/A cp -p config-README.txt $@
493N/A