Makefile revision 1598
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews###############################################################################
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater#
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater# Fontconfig - Font configuration and customization library
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater#
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater#
7b67cfadd077feb0ec3e6c78385ba0d845a9789bMark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
75b70a68aefaa17ac4e768d5ed85d2f50d471490Automatic Updater# copy of this software and associated documentation files (the "Software"),
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# to deal in the Software without restriction, including without limitation
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater# the rights to use, copy, modify, merge, publish, distribute, sublicense,
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# and/or sell copies of the Software, and to permit persons to whom the
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Software is furnished to do so, subject to the following conditions:
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# The above copyright notice and this permission notice (including the next
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# paragraph) shall be included in all copies or substantial portions of the
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Software.
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater#
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
7eda3642eea03f1181e41540c7c8791a57759383Automatic Updater# DEALINGS IN THE SOFTWARE.
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Package name used in tarballs
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsMODULE_NAME=fontconfig
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Package metadata
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsMODULE_DESC = the FontConfig font configuration and customization library
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# pkg(5) name we deliver the files in (override default)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonMODULE_PKGNAME=system/library/fontconfig
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterMODULE_PKGNAME_SET=yes
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Package classification (override default)
80faf1588895fd26490f82f95a7a1b771df1c324Automatic UpdaterMODULE_PKGCLASS=System/Libraries
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_PKGCLASS_SET=yes
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# ARC cases that covered this module
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic Updater# LSARC/2003/273 fontconfig library
80faf1588895fd26490f82f95a7a1b771df1c324Automatic UpdaterMODULE_ARC_CASES = LSARC/2003/273
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# PSARC/2004/752 X Consolidation conversion to SMF
ca904804e43f663f08eb1ac9d6d617930b9a3cd3Automatic UpdaterMODULE_ARC_CASES += PSARC/2004/752
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# LSARC/2006/485 fontconfig Hide/Only/Poor (HOP) language matching
c0b771f68361b073388b85a689c12cbe502880eeAutomatic UpdaterMODULE_ARC_CASES += LSARC/2006/485
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# LSARC/2007/532 fc-match
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_ARC_CASES += LSARC/2007/532
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# LSARC/2008/140 fontconfig 2.5.0
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonMODULE_ARC_CASES += LSARC/2008/140
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# PSARC/2010/162 fontconfig 2.8.0
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsMODULE_ARC_CASES += PSARC/2010/162
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# PSARC/2015/035 Moving fontconfig utilities to LP64 by default
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsMODULE_ARC_CASES += PSARC/2015/035
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# PSARC/2015/527 Fontconfig 2.11.94
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsMODULE_ARC_CASES += PSARC/2015/527
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Package metadata
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsUPSTREAM = fontconfig
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic UpdaterUPSTREAM_URL = http://fontconfig.org/
bb93c8542756719b53096b9939e4041d0966026fAutomatic UpdaterUPSTREAM_SET = yes
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic UpdaterGIT_URL = $(FDO_GIT_URL)/fontconfig
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic UpdaterGIT_URL_SET = yes
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic UpdaterORACLE_TPNO = 23955
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic Updater
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Version number (used in path names)
2a31bd531072824ef252c18303859d6af7451b00Francis DupontMODULE_VERSION=2.11.94
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Checksums for upstream tarball
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsTARBALL_MD5 = 479be870c7f83f15f87bac085b61d641
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic UpdaterTARBALL_SHA1 = 3748d8a2b9cf8052dbd003f524d829157f1ead83
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic UpdaterTARBALL_SHA256 = 73f6d323c7bcfbde25d78397675191d55b8f4139132c6a9444410f3a2d8a9a95
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Source tarball
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic UpdaterSOURCE_TARBALL_NAME=fontconfig-$(MODULE_VERSION).tar.gz
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic UpdaterSOURCE_TARBALL_NAME_SET=yes
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Download site for source
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic UpdaterSOURCE_URL=http://fontconfig.org/release/$(SOURCE_TARBALL_NAME)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsSOURCE_URL_SET=yes
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater# Patches to apply to source after unpacking, in order
fe80a4909bf62b602feaf246866e9d29f7654194Automatic UpdaterSOURCE_PATCHES = \
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater arial-narrow.conf.patch \
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater cjk-fonts.conf.patch,-p1 \
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater Makefile.am.0.patch \
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater bitmap-hacks.patch,-p1 \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews 6447517.patch,-p1 \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson 6770058.patch \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews 7026635.patch,-p1 \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews 7058808.patch \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson font-links.patch
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Library name (used for specfiles/mapfiles)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsLIBNAME=fontconfig
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater# Man pages to apply Sun footer to & attributes to list
bb93c8542756719b53096b9939e4041d0966026fAutomatic UpdaterFONTCONFIG_CMDS = fc-cache fc-list fc-query fc-cat fc-match fc-scan fc-pattern fc-validate
bb93c8542756719b53096b9939e4041d0966026fAutomatic UpdaterSUNTOUCHED_MANPAGES = $(FONTCONFIG_CMDS:%=%/%.1) doc/*.3 doc/*.5
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterMODULE_STABILITY=Volatile
59528addd704f8d5757b54e540520f74e588a7c7Automatic UpdaterLIB_MAN_SUFFIX=3fontconfig
4cda4fd158d6ded5586bacea8c388445d99611eaAutomatic UpdaterMODULE_MTLEVEL=Unknown
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic UpdaterMODULE_MTLEVEL_SET=yes
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater# Override specific attributes for specific man pages
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterSUNTOUCH_MAN_FLAGS = $(COMMON_SUNTOUCH_MAN_FLAGS) \
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater $(SUNTOUCH_MAN_FLAGS_$(@F:%.$(FIXED_MAN_SUFFIX)=%))
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterSUNTOUCH_MAN_FLAGS_SET = yes
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# API docs are in doc/*.3
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic UpdaterSUNTOUCH_MAN_FLAGS_*.3 = $(MODTYPE_SUNTOUCH_MAN_FLAGS)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Command docs are in per-command dirs
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterSUNTOUCH_MAN_FLAGS_CMDS = -p $(MODULE_PREFIX)/bin/
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic UpdaterSUNTOUCH_MAN_FLAGS_fc-cache.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterSUNTOUCH_MAN_FLAGS_fc-list.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterSUNTOUCH_MAN_FLAGS_fc-query.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
59528addd704f8d5757b54e540520f74e588a7c7Automatic UpdaterSUNTOUCH_MAN_FLAGS_fc-cat.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterSUNTOUCH_MAN_FLAGS_fc-match.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterSUNTOUCH_MAN_FLAGS_fc-scan.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterSUNTOUCH_MAN_FLAGS_fc-pattern.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
59528addd704f8d5757b54e540520f74e588a7c7Automatic UpdaterSUNTOUCH_MAN_FLAGS_fc-validate.1= $(SUNTOUCH_MAN_FLAGS_CMDS)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# pkg-config files to update
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic UpdaterFIX_PC_FILES=fontconfig.pc.in
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Don't include path to freetype headers in our proto area in the *.pc files.
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater# The 'Requires: freetype' will handle the right -I flags for us.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterMODULE_FIX_PC_FLAGS += -e 's| \@FREETYPE_CFLAGS\@||g;'
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic UpdaterBINSUBDIR = $(BINSUBDIR_$(BUILD_TYPE))
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterBINSUBDIR_32 = $(SUBDIR32)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterBINSUBDIR_64 = $(SUBDIR64)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Additional command line options to GNU autoconf configure script
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterMODULE_CONFIG_OPTS = \
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater --bindir='$${exec_prefix}/bin/$(BINSUBDIR)' \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater --with-baseconfigdir='/etc/fonts' \
7262eb86f2b465822206122921e2f357218f0cfdAutomatic Updater --with-templatedir='/etc/fonts/conf.avail' \
96ea71632887c58a9d00f47eb318bf76b35903c3Mark Andrews --with-xmldir='/etc/fonts' \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater --with-default-fonts='/usr/share/fonts' \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater --with-add-fonts='/etc/X11/fontpath.d,/usr/share/ghostscript/fonts,/usr/X11/lib/X11/fonts' \
bbb069be941f649228760edcc241122933c066d2Automatic Updater --with-cache-dir=/var/cache/fontconfig
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
4cda4fd158d6ded5586bacea8c388445d99611eaAutomatic Updater# Need to use GNU Make to build
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_MAKE=$(GNUMAKE)
b0d566a2ce0f5a67f537ee7f8233f82f2584cc61Automatic UpdaterMODULE_MAKE_SET=yes
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Paths to find libraries
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterMODULE_BUILD_ENV = LD_LIBRARY_PATH=$(PROTODIR)/usr/lib$(LIBSUBDIR) \
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater LD_RUN_PATH=/usr/lib$(LIBSUBDIR) $(DOC_PATH)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Need to rebuild autoconf/automake files
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic UpdaterAUTORECONF=yes
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c5a53da13bb2126dcbbd5b45ca4904eccafe6621Automatic Updater# Override linker flags for programs
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsFONTCONFIG_PROG_LDFLAGS=$(MAPFILES_FOR_PROGS) ../src/libfontconfig.so.1
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterPROGRAM_VARS = fc_cache fc_cat fc_list fc_match fc_query fc_scan
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic UpdaterMODULE_BUILD_MAKEFLAGS = $(PROGRAM_VARS:%=%_LDADD="$(FONTCONFIG_PROG_LDFLAGS)")
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# 22507047 libfontconfig should not need a libpthread dependency
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic Updater# Upstream uses ac_pthread.m4 which insists on using -mt & -lpthread on Solaris
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# despite them not being necessary any more
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterMODULE_LD_OPTIONS += $(ZDISCARD_UNUSED_DEP)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Include common rulesets
7eda3642eea03f1181e41540c7c8791a57759383Automatic Updaterinclude ../Makefile.inc
5c0fc20d6e59216d9a142409e5fdb498153aeaa5Automatic Updater
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Path to install fc-cache SMF files and the RBAC files they use
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterFONTCONFIG_SMF_MANIFEST_dir=$(PROTODIR)$(SMF_MANIFEST_DIR)/application/font
7eda3642eea03f1181e41540c7c8791a57759383Automatic UpdaterFONTCONFIG_SMF_MANIFEST=$(FONTCONFIG_SMF_MANIFEST_dir)/fc-cache.xml
00be0f9f61d4c6bf197d000bfa1a6b7e70ea0866Automatic UpdaterFONTCONFIG_SMF_METHOD_dir=$(PROTODIR)$(SMF_METHOD_DIR)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonFONTCONFIG_SMF_METHOD=$(FONTCONFIG_SMF_METHOD_dir)/fc-cache
00be0f9f61d4c6bf197d000bfa1a6b7e70ea0866Automatic UpdaterFONTCONFIG_RBAC_AUTH_dir=$(PROTODIR)/etc/security/auth_attr.d
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterFONTCONFIG_RBAC_AUTH=$(FONTCONFIG_RBAC_AUTH_dir)/fontconfig
5c0fc20d6e59216d9a142409e5fdb498153aeaa5Automatic Updater
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater# Sun specification configuration files to be installed in /etc/fonts/conf.d
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic UpdaterFONTCONFIG_CONFDIR = $(PROTODIR)/etc/fonts/conf.avail
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonSUN_CONFFILES = 20-indic.conf 49-sun-preuser.conf 90-sun-prefer-bitmap.conf
f0ecd0e64ffa2a8afef95d81275d46a845f15402Automatic UpdaterFONTCONFIG_SUN_CONFFILES = $(SUN_CONFFILES:%=$(FONTCONFIG_CONFDIR)/%)
3857cb6fcabeb79d85de4b3e3e4ab99912b701f8Mark Andrews
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Link /usr/bin/$cmdname to the 64-bit version
80faf1588895fd26490f82f95a7a1b771df1c324Automatic UpdaterFONTCONFIG_CMD_LINKS = $(FONTCONFIG_CMDS:%=$(PROTODIR)/usr/bin/%)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews$(FONTCONFIG_CMD_LINKS): $(PROTODIR)/usr/bin
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews -rm -f $@
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson ln -s $(BINSUBDIR_64)/${@F} $@
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington$(PROTODIR)/usr/bin:
8ae412a86ed138263796195eed82a4716e7effcbMark Andrews mkdir $@
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Additional targets to install beyond the default_install,
3c5dffc581c882235485cf5eaf7cd6a5e07548bfAutomatic Updater# run just once, not per bitwidth
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsFONTCONFIG_INSTALL_RULES = fontconfig-sunman-install \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(FONTCONFIG_SMF_MANIFEST) $(FONTCONFIG_SMF_METHOD) \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(FONTCONFIG_RBAC_AUTH) \
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater $(FONTCONFIG_SUN_CONFFILES) $(FONTCONFIG_CMD_LINKS)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinstall: $(FONTCONFIG_INSTALL_RULES)
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews$(FONTCONFIG_SMF_MANIFEST): fc-cache.xml
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews /usr/sbin/svccfg validate fc-cache.xml
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews mkdir -p $(FONTCONFIG_SMF_MANIFEST_dir)
e076d0c88be69de7c190ab924d095e69d2e11f7aAndreas Gustafsson $(INSTALL_SCRIPT) -c -m 0444 fc-cache.xml $@
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater$(FONTCONFIG_SMF_METHOD): fc-cache.sh
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater mkdir -p $(FONTCONFIG_SMF_METHOD_dir)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(INSTALL_SCRIPT) -c -m 0555 fc-cache.sh $@
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson$(FONTCONFIG_RBAC_AUTH): auth_attr
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews mkdir -p $(FONTCONFIG_RBAC_AUTH_dir)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(INSTALL_SCRIPT) -c -m 0444 auth_attr $@
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson$(FONTCONFIG_SUN_CONFFILES): $(SUN_CONFFILES)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews mkdir -p $(PROTODIR)/etc/fonts/conf.d $(PROTODIR)/etc/fonts/conf.avail
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews cp -fp $(@F) $@
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews rm -f $(PROTODIR)/etc/fonts/conf.d/$(@F)
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews ln -sf ../conf.avail/$(@F) $(PROTODIR)/etc/fonts/conf.d/$(@F)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonFC_MAN_DIR=$(PROTODIR)/usr/share/man
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterfontconfig-sunman-install: $(INSTALL_RULES)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater mkdir -p $(FC_MAN_DIR)/man5 $(FC_MAN_DIR)/man3lib
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater -rm -f $(FC_MAN_DIR)/man5/fonts.conf.5
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater ln -s fonts-conf.5 $(FC_MAN_DIR)/man5/fonts.conf.5
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater -rm -f $(FC_MAN_DIR)/man3lib/libfontconfig.3lib
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(PERL) -p -e 's/^$$/.LP/;' -e 's/.?\251/\\(co/;' \
bc0a4c01beede169df81a3ee5b614ed9e82339dbAutomatic Updater libfontconfig.3lib > $(FC_MAN_DIR)/man3lib/libfontconfig.3lib
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington cat sunman-notes-fc-cache >> $(FC_MAN_DIR)/man1/fc-cache.1
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater -rm -f $(PROTODIR)/etc/fonts/fonts.conf.bak
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington