Makefile revision 1233
729N/A###############################################################################
729N/A#
729N/A# xfs Makefile
729N/A#
1068N/A# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
729N/A#
729N/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
919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A# DEALINGS IN THE SOFTWARE.
729N/A#
729N/A#
729N/A
729N/A# Package name used in tarballs
729N/AMODULE_NAME=xfs
729N/A
729N/A# Version number (used in path names)
1068N/AMODULE_VERSION=1.1.1
729N/A
911N/A# Checksums for upstream tarball
1068N/ATARBALL_MD5 = e02c6cae689c082b8c98a421df8f8670
1068N/ATARBALL_SHA1 = aa0f4cb4e307c531a78ba9d09c44d042c072742b
911N/A
729N/A# Patches to apply to source after unpacking, in order
729N/ASOURCE_PATCHES = \
1068N/A solaris-make.patch,-p1 \
729N/A smf-manpage.patch \
729N/A config-warning.patch
729N/A
1068N/A# Need to rebuild config/Makefile.in after applying solaris-make.patch
1068N/AAUTORECONF=yes
1068N/A
729N/A# Man pages to apply Sun footer to & attributes to list
1068N/ASUNTOUCHED_MANPAGES=man/xfs.man
729N/AMODULE_STABILITY=Committed
729N/A
970N/A# pkg(5) name we deliver the files in (override default)
970N/AMODULE_PKGNAME=x11/xfs
970N/AMODULE_PKGNAME_SET=yes
970N/A
970N/A# ARC cases that covered this module
970N/A# PSARC/2004/752 X Consolidation conversion to SMF
970N/AMODULE_ARC_CASES = PSARC/2004/752
970N/A# LSARC/2008/009 X11R7 font server and utilities
970N/AMODULE_ARC_CASES += LSARC/2008/009
970N/A
729N/A# Additional command line options to GNU autoconf configure script
729N/AMODULE_CONFIG_OPTS= --sysconfdir=$(X11_DIR)/lib \
729N/A --enable-syslog --enable-inetd --disable-devel-docs \
729N/A --with-default-font-path='catalogue:/etc/X11/fontpath.d' \
851N/A --with-default-config-file='/etc/X11/fs/config,$(X11_X11LIB_DIR)/fs/config,/etc/openwin/fs/fontserver.cfg,/usr/openwin/lib/X11/fontserver.cfg'
729N/A
729N/A# Need to link with libfontenc in server private directory
729N/AMODULE_LDFLAGS=$(X11_SERVERLIBS_LDFLAGS)
729N/A
1196N/A# ignore some unneeded dependencies that upstream includes:
1196N/A# unreferenced object=/usr/lib/64/libFS.so.5; unused dependency of /usr/bin/xfs
1196N/AMODULE_LDFLAGS += -z ignore
1196N/A
851N/AMODULE_ADD_INSTALL_TARGETS = install_smf install_fsadmin
729N/A
970N/A# Compatibility links from /usr/X11/bin to /usr/bin
970N/AMODULE_X11_BINCOMPAT_LINKS = xfs
970N/A
729N/Ainclude ../Makefile.inc
729N/A
851N/A# Make sure SMF manifest is valid before installing it
729N/Acheck_smf: xfs.xml
729N/A /usr/sbin/svccfg validate xfs.xml
729N/A
980N/AX11_SMF_MANIFEST_DIR=$(SMF_MANIFEST_DIR)/application/x11
729N/A
851N/Ainstall_smf: check_smf
980N/A mkdir -p $(PROTODIR)$(X11_SMF_MANIFEST_DIR)
980N/A $(INSTALL_SCRIPT) -m 0444 xfs.xml $(PROTODIR)$(X11_SMF_MANIFEST_DIR)
851N/A
851N/Ainstall_fsadmin:
851N/A mkdir -p $(PROTODIR)$(X11_DIR)/sbin \
947N/A $(PROTODIR)$(X11_MAN_DIR)/man1
963N/A $(INSTALL_SCRIPT) -m 0755 fsadmin $(PROTODIR)$(X11_DIR)/sbin/fsadmin
963N/A $(INSTALL_SCRIPT) -m 0444 fsadmin.1 $(PROTODIR)$(X11_MAN_DIR)/man1/
970N/A
970N/A# Special compatibility link from /usr/X11/bin/fsadmin to /usr/sbin/fsadmin
970N/Ainstall: $(X11_BINCOMPAT_DIR)/fsadmin
970N/A
970N/A$(X11_BINCOMPAT_DIR)/fsadmin: $(X11_BINCOMPAT_DIR)
970N/A @rm -f $@
970N/A ln -s ../../sbin/fsadmin $@