Makefile revision 1456
adb8c5e5291be5943122bbff404bc1018c79d555ianh###############################################################################
a21148678a1459064627d917a66669e7e8d140e6stoddard# xdm - X Display Manager with support for XDMCP and host chooser
c6a9d49433c9ba5b18b26c3d764f1bbcb9746090wrowe# Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
c6a9d49433c9ba5b18b26c3d764f1bbcb9746090wrowe# Permission is hereby granted, free of charge, to any person obtaining a
51be7fc538641ed7cb22e959eb31629f7183f70fianh# copy of this software and associated documentation files (the "Software"),
51be7fc538641ed7cb22e959eb31629f7183f70fianh# to deal in the Software without restriction, including without limitation
bb6a7fc0427d0d197c50de34b94a0d23e5732696wrowe# the rights to use, copy, modify, merge, publish, distribute, sublicense,
bb6a7fc0427d0d197c50de34b94a0d23e5732696wrowe# and/or sell copies of the Software, and to permit persons to whom the
bb6a7fc0427d0d197c50de34b94a0d23e5732696wrowe# Software is furnished to do so, subject to the following conditions:
decd0c23bb26f6662f4b963cf86ee569613bffeagregames# The above copyright notice and this permission notice (including the next
decd0c23bb26f6662f4b963cf86ee569613bffeagregames# paragraph) shall be included in all copies or substantial portions of the
e1753aabf5df187b5b04e72a958af4b65b1a125daaron# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
e1753aabf5df187b5b04e72a958af4b65b1a125daaron# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
e1753aabf5df187b5b04e72a958af4b65b1a125daaron# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
e1753aabf5df187b5b04e72a958af4b65b1a125daaron# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
e1753aabf5df187b5b04e72a958af4b65b1a125daaron# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
e1753aabf5df187b5b04e72a958af4b65b1a125daaron# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
e57f991fe2b9a4c080cd50ca913a2a5693b096b5aaron# DEALINGS IN THE SOFTWARE.
924c8dd40352ca7775704a31a7a77ab86dc951b4ianh# Package name used in tarballs
910df8b3f50a0515b430b999d4750de94c509f2atrawick# pkg(5) name we deliver the files in (override default)
2fee4fe267fa3577fd71d8c314fe9b527e2b90c0brianp# Version number (used in path names)
2fee4fe267fa3577fd71d8c314fe9b527e2b90c0brianp# Checksums for upstream tarball
7bf77d70b6830636bc36e6b76a228c301be23ff7brianpTARBALL_SHA1 = ea0ee2923999d54848dc8a165867ffa7c628fd7b
185b73b1f914e5d8f99f31225cc656b882dcbf73ianh# Patches to apply to source after unpacking, in order
26d590c0e5338f66ca1aad6f925374843fac5121stoddard# Need to rebuild configure/Makefile.in after applying bindir.patch
26d590c0e5338f66ca1aad6f925374843fac5121stoddard# Man pages to apply Sun footer to & attributes to list
d472f67198d6b15dd1270136f180cca9c9263243trawick# Where to install xdm files
a3bb95a3600153c7f09f62749e32093658943c32brianp# Additional configure script options
a3bb95a3600153c7f09f62749e32093658943c32brianp# Only build shared greeter module, not static
a3bb95a3600153c7f09f62749e32093658943c32brianp# Set various paths to better match Solaris
b760518cc17e7124ba546ed63063603f1ab82a40aaron# Find xrdb & xterm in /usr/bin even with --bindir set to /usr/sbin
23d8f62856c1531526042e1c5edf44557cadd2e5trawick --with-default-session=command='$(X11_BIN_DIR)/xterm -ls' \
705c8ed3ef608706c91ca12483d7b54ff9007cc9jerenkrantz# configure scripts add libraries like -lXt & -lXinerama to the global $(LIBS)
ef154948c97c53cdc1ad5329cb83c32ad26cf416aaron# when only some objects need them, so ignore them in the rest.
ef154948c97c53cdc1ad5329cb83c32ad26cf416aaron# but it misses adding -lc to the greeter shared object, so add it
c6741d11357aace4c9ba39535d3cb2d751f46114trawick# Additional build & install targets
7230f1eb017a35b7d20e0e9ec0d234766f2a732dtrawickMODULE_ADD_INSTALL_TARGETS=install_xdmshell install_xdm_configs
86a5d34400b7f586ad2cca97c8b33b2f55bac61btrawick# Need to fix libtool interference with our linker flags
86a5d34400b7f586ad2cca97c8b33b2f55bac61btrawick# Move xdmshell from default location to the place we put in our packages
6b477c0a238733ca8fd156629310513d29dc7e02trawick mv $(PROTODIR)/usr/sbin/xdmshell $(PROTODIR)/usr/lib/X11/xdm/xdmshell
6b477c0a238733ca8fd156629310513d29dc7e02trawick# Copy xdm config files from /etc to /usr for use as prototypes
2b31ac2c6342d2afcf67b7b0f08c928a87f98c74wroweXDM_CONFIG_FILES=Xaccess Xresources Xservers xdm-config
557eb8d48357657fa898250560f089c65539c634gregamesXCF_USR_FILES=$(XDM_CONFIG_FILES:%=$(PROTODIR)/$(XDM_USR_CONFIGDIR)/%)
25b715e9687f82ea055fdea2a9761c7e5f1ac6eetrawickXCF_ETC_BLDFILES=$(XDM_CONFIG_FILES:%=$(XCF_ETC_BLDDIR)/%)
25b715e9687f82ea055fdea2a9761c7e5f1ac6eetrawickXCF_USR_BLDFILES=$(XDM_CONFIG_FILES:%=$(XCF_USR_BLDDIR)/%)
51ced3b28ef430a96586284d4320f7dbdaf7225ebrianpinstall_xdm_configs: $(XCF_USR_FILES) $(PROTODIR)/$(XDM_USR_CONFIGDIR)/README
a222035458f89e2db231450ba6d5fae8052da5f5aaronXCF_HEADER = %1$$s----------------------------------------------------------------------------
a222035458f89e2db231450ba6d5fae8052da5f5aaronXCF_HEADER += \n%1$$s NOTE: The file provided in $(XDM_USR_CONFIGDIR) is a sample %2$$s
a222035458f89e2db231450ba6d5fae8052da5f5aaronXCF_HEADER += \n%1$$s configuration file provided for your reference.
4a872628ca5bf20847f442a625c255b643120db0wroweXCF_HEADER += \n%1$$s xdm reads the actual configuration from the copies located in $(XDM_ETC_CONFIGDIR)
4a872628ca5bf20847f442a625c255b643120db0wroweXCF_HEADER += \n%1$$s (unless configured otherwise by $(XDM_ETC_CONFIGDIR)/xdm-config or
74528257888620220641cd28366731539a37e1f3ianhXCF_HEADER += \n%1$$s a file specified via the -config command line option).
74528257888620220641cd28366731539a37e1f3ianhXCF_HEADER += \n%1$$s----------------------------------------------------------------------------\n
f2afeedf074acc1a698a9527154eacd138e6c5a1trawick$(XCF_USR_FILES): $(PROTODIR)/$(XDM_USR_CONFIGDIR) $(XCF_USR_BLDFILES)
54b3b7946d22324cea615d7c8a4ff0c9eadd1f8crbb$(XCF_USR_BLDFILES): $(XCF_USR_BLDDIR) $(XCF_ETC_BLDFILES)
e28c02dc08247d3fcb71e81791cac2311a248dfdrbb printf '$(XCF_HEADER)' $${COMMENT_CHAR} $${FILENAME} > $@ ; \