Makefile revision 911
012a352f4b26cfd874db8d06debc495c2303e8b2Bob Halley###############################################################################
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley#
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# xfs Makefile
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley#
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# Use is subject to license terms.
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley#
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# Permission is hereby granted, free of charge, to any person obtaining a
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# copy of this software and associated documentation files (the
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# "Software"), to deal in the Software without restriction, including
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# without limitation the rights to use, copy, modify, merge, publish,
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# distribute, and/or sell copies of the Software, and to permit persons
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# to whom the Software is furnished to do so, provided that the above
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# copyright notice(s) and this permission notice appear in all copies of
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# the Software and that both the above copyright notice(s) and this
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# permission notice appear in supporting documentation.
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Except as contained in this notice, the name of a copyright holder
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley# shall not be used in advertising or otherwise to promote the sale, use
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# or other dealings in this Software without prior written authorization
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# of the copyright holder.
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# Package name used in tarballs
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceMODULE_NAME=xfs
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Version number (used in path names)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyMODULE_VERSION=1.1.0
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# Checksums for upstream tarball
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceTARBALL_MD5 = 5cfc06a320f74f07a0aa73da62307e9a
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceTARBALL_SHA1 = 040dee6ff7628c192874447fb178a965c744eea9
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# Patches to apply to source after unpacking, in order
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceSOURCE_PATCHES = \
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence smf-manpage.patch \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley config-warning.patch
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Man pages to apply Sun footer to & attributes to list
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceSUNTOUCHED_MANPAGES=*.man
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceSUN_PACKAGE=SUNWxwfs
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceMODULE_STABILITY=Committed
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# Additional command line options to GNU autoconf configure script
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceMODULE_CONFIG_OPTS= --sysconfdir=$(X11_DIR)/lib \
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence --enable-syslog --enable-inetd --disable-devel-docs \
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence --with-default-font-path='catalogue:/etc/X11/fontpath.d' \
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence --with-default-config-file='/etc/X11/fs/config,$(X11_X11LIB_DIR)/fs/config,/etc/openwin/fs/fontserver.cfg,/usr/openwin/lib/X11/fontserver.cfg'
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Need to link with libfontenc in server private directory
c32b87bc54abacf95fb3b063d72b7d1855c1643bMichael GraffMODULE_LDFLAGS=$(X11_SERVERLIBS_LDFLAGS)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceMODULE_ADD_INSTALL_TARGETS = install_smf install_fsadmin
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David Lawrenceinclude ../Makefile.inc
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Make sure SMF manifest is valid before installing it
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleycheck_smf: xfs.xml
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley /usr/sbin/svccfg validate xfs.xml
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleySMF_MANIFEST_DIR=/var/svc/manifest/application/x11
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyinstall_smf: check_smf
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley mkdir -p $(PROTODIR)$(SMF_MANIFEST_DIR)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(INSTALL_SCRIPT) xfs.xml $(PROTODIR)$(SMF_MANIFEST_DIR)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyinstall_fsadmin:
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley mkdir -p $(PROTODIR)$(X11_DIR)/sbin \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(PROTODIR)$(X11_MAN_DIR)/man/man1
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(INSTALL_SCRIPT) -m 0755 fsadmin $(PROTODIR)$(X11_DIR)/sbin
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(INSTALL_SCRIPT) fsadmin.1 $(PROTODIR)$(X11_MAN_DIR)/man1
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley