Makefile revision 1356
d5b7ba26785d7494166d48876362ba30ff30b98awrowe###############################################################################
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames#
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames# xfs - X11 font server
5541a81e194dc99521c0ecf904a940b0b65a93f2nd#
db5d27f488a125cd8efa6f2e3822b946b71bf192trawick# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
db5d27f488a125cd8efa6f2e3822b946b71bf192trawick#
db5d27f488a125cd8efa6f2e3822b946b71bf192trawick# Permission is hereby granted, free of charge, to any person obtaining a
db5d27f488a125cd8efa6f2e3822b946b71bf192trawick# copy of this software and associated documentation files (the "Software"),
db5d27f488a125cd8efa6f2e3822b946b71bf192trawick# to deal in the Software without restriction, including without limitation
5d2959154eb0b63ab0e9ef5fc2c34f296fa7beeegregames# the rights to use, copy, modify, merge, publish, distribute, sublicense,
5d2959154eb0b63ab0e9ef5fc2c34f296fa7beeegregames# and/or sell copies of the Software, and to permit persons to whom the
5d2959154eb0b63ab0e9ef5fc2c34f296fa7beeegregames# Software is furnished to do so, subject to the following conditions:
5d2959154eb0b63ab0e9ef5fc2c34f296fa7beeegregames#
81b30d1b974212267ddc27c450abc1453ce56423nd# The above copyright notice and this permission notice (including the next
81b30d1b974212267ddc27c450abc1453ce56423nd# paragraph) shall be included in all copies or substantial portions of the
81b30d1b974212267ddc27c450abc1453ce56423nd# Software.
fc25339741311efd7d460f18b6287ef38d76bbe6madhum#
fc25339741311efd7d460f18b6287ef38d76bbe6madhum# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
fc25339741311efd7d460f18b6287ef38d76bbe6madhum# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
fc25339741311efd7d460f18b6287ef38d76bbe6madhum# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
fcdca175a52fe517f2317ba0e2b6e6d14522b869madhum# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
fcdca175a52fe517f2317ba0e2b6e6d14522b869madhum# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92a2439559cf1161742650ed9c50c6483bd029cemadhum# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
92a2439559cf1161742650ed9c50c6483bd029cemadhum# DEALINGS IN THE SOFTWARE.
92a2439559cf1161742650ed9c50c6483bd029cemadhum#
92a2439559cf1161742650ed9c50c6483bd029cemadhum#
0d60370bedd05f9632f54e85c417ce472d463674madhum
0d60370bedd05f9632f54e85c417ce472d463674madhum# Package name used in tarballs
0d60370bedd05f9632f54e85c417ce472d463674madhumMODULE_NAME=xfs
0d60370bedd05f9632f54e85c417ce472d463674madhum
ebecc16986604cce1369d5075eff65032e3dd0deianh# Version number (used in path names)
0d60370bedd05f9632f54e85c417ce472d463674madhumMODULE_VERSION=1.1.2
ebecc16986604cce1369d5075eff65032e3dd0deianh
764315969cef40e50cdc6a5e9638454e10c1c06end# Checksums for upstream tarball
764315969cef40e50cdc6a5e9638454e10c1c06endTARBALL_MD5 = 39e507a7a1b656885c4828a915e5805b
764315969cef40e50cdc6a5e9638454e10c1c06endTARBALL_SHA1 = d4a64e12f8a773bd0120977191586ca12baf1ace
764315969cef40e50cdc6a5e9638454e10c1c06endTARBALL_SHA256= 0dea61cce3897b4d9d844bbd2c7850cd4e80e12c12b38158b4f92574b027e39d
d470ccf962533e14bd6f7265f18840f1397034eend
d470ccf962533e14bd6f7265f18840f1397034eend# Patches to apply to source after unpacking, in order
d470ccf962533e14bd6f7265f18840f1397034eendSOURCE_PATCHES += smf-manpage.patch
d470ccf962533e14bd6f7265f18840f1397034eendSOURCE_PATCHES += config-warning.patch
d470ccf962533e14bd6f7265f18840f1397034eendSOURCE_PATCHES += ReopenCOTSServer-crash.patch,-p1
3de8d8649277a02f53aa4f06121420985e8eee08nd
3de8d8649277a02f53aa4f06121420985e8eee08nd# Need to rebuild config/Makefile.in after applying solaris-make.patch
3de8d8649277a02f53aa4f06121420985e8eee08ndAUTORECONF=yes
3de8d8649277a02f53aa4f06121420985e8eee08nd
3de8d8649277a02f53aa4f06121420985e8eee08nd# Man pages to apply Sun footer to & attributes to list
3de8d8649277a02f53aa4f06121420985e8eee08ndSUNTOUCHED_MANPAGES=man/xfs.man
4ac3e76f96ca3a5d0f67ae5cbe637c18f7280458gregamesMODULE_STABILITY=Committed
4ac3e76f96ca3a5d0f67ae5cbe637c18f7280458gregames
4ac3e76f96ca3a5d0f67ae5cbe637c18f7280458gregames# pkg(5) name we deliver the files in (override default)
bfb54bd96690887dcdf184fd9083c2e167898ce2ndMODULE_PKGNAME=x11/xfs
a2c036f0ca71e35c085b4cd9451a6d3718bc65daakeMODULE_PKGNAME_SET=yes
a2c036f0ca71e35c085b4cd9451a6d3718bc65daake
a2c036f0ca71e35c085b4cd9451a6d3718bc65daake# Package metadata
a2c036f0ca71e35c085b4cd9451a6d3718bc65daakeMODULE_DESC = the X Font Server (xfs)
fbfb0de5ec8b82ad240074f20184f0cf77b59fb3nd
fbfb0de5ec8b82ad240074f20184f0cf77b59fb3nd# Dates to show in Oracle copyright notice in pkg license file
fbfb0de5ec8b82ad240074f20184f0cf77b59fb3nd# Earliest & latest of the copyrights in the Oracle files in this pkg
fbfb0de5ec8b82ad240074f20184f0cf77b59fb3ndORACLE_COPYRIGHT_YEARS = 1994, 2010
146bd390ef41ad985a39b6dd8519163796a4d585nd
146bd390ef41ad985a39b6dd8519163796a4d585nd# ARC cases that covered this module
146bd390ef41ad985a39b6dd8519163796a4d585nd# PSARC/2004/752 X Consolidation conversion to SMF
146bd390ef41ad985a39b6dd8519163796a4d585ndMODULE_ARC_CASES = PSARC/2004/752
b92cba59a0890be43b14aaf1ce30606140be9593nd# LSARC/2008/009 X11R7 font server and utilities
b92cba59a0890be43b14aaf1ce30606140be9593ndMODULE_ARC_CASES += LSARC/2008/009
b92cba59a0890be43b14aaf1ce30606140be9593nd
b92cba59a0890be43b14aaf1ce30606140be9593nd# Additional command line options to GNU autoconf configure script
402d23baca89e8c4fcb4e52ad8b2d66a6904baaetrawickMODULE_CONFIG_OPTS= --sysconfdir=$(X11_DIR)/lib \
402d23baca89e8c4fcb4e52ad8b2d66a6904baaetrawick --enable-syslog --enable-inetd --disable-devel-docs \
402d23baca89e8c4fcb4e52ad8b2d66a6904baaetrawick --with-default-font-path='catalogue:/etc/X11/fontpath.d' \
affb82a2d7fc07c1a862d800ef47af966b898768nd --with-default-config-file='/etc/X11/fs/config,$(X11_X11LIB_DIR)/fs/config,/etc/openwin/fs/fontserver.cfg,/usr/openwin/lib/X11/fontserver.cfg'
affb82a2d7fc07c1a862d800ef47af966b898768nd
affb82a2d7fc07c1a862d800ef47af966b898768nd# Need to link with libfontenc in server private directory
affb82a2d7fc07c1a862d800ef47af966b898768ndMODULE_LDFLAGS=$(X11_SERVERLIBS_LDFLAGS)
6d4bfae6836af357a3b9790c0d6a06fdd00f177fnd
6d4bfae6836af357a3b9790c0d6a06fdd00f177fnd# ignore some unneeded dependencies that upstream includes:
6d4bfae6836af357a3b9790c0d6a06fdd00f177fnd# unreferenced object=/usr/lib/64/libFS.so.5; unused dependency of /usr/bin/xfs
6d4bfae6836af357a3b9790c0d6a06fdd00f177fndMODULE_LDFLAGS += -z ignore
4caa28863a3418d26cc20a998dc368c3de3b7e19jerenkrantz
4caa28863a3418d26cc20a998dc368c3de3b7e19jerenkrantzMODULE_ADD_INSTALL_TARGETS = install_smf install_fsadmin
4caa28863a3418d26cc20a998dc368c3de3b7e19jerenkrantz
07af571d0ef9975db2e79cd01222effd58dbb81ejerenkrantz# Compatibility links from /usr/X11/bin to /usr/bin
07af571d0ef9975db2e79cd01222effd58dbb81ejerenkrantzMODULE_X11_BINCOMPAT_LINKS = xfs
07af571d0ef9975db2e79cd01222effd58dbb81ejerenkrantz
a3f2646ef3d8a3a5234a5601de0f95f10308c2a6jerenkrantzinclude ../Makefile.inc
a3f2646ef3d8a3a5234a5601de0f95f10308c2a6jerenkrantz
a3f2646ef3d8a3a5234a5601de0f95f10308c2a6jerenkrantz# Make sure SMF manifest is valid before installing it
9e398d701dd430f073ff5418fb720642e064046ajerenkrantzcheck_smf: xfs.xml
9e398d701dd430f073ff5418fb720642e064046ajerenkrantz /usr/sbin/svccfg validate xfs.xml
9e398d701dd430f073ff5418fb720642e064046ajerenkrantz
1a5b9e0071f0c662036250b482d566ad87ff0b4bjerenkrantzX11_SMF_MANIFEST_DIR=$(SMF_MANIFEST_DIR)/application/x11
1a5b9e0071f0c662036250b482d566ad87ff0b4bjerenkrantz
1a5b9e0071f0c662036250b482d566ad87ff0b4bjerenkrantzinstall_smf: check_smf
a7ac9b52c3d9f7ce937f078a0d585023db626c55jerenkrantz mkdir -p $(PROTODIR)$(X11_SMF_MANIFEST_DIR)
a7ac9b52c3d9f7ce937f078a0d585023db626c55jerenkrantz $(INSTALL_SCRIPT) -m 0444 xfs.xml $(PROTODIR)$(X11_SMF_MANIFEST_DIR)
a7ac9b52c3d9f7ce937f078a0d585023db626c55jerenkrantz
ba6c07204bd224fa5d4cd0e6b8bf256d6daffb74ndinstall_fsadmin:
ba6c07204bd224fa5d4cd0e6b8bf256d6daffb74nd mkdir -p $(PROTODIR)$(X11_DIR)/sbin \
ba6c07204bd224fa5d4cd0e6b8bf256d6daffb74nd $(PROTODIR)$(X11_MAN_DIR)/man1
db5837bbc9bef214303e755fa52122140366cb6fianh $(INSTALL_SCRIPT) -m 0755 fsadmin $(PROTODIR)$(X11_DIR)/sbin/fsadmin
db5837bbc9bef214303e755fa52122140366cb6fianh $(INSTALL_SCRIPT) -m 0444 fsadmin.1 $(PROTODIR)$(X11_MAN_DIR)/man1/
db5837bbc9bef214303e755fa52122140366cb6fianh
aac2b82fe4f1ac117e2a0702438d6615542642dand# Special compatibility link from /usr/X11/bin/fsadmin to /usr/sbin/fsadmin
aac2b82fe4f1ac117e2a0702438d6615542642dandinstall: $(X11_BINCOMPAT_DIR)/fsadmin
aac2b82fe4f1ac117e2a0702438d6615542642dand
a793d402c74e50326a2401cfbdc562c5781948fdnd$(X11_BINCOMPAT_DIR)/fsadmin: $(X11_BINCOMPAT_DIR)
a793d402c74e50326a2401cfbdc562c5781948fdnd @rm -f $@
0a209fcb17b8c9a42a6149a1758e61cf6527d367nd ln -s ../../sbin/fsadmin $@
a793d402c74e50326a2401cfbdc562c5781948fdnd