Makefile revision 1196
70N/A###############################################################################
70N/A#
1600N/A# xdm Makefile
70N/A#
70N/A# Copyright (c) 2009, 2011, 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
70N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
70N/A# DEALINGS IN THE SOFTWARE.
70N/A#
70N/A#
851N/A
851N/A# Package name used in tarballs
851N/AMODULE_NAME=xdm
851N/A
851N/A# pkg(5) name we deliver the files in (override default)
98N/AMODULE_PKGNAME=system/display-manager/xdm
551N/AMODULE_PKGNAME_SET=yes
321N/A
321N/A# Version number (used in path names)
550N/AMODULE_VERSION=1.1.9
550N/A
213N/A# Checksums for upstream tarball
649N/ATARBALL_MD5 = 030ae4bd9b8d428749d68bfdf56ce8a5
304N/ATARBALL_SHA1 = ea0ee2923999d54848dc8a165867ffa7c628fd7b
530N/A
425N/A# Patches to apply to source after unpacking, in order
425N/ASOURCE_PATCHES = \
325N/A mkdir.patch,-p1 \
493N/A pam_tty.patch,-p1 \
536N/A pam_user.patch,-p1 \
320N/A bindir.patch \
332N/A terminateServer.patch \
501N/A bug-6822636.patch \
231N/A bug-6820612.patch,-p1 \
550N/A Xsession.patch
347N/A
463N/A# Man pages to apply Sun footer to & attributes to list
493N/ASUNTOUCHED_MANPAGES=xdm.man.cpp
425N/AMODULE_STABILITY=Committed
493N/AMODULE_SUNTOUCH_MAN_FLAGS= -p $(MODULE_PREFIX)/sbin/
791N/A
472N/A# Where to install xdm files
324N/AMODULE_PREFIX=/usr
347N/AMODULE_PREFIX_SET=yes
310N/A
316N/A# Additional configure script options
474N/A# Only build shared greeter module, not static
290N/A# Set various paths to better match Solaris
332N/AMODULE_CONFIG_OPTS= \
464N/A --enable-shared=yes --enable-static=no \
332N/A --with-xdmconfigdir=/etc/X11/xdm \
509N/A --with-piddir=/var/run/xdm \
835N/A --with-authdir=/var/run/xdm \
835N/A --bindir=/usr/sbin \
332N/A DEF_USER_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin \
210N/A DEF_SYSTEM_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin
493N/A
792N/A
128N/A# Special handling while xdm is moved to /usr but other apps are still in
414N/A# /usr/X11
484N/AMODULE_CONFIG_OPTS += \
326N/A --with-xrdb='$(X11_BIN_DIR)/xrdb' \
493N/A --with-default-session=command='$(X11_BIN_DIR)/xterm -ls' \
335N/A
493N/A# configure scripts add libraries like -lXt & -lXinerama to the global $(LIBS)
729N/A# when only some objects need them, so ignore them in the rest.
425N/AMODTYPE_LD_OPTIONS = -z ignore
70N/A
400N/A# Additional build & install targets
294N/AMODULE_ADD_BUILD_TARGETS=build_xdm_configs
435N/AMODULE_ADD_INSTALL_TARGETS=install_xdmshell install_xdm_configs
800N/A
98N/A# Need to fix libtool interference with our linker flags
434N/ADELIBTOOLIZE=yes
505N/A
277N/Ainclude ../Makefile.inc
433N/A
546N/A# Move xdmshell from default location to the place we put in our packages
356N/Ainstall_xdmshell: default_install
289N/A -rm -f $(PROTODIR)/usr/lib/X11/xdm/xdmshell
326N/A mv $(PROTODIR)/usr/sbin/xdmshell $(PROTODIR)/usr/lib/X11/xdm/xdmshell
439N/A
469N/A# Copy xdm config files from /etc to /usr for use as prototypes
290N/AXDM_CONFIG_FILES=Xaccess Xresources Xservers xdm-config
542N/AXDM_ETC_CONFIGDIR=/etc/X11/xdm
424N/AXDM_USR_CONFIGDIR=/usr/lib/X11/xdm
286N/AXCF_USR_FILES=$(XDM_CONFIG_FILES:%=$(PROTODIR)/$(XDM_USR_CONFIGDIR)/%)
475N/AXCF_ETC_SRCDIR=$(SOURCE_DIR)/config
295N/AXCF_ETC_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_ETC_SRCDIR)/%)
70N/AXCF_USR_SRCDIR=$(SOURCE_DIR)/config/annotated
299N/AXCF_USR_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_USR_SRCDIR)/%)
262N/A
539N/Abuild_xdm_configs: $(XCF_USR_SRCFILES)
277N/Ainstall_xdm_configs: $(XCF_USR_FILES) $(PROTODIR)/$(XDM_USR_CONFIGDIR)/README
332N/A$(XCF_ETC_SRCFILES): default_build
332N/A
493N/AXCF_HEADER = %1$$s----------------------------------------------------------------------------
70N/AXCF_HEADER += \n%1$$s NOTE: The file provided in $(XDM_USR_CONFIGDIR) is a sample %2$$s
70N/AXCF_HEADER += \n%1$$s configuration file provided for your reference.
319N/AXCF_HEADER += \n%1$$s
280N/AXCF_HEADER += \n%1$$s xdm reads the actual configuration from the copies located in $(XDM_ETC_CONFIGDIR)
319N/AXCF_HEADER += \n%1$$s (unless configured otherwise by $(XDM_ETC_CONFIGDIR)/xdm-config or
70N/AXCF_HEADER += \n%1$$s a file specified via the -config command line option).
1117N/AXCF_HEADER += \n%1$$s----------------------------------------------------------------------------\n
1470N/A
1117N/A$(PROTODIR)/$(XDM_USR_CONFIGDIR) $(XCF_USR_SRCDIR):
98N/A mkdir -p $@
1376N/A
1376N/A$(XCF_USR_FILES): $(PROTODIR)/$(XDM_USR_CONFIGDIR) $(XCF_USR_SRCFILES)
98N/A -rm -f $@
744N/A mkdir -p $(PROTODIR)/$(XDM_USR_CONFIGDIR)
1600N/A cp -p $(XCF_USR_SRCDIR)/$(@F) $@
1104N/A
1600N/A$(XCF_USR_SRCFILES): $(XCF_USR_SRCDIR) $(XCF_ETC_SRCFILES)
1492N/A -rm -f $@
1600N/A FILENAME=$(@F) ; \
1600N/A COMMENT_CHAR=$$(head -n 1 $(XCF_ETC_SRCDIR)/$${FILENAME}) ; \
744N/A printf '$(XCF_HEADER)' $${COMMENT_CHAR} $${FILENAME} > $@ ; \
1425N/A cat $(XCF_ETC_SRCDIR)/$${FILENAME} >> $@
763N/A
1122N/A$(PROTODIR)/$(XDM_USR_CONFIGDIR)/README:$(PROTODIR)/$(XDM_USR_CONFIGDIR) config-README.txt
763N/A cp -p config-README.txt $@
763N/A