Makefile revision 1610
4bff34e37def8a90f9194d81bc345c52ba20086athurlow###############################################################################
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# xfs - X11 font server
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Permission is hereby granted, free of charge, to any person obtaining a
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# copy of this software and associated documentation files (the "Software"),
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# to deal in the Software without restriction, including without limitation
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# the rights to use, copy, modify, merge, publish, distribute, sublicense,
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# and/or sell copies of the Software, and to permit persons to whom the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Software is furnished to do so, subject to the following conditions:
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# The above copyright notice and this permission notice (including the next
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# paragraph) shall be included in all copies or substantial portions of the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Software.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# DEALINGS IN THE SOFTWARE.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Package name used in tarballs
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMODULE_NAME=xfs
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Version number (used in path names)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMODULE_VERSION=1.1.4
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Checksums for upstream tarball
4bff34e37def8a90f9194d81bc345c52ba20086athurlowTARBALL_MD5 = 12adb259ee5e3df9633783e21b7a7a82
4bff34e37def8a90f9194d81bc345c52ba20086athurlowTARBALL_SHA1 = 5b8c653476a09e65d93eb7e40da99794366699f5
4bff34e37def8a90f9194d81bc345c52ba20086athurlowTARBALL_SHA256= a40b75e674c091464f85739292b6bf24e2d153f4a2ac456d3ea6b8a64e269ffa
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Patches to apply to source after unpacking, in order
4bff34e37def8a90f9194d81bc345c52ba20086athurlowSOURCE_PATCHES += smf-manpage.patch,-p1
4bff34e37def8a90f9194d81bc345c52ba20086athurlowSOURCE_PATCHES += config-warning.patch
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Man pages to apply Sun footer to & attributes to list
4bff34e37def8a90f9194d81bc345c52ba20086athurlowSUNTOUCHED_MANPAGES=man/xfs.man
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMODULE_STABILITY=Committed
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# pkg(5) name we deliver the files in (override default)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMODULE_PKGNAME=x11/xfs
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMODULE_PKGNAME_SET=yes
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Package metadata
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMODULE_DESC = the X Font Server (xfs)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Dates to show in Oracle copyright notice in pkg license file
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Earliest & latest of the copyrights in the Oracle files in this pkg
4bff34e37def8a90f9194d81bc345c52ba20086athurlowORACLE_COPYRIGHT_YEARS = 1994, 2010
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# ARC cases that covered this module
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# PSARC/2004/752 X Consolidation conversion to SMF
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMODULE_ARC_CASES = PSARC/2004/752
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# LSARC/2008/009 X11R7 font server and utilities
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMODULE_ARC_CASES += LSARC/2008/009
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# PSARC/2015/221 X11 application updates
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMODULE_ARC_CASES += PSARC/2015/221
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Additional command line options to GNU autoconf configure script
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMODULE_CONFIG_OPTS= --sysconfdir=$(MODULE_PREFIX)/lib \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow --enable-syslog --enable-inetd --disable-devel-docs \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow --with-default-font-path='catalogue:/etc/X11/fontpath.d' \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow --with-default-config-file='/etc/X11/fs/config,/usr/lib/X11/fs/config,/etc/openwin/fs/fontserver.cfg,/usr/openwin/lib/X11/fontserver.cfg'
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossMODULE_CPPFLAGS = -DNO_ALLOCA
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Need to link with libfontenc in server private directory
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon RossMODULE_LDFLAGS=$(X11_SERVERLIBS_LDFLAGS)
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon Ross
02d09e03eb27f3a2dc299de704e45dae5173f43fGordon Ross# Install Solaris SMF files & service admin script
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon RossMODULE_ADD_INSTALL_TARGETS = install_smf install_fsadmin
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon Ross
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Compatibility links from /usr/X11/bin to /usr/bin
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMODULE_X11_BINCOMPAT_LINKS = xfs
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinclude ../Makefile.inc
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Make sure SMF manifest is valid before installing it
4bff34e37def8a90f9194d81bc345c52ba20086athurlowcheck_smf: xfs.xml
4bff34e37def8a90f9194d81bc345c52ba20086athurlow /usr/sbin/svccfg validate xfs.xml
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinstall_smf: check_smf
4bff34e37def8a90f9194d81bc345c52ba20086athurlow mkdir -p $(PROTODIR)$(X11_SMF_MANIFEST_DIR)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(INSTALL_SCRIPT) -m 0444 xfs.xml $(PROTODIR)$(X11_SMF_MANIFEST_DIR)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinstall_fsadmin:
4bff34e37def8a90f9194d81bc345c52ba20086athurlow mkdir -p $(PROTODIR)$(MODULE_SBIN_DIR) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(PROTODIR)$(MODULE_MAN_DIR)/man1
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(INSTALL_SCRIPT) -m 0755 fsadmin $(PROTODIR)$(MODULE_SBIN_DIR)/fsadmin
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(INSTALL_SCRIPT) -m 0444 fsadmin.1 $(PROTODIR)$(MODULE_MAN_DIR)/man1/
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Special compatibility link from /usr/X11/bin/fsadmin to /usr/sbin/fsadmin
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinstall: $(X11_BINCOMPAT_DIR)/fsadmin
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow$(X11_BINCOMPAT_DIR)/fsadmin: $(X11_BINCOMPAT_DIR)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow @rm -f $@
4bff34e37def8a90f9194d81bc345c52ba20086athurlow ln -s ../../sbin/fsadmin $@
4bff34e37def8a90f9194d81bc345c52ba20086athurlow