Makefile revision 911
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder###############################################################################
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# xdm Makefile
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Use is subject to license terms.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Permission is hereby granted, free of charge, to any person obtaining a
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# copy of this software and associated documentation files (the
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# "Software"), to deal in the Software without restriction, including
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder# without limitation the rights to use, copy, modify, merge, publish,
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder# distribute, and/or sell copies of the Software, and to permit persons
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder# to whom the Software is furnished to do so, provided that the above
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder# copyright notice(s) and this permission notice appear in all copies of
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# the Software and that both the above copyright notice(s) and this
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# permission notice appear in supporting documentation.
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
a1ed34933c266ce85066acb0d7b20c90cb8eb213Christian Maeder# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
ad270004874ce1d0697fb30d7309f180553bb315Christian Maeder# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
4d56f2fa72e4aec20eb827c11ed49c8cbb7014bdChristian Maeder# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
4cb215739e9ab13447fa21162482ebe485b47455Christian Maeder# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
8ef75f1cc0437656bf622cec5ac9e8ea221da8f2Christian Maeder# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# Except as contained in this notice, the name of a copyright holder
74eed04be26f549d2f7ca35c370e1c03879b28b1Christian Maeder# shall not be used in advertising or otherwise to promote the sale, use
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# or other dealings in this Software without prior written authorization
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder# of the copyright holder.
ef9e8535c168d3f774d9e74368a2317a9eda5826Christian Maeder# Package name used in tarballs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# Version number (used in path names)
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder# Checksums for upstream tarball
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian MaederTARBALL_MD5 = 030ae4bd9b8d428749d68bfdf56ce8a5
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian MaederTARBALL_SHA1 = ea0ee2923999d54848dc8a165867ffa7c628fd7b
05a62e84edac8c64de04f8349dee418598d216b9Christian Maeder# Patches to apply to source after unpacking, in order
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder# Man pages to apply Sun footer to & attributes to list
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederMODULE_SUNTOUCH_MAN_FLAGS= -p $(MODULE_PREFIX)/sbin/
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder# Where to install xdm files
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder# Additional configure script options
014dc30f64ec25e4790cca987d4d1e6635430510Christian Maeder# Only build shared greeter module, not static
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich# Set various paths to better match Solaris
db675e8302ddb0d6528088ce68f5e98a00e890e3Christian Maeder DEF_USER_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin \
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder DEF_SYSTEM_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder# Special handling while xdm is moved to /usr but other apps are still in
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder --with-default-session=command='$(X11_BIN_DIR)/xterm -ls' \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# Additional build & install targets
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederMODULE_ADD_INSTALL_TARGETS=install_xdmshell install_xdm_configs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# Move xdmshell from default location to the place we put in our packages
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder -rm -f $(PROTODIR)/usr/lib/X11/xdm/xdmshell
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder mv $(PROTODIR)/usr/sbin/xdmshell $(PROTODIR)/usr/lib/X11/xdm/xdmshell
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maeder# Copy xdm config files from /etc to /usr for use as prototypes
bc8cbf12aa172bf5673b92a9e7a0151d4aa4c315Christian MaederXDM_CONFIG_FILES=Xaccess Xresources Xservers xdm-config
51d769d55d88dfa88bdf54bee78d8fa85a2deba8Christian MaederXCF_USR_FILES=$(XDM_CONFIG_FILES:%=$(PROTODIR)/$(XDM_USR_CONFIGDIR)/%)
a42fbfe7becf0eae2d624123eb0db73a794593f0Christian MaederXCF_ETC_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_ETC_SRCDIR)/%)
a42fbfe7becf0eae2d624123eb0db73a794593f0Christian MaederXCF_USR_SRCDIR=$(SOURCE_DIR)/config/annotated
b363eb04791e7f735633b9b4088502c2bc50ebfcChristian MaederXCF_USR_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_USR_SRCDIR)/%)
1cd4f6541984962658add5cfaa9f28a93879881bChristian Maederinstall_xdm_configs: $(XCF_USR_FILES) $(PROTODIR)/$(XDM_USR_CONFIGDIR)/README
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian MaederXCF_HEADER = %1$$s----------------------------------------------------------------------------
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian MaederXCF_HEADER += \n%1$$s NOTE: The file provided in $(XDM_USR_CONFIGDIR) is a sample %2$$s
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederXCF_HEADER += \n%1$$s configuration file provided for your reference.
4017ebc0f692820736d796af3110c3b3018c108aChristian MaederXCF_HEADER += \n%1$$s xdm reads the actual configuration from the copies located in $(XDM_ETC_CONFIGDIR)
a9b59eb2ce961014974276cdae0e9df4419bd212Christian MaederXCF_HEADER += \n%1$$s (unless configured otherwise by $(XDM_ETC_CONFIGDIR)/xdm-config or
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederXCF_HEADER += \n%1$$s a file specified via the -config command line option).
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederXCF_HEADER += \n%1$$s----------------------------------------------------------------------------\n
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder$(PROTODIR)/$(XDM_USR_CONFIGDIR) $(XCF_USR_SRCDIR):
dc679edd4ca027663212afdf00926ae2ce19b555Christian Maeder$(XCF_USR_FILES): $(PROTODIR)/$(XDM_USR_CONFIGDIR) $(XCF_USR_SRCFILES)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder @ $(START_CMD_ECHO) ; cp -p $(XCF_USR_SRCDIR)/$$(basename $@) $@
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder$(XCF_USR_SRCFILES): $(XCF_USR_SRCDIR) $(XCF_ETC_SRCFILES)
b568982efd0997d877286faa592d81b03c8c67b8Christian Maeder COMMENT_CHAR=$$(head -n 1 $(XCF_ETC_SRCDIR)/$${FILENAME}) ; \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder printf '$(XCF_HEADER)' $${COMMENT_CHAR} $${FILENAME} > $@ ; \