Makefile revision 1577
2880N/A###############################################################################
2880N/A#
2880N/A# xfs - X11 font server
2880N/A#
2880N/A# Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
2880N/A#
2880N/A# Permission is hereby granted, free of charge, to any person obtaining a
2880N/A# copy of this software and associated documentation files (the "Software"),
2880N/A# to deal in the Software without restriction, including without limitation
2880N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
2880N/A# and/or sell copies of the Software, and to permit persons to whom the
2880N/A# Software is furnished to do so, subject to the following conditions:
2880N/A#
2880N/A# The above copyright notice and this permission notice (including the next
2880N/A# paragraph) shall be included in all copies or substantial portions of the
2880N/A# Software.
2880N/A#
2880N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2880N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2880N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
2880N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2880N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
3704N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2880N/A# DEALINGS IN THE SOFTWARE.
2880N/A#
2880N/A#
2880N/A
2880N/A# Package name used in tarballs
2880N/AMODULE_NAME=xfs
2880N/A
2880N/A# Version number (used in path names)
3661N/AMODULE_VERSION=1.1.4
2880N/A
2880N/A# Checksums for upstream tarball
2880N/ATARBALL_MD5 = 12adb259ee5e3df9633783e21b7a7a82
2880N/ATARBALL_SHA1 = 5b8c653476a09e65d93eb7e40da99794366699f5
2880N/ATARBALL_SHA256= a40b75e674c091464f85739292b6bf24e2d153f4a2ac456d3ea6b8a64e269ffa
2880N/A
2880N/A# Patches to apply to source after unpacking, in order
2880N/ASOURCE_PATCHES += smf-manpage.patch,-p1
2880N/ASOURCE_PATCHES += config-warning.patch
2880N/A
2880N/A# Man pages to apply Sun footer to & attributes to list
2880N/ASUNTOUCHED_MANPAGES=man/xfs.man
2880N/AMODULE_STABILITY=Committed
2880N/A
2880N/A# pkg(5) name we deliver the files in (override default)
2880N/AMODULE_PKGNAME=x11/xfs
2880N/AMODULE_PKGNAME_SET=yes
2880N/A
2880N/A# Package metadata
2880N/AMODULE_DESC = the X Font Server (xfs)
2880N/A
2880N/A# Dates to show in Oracle copyright notice in pkg license file
2880N/A# Earliest & latest of the copyrights in the Oracle files in this pkg
2880N/AORACLE_COPYRIGHT_YEARS = 1994, 2010
2880N/A
2880N/A# ARC cases that covered this module
2880N/A# PSARC/2004/752 X Consolidation conversion to SMF
2880N/AMODULE_ARC_CASES = PSARC/2004/752
2880N/A# LSARC/2008/009 X11R7 font server and utilities
2880N/AMODULE_ARC_CASES += LSARC/2008/009
2880N/A# PSARC/2015/221 X11 application updates
2880N/AMODULE_ARC_CASES += PSARC/2015/221
2880N/A
2880N/A# Additional command line options to GNU autoconf configure script
2880N/AMODULE_CONFIG_OPTS= --sysconfdir=$(X11_DIR)/lib \
2880N/A --enable-syslog --enable-inetd --disable-devel-docs \
2880N/A --with-default-font-path='catalogue:/etc/X11/fontpath.d' \
2880N/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'
2880N/AMODULE_CPPFLAGS = -DNO_ALLOCA
2880N/A
2880N/A# Need to link with libfontenc in server private directory
2880N/AMODULE_LDFLAGS=$(X11_SERVERLIBS_LDFLAGS)
2880N/A
2880N/A# Install Solaris SMF files & service admin script
3704N/AMODULE_ADD_INSTALL_TARGETS = install_smf install_fsadmin
3704N/A
3704N/A# Compatibility links from /usr/X11/bin to /usr/bin
MODULE_X11_BINCOMPAT_LINKS = xfs
include ../Makefile.inc
# Make sure SMF manifest is valid before installing it
check_smf: xfs.xml
/usr/sbin/svccfg validate xfs.xml
X11_SMF_MANIFEST_DIR=$(SMF_MANIFEST_DIR)/application/x11
install_smf: check_smf
mkdir -p $(PROTODIR)$(X11_SMF_MANIFEST_DIR)
$(INSTALL_SCRIPT) -m 0444 xfs.xml $(PROTODIR)$(X11_SMF_MANIFEST_DIR)
install_fsadmin:
mkdir -p $(PROTODIR)$(X11_DIR)/sbin \
$(PROTODIR)$(X11_MAN_DIR)/man1
$(INSTALL_SCRIPT) -m 0755 fsadmin $(PROTODIR)$(X11_DIR)/sbin/fsadmin
$(INSTALL_SCRIPT) -m 0444 fsadmin.1 $(PROTODIR)$(X11_MAN_DIR)/man1/
# Special compatibility link from /usr/X11/bin/fsadmin to /usr/sbin/fsadmin
install: $(X11_BINCOMPAT_DIR)/fsadmin
$(X11_BINCOMPAT_DIR)/fsadmin: $(X11_BINCOMPAT_DIR)
@rm -f $@
ln -s ../../sbin/fsadmin $@