Makefile revision 1196
388N/A###############################################################################
2887N/A#
671N/A# xfs Makefile
671N/A#
671N/A# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
671N/A#
671N/A# Permission is hereby granted, free of charge, to any person obtaining a
671N/A# copy of this software and associated documentation files (the "Software"),
671N/A# to deal in the Software without restriction, including without limitation
671N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
6982N/A# and/or sell copies of the Software, and to permit persons to whom the
6982N/A# Software is furnished to do so, subject to the following conditions:
671N/A#
671N/A# The above copyright notice and this permission notice (including the next
671N/A# paragraph) shall be included in all copies or substantial portions of the
671N/A# Software.
6982N/A#
6982N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6982N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6982N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
671N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
671N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
671N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
671N/A# DEALINGS IN THE SOFTWARE.
4618N/A#
6184N/A#
671N/A
388N/A# Package name used in tarballs
388N/AMODULE_NAME=xfs
4618N/A
388N/A# Version number (used in path names)
4618N/AMODULE_VERSION=1.1.1
388N/A
743N/A# Checksums for upstream tarball
743N/ATARBALL_MD5 = e02c6cae689c082b8c98a421df8f8670
743N/ATARBALL_SHA1 = aa0f4cb4e307c531a78ba9d09c44d042c072742b
743N/A
743N/A# Patches to apply to source after unpacking, in order
743N/ASOURCE_PATCHES = \
743N/A solaris-make.patch,-p1 \
388N/A smf-manpage.patch \
388N/A config-warning.patch
525N/A
525N/A# Need to rebuild config/Makefile.in after applying solaris-make.patch
2085N/AAUTORECONF=yes
743N/A
743N/A# Man pages to apply Sun footer to & attributes to list
743N/ASUNTOUCHED_MANPAGES=man/xfs.man
743N/AMODULE_STABILITY=Committed
743N/A
6184N/A# pkg(5) name we deliver the files in (override default)
743N/AMODULE_PKGNAME=x11/xfs
743N/AMODULE_PKGNAME_SET=yes
743N/A
743N/A# ARC cases that covered this module
743N/A# PSARC/2004/752 X Consolidation conversion to SMF
743N/AMODULE_ARC_CASES = PSARC/2004/752
743N/A# LSARC/2008/009 X11R7 font server and utilities
743N/AMODULE_ARC_CASES += LSARC/2008/009
743N/A
388N/A# Additional command line options to GNU autoconf configure script
785N/AMODULE_CONFIG_OPTS= --sysconfdir=$(X11_DIR)/lib \
388N/A --enable-syslog --enable-inetd --disable-devel-docs \
525N/A --with-default-font-path='catalogue:/etc/X11/fontpath.d' \
388N/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'
388N/A
388N/A# Need to link with libfontenc in server private directory
388N/AMODULE_LDFLAGS=$(X11_SERVERLIBS_LDFLAGS)
388N/A
388N/A# ignore some unneeded dependencies that upstream includes:
388N/A# unreferenced object=/usr/lib/64/libFS.so.5; unused dependency of /usr/bin/xfs
388N/AMODULE_LDFLAGS += -z ignore
388N/A
388N/AMODULE_ADD_INSTALL_TARGETS = install_smf install_fsadmin
388N/A
525N/A# Compatibility links from /usr/X11/bin to /usr/bin
388N/AMODULE_X11_BINCOMPAT_LINKS = xfs
525N/A
388N/Ainclude ../Makefile.inc
388N/A
1771N/A# Make sure SMF manifest is valid before installing it
2000N/Acheck_smf: xfs.xml
2000N/A /usr/sbin/svccfg validate xfs.xml
388N/A
2000N/AX11_SMF_MANIFEST_DIR=$(SMF_MANIFEST_DIR)/application/x11
2175N/A
2175N/Ainstall_smf: check_smf
2175N/A mkdir -p $(PROTODIR)$(X11_SMF_MANIFEST_DIR)
525N/A $(INSTALL_SCRIPT) -m 0444 xfs.xml $(PROTODIR)$(X11_SMF_MANIFEST_DIR)
525N/A
388N/Ainstall_fsadmin:
525N/A mkdir -p $(PROTODIR)$(X11_DIR)/sbin \
388N/A $(PROTODIR)$(X11_MAN_DIR)/man1
388N/A $(INSTALL_SCRIPT) -m 0755 fsadmin $(PROTODIR)$(X11_DIR)/sbin/fsadmin
876N/A $(INSTALL_SCRIPT) -m 0444 fsadmin.1 $(PROTODIR)$(X11_MAN_DIR)/man1/
876N/A
4153N/A# Special compatibility link from /usr/X11/bin/fsadmin to /usr/sbin/fsadmin
4153N/Ainstall: $(X11_BINCOMPAT_DIR)/fsadmin
388N/A
876N/A$(X11_BINCOMPAT_DIR)/fsadmin: $(X11_BINCOMPAT_DIR)
525N/A @rm -f $@
388N/A ln -s ../../sbin/fsadmin $@
388N/A