Makefile revision 1339
0N/A###############################################################################
0N/A#
0N/A# Fontconfig - Font configuration and customization library
0N/A#
1102N/A# Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the "Software"),
919N/A# to deal in the Software without restriction, including without limitation
919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A# and/or sell copies of the Software, and to permit persons to whom the
919N/A# Software is furnished to do so, subject to the following conditions:
919N/A#
919N/A# The above copyright notice and this permission notice (including the next
919N/A# paragraph) shall be included in all copies or substantial portions of the
919N/A# Software.
919N/A#
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A# DEALINGS IN THE SOFTWARE.
0N/A#
0N/A#
0N/A
156N/A# Package name used in tarballs
493N/AMODULE_NAME=fontconfig
0N/A
970N/A# Package metadata
970N/AMODULE_DESC = the FontConfig font configuration and customization library
970N/A
970N/A# pkg(5) name we deliver the files in (override default)
970N/AMODULE_PKGNAME=system/library/fontconfig
970N/AMODULE_PKGNAME_SET=yes
970N/A
970N/A# Package classification (override default)
970N/AMODULE_PKGCLASS=System/Libraries
970N/AMODULE_PKGCLASS_SET=yes
970N/A
970N/A# ARC cases that covered this module
970N/A# LSARC/2003/273 fontconfig library
970N/AMODULE_ARC_CASES = LSARC/2003/273
970N/A# PSARC/2004/752 X Consolidation conversion to SMF
970N/AMODULE_ARC_CASES += PSARC/2004/752
970N/A# LSARC/2006/485 fontconfig Hide/Only/Poor (HOP) language matching
970N/AMODULE_ARC_CASES += LSARC/2006/485
970N/A# LSARC/2007/532 fc-match
970N/AMODULE_ARC_CASES += LSARC/2007/532
970N/A# LSARC/2008/140 fontconfig 2.5.0
970N/AMODULE_ARC_CASES += LSARC/2008/140
970N/A
970N/A# Package metadata
970N/AUPSTREAM = fontconfig
0N/AUPSTREAM_URL = http://fontconfig.org/
950N/AUPSTREAM_SET = yes
0N/AORACLE_TPNO = 12113
911N/A
950N/A# Version number (used in path names)
950N/AMODULE_VERSION=2.8.0
911N/A
0N/A# Checksums for upstream tarball
493N/ATARBALL_MD5 = 77e15a92006ddc2adbb06f840d591c0e
493N/ATARBALL_SHA1 = 570fb55eb14f2c92a7b470b941e9d35dbfafa716
156N/A
0N/A# Source tarball
0N/ASOURCE_TARBALL_NAME=fontconfig-$(MODULE_VERSION).tar.gz
156N/ASOURCE_TARBALL_NAME_SET=yes
156N/A
0N/A# Download site for source
0N/ASOURCE_URL=http://fontconfig.org/release/$(SOURCE_TARBALL_NAME)
950N/ASOURCE_URL_SET=yes
950N/A
950N/A# Patches to apply to source after unpacking, in order
950N/ASOURCE_PATCHES = \
950N/A arial-narrow.conf.patch \
950N/A cjk-fonts.conf.patch \
1102N/A Makefile.am.0.patch \
1160N/A bitmap-hacks.patch \
1160N/A 6447517.patch \
364N/A 6770058.patch \
156N/A 7026635.patch \
156N/A 7058808.patch
0N/A
591N/A# Library name (used for specfiles/mapfiles)
947N/ALIBNAME=fontconfig
947N/A
591N/A# Man pages to apply Sun footer to & attributes to list
591N/AFONTCONFIG_CMDS = fc-cache fc-list fc-query fc-cat fc-match fc-scan
591N/ASUNTOUCHED_MANPAGES = $(FONTCONFIG_CMDS:%=%/%.1) doc/*.3 doc/*.5
947N/AMODULE_STABILITY=Volatile
947N/ALIB_MAN_SUFFIX=3fontconfig
947N/AMODULE_MTLEVEL=Unknown
947N/AMODULE_MTLEVEL_SET=yes
947N/A
947N/A# Override specific attributes for specific man pages
947N/ASUNTOUCH_MAN_FLAGS = $(COMMON_SUNTOUCH_MAN_FLAGS) \
947N/A $(SUNTOUCH_MAN_FLAGS_$(@F:%.$(FIXED_MAN_SUFFIX)=%))
947N/ASUNTOUCH_MAN_FLAGS_SET = yes
947N/A# API docs are in doc/*.3
947N/ASUNTOUCH_MAN_FLAGS_*.3 = $(MODTYPE_SUNTOUCH_MAN_FLAGS)
947N/A# Command docs are in per-command dirs
947N/ASUNTOUCH_MAN_FLAGS_CMDS = -p $(MODULE_PREFIX)/bin/
947N/ASUNTOUCH_MAN_FLAGS_fc-cache.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
947N/ASUNTOUCH_MAN_FLAGS_fc-list.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
947N/ASUNTOUCH_MAN_FLAGS_fc-query.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
0N/ASUNTOUCH_MAN_FLAGS_fc-cat.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
156N/ASUNTOUCH_MAN_FLAGS_fc-match.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
493N/ASUNTOUCH_MAN_FLAGS_fc-scan.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
493N/A
156N/A# Install to /usr, not /usr/X11
493N/AMODULE_PREFIX=/usr
493N/AMODULE_PREFIX_SET=yes
837N/A
837N/A# Additional command line options to GNU autoconf configure script
846N/AMODULE_CONFIG_OPTS = \
493N/A --with-confdir=/etc/fonts \
156N/A --with-default-fonts='/usr/share/fonts' \
493N/A --with-add-fonts='/etc/X11/fontpath.d,/usr/share/ghostscript/fonts,/usr/X11/lib/X11/fonts' \
493N/A --with-cache-dir=/var/cache/fontconfig
493N/A
364N/A# Need to use GNU Make to build
0N/AMODULE_MAKE=$(GNUMAKE)
493N/AMODULE_MAKE_SET=yes
493N/A
156N/A# Paths to find libraries
493N/AMODULE_BUILD_ENV = LD_LIBRARY_PATH=$(PROTODIR)/usr/lib$(LIBSUBDIR) \
493N/A LD_RUN_PATH=/usr/lib$(LIBSUBDIR) $(DOC_PATH)
0N/A
1196N/A# Need to rebuild autoconf/automake files
1196N/AAUTORECONF=yes
1196N/A
1196N/A# Override linker flags for programs
1196N/AFONTCONFIG_PROG_LDFLAGS=$(MAPFILES_FOR_PROGS) ../src/libfontconfig.so.1
967N/APROGRAM_VARS = fc_cache fc_cat fc_list fc_match fc_query fc_scan
967N/AMODULE_BUILD_MAKEFLAGS = $(PROGRAM_VARS:%=%_LDADD="$(FONTCONFIG_PROG_LDFLAGS)")
967N/A
970N/A# Include common rulesets
980N/Ainclude ../Makefile.inc
0N/A
980N/A# Path to install fc-cache SMF files and the RBAC files they use
339N/AFONTCONFIG_SMF_MANIFEST_dir=$(PROTODIR)$(SMF_MANIFEST_DIR)/application/font
970N/AFONTCONFIG_SMF_MANIFEST=$(FONTCONFIG_SMF_MANIFEST_dir)/fc-cache.xml
970N/AFONTCONFIG_SMF_METHOD_dir=$(PROTODIR)$(SMF_METHOD_DIR)
970N/AFONTCONFIG_SMF_METHOD=$(FONTCONFIG_SMF_METHOD_dir)/fc-cache
970N/AFONTCONFIG_RBAC_AUTH_dir=$(PROTODIR)/etc/security/auth_attr.d
0N/AFONTCONFIG_RBAC_AUTH=$(FONTCONFIG_RBAC_AUTH_dir)/fontconfig
837N/AFONTCONFIG_RBAC_HELP_dir=$(PROTODIR)/usr/lib/help/auths/locale/C
837N/AFONTCONFIG_RBAC_HELP=$(FONTCONFIG_RBAC_HELP_dir)/FontStates.html
838N/A
837N/A# Sun specification configuration files to be installed in /etc/fonts/conf.d
837N/AFONTCONFIG_CONFDIR = $(PROTODIR)/etc/fonts/conf.avail
967N/ASUN_CONFFILES = 20-indic.conf 49-sun-preuser.conf 90-sun-prefer-bitmap.conf
967N/AFONTCONFIG_SUN_CONFFILES = $(SUN_CONFFILES:%=$(FONTCONFIG_CONFDIR)/%)
967N/A
779N/A# Additional targets to install beyond the default_install,
970N/A# run just once, not per bitwidth
838N/AFONTCONFIG_INSTALL_RULES = fontconfig-sunman-install \
591N/A $(FONTCONFIG_SMF_MANIFEST) $(FONTCONFIG_SMF_METHOD) \
967N/A $(FONTCONFIG_RBAC_AUTH) $(FONTCONFIG_RBAC_HELP) \
0N/A $(FONTCONFIG_SUN_CONFFILES)
0N/A
0N/Ainstall: $(FONTCONFIG_INSTALL_RULES)
0N/A
591N/A$(FONTCONFIG_SMF_MANIFEST): fc-cache.xml
0N/A /usr/sbin/svccfg validate fc-cache.xml
339N/A mkdir -p $(FONTCONFIG_SMF_MANIFEST_dir)
339N/A $(INSTALL_SCRIPT) -c -m 0444 fc-cache.xml $@
591N/A
493N/A$(FONTCONFIG_SMF_METHOD): fc-cache.sh
970N/A mkdir -p $(FONTCONFIG_SMF_METHOD_dir)
970N/A $(INSTALL_SCRIPT) -c -m 0755 fc-cache.sh $@
970N/A
970N/A$(FONTCONFIG_RBAC_AUTH): auth_attr
970N/A mkdir -p $(FONTCONFIG_RBAC_AUTH_dir)
970N/A $(INSTALL_SCRIPT) -c -m 0444 auth_attr $@
970N/A
970N/A$(FONTCONFIG_RBAC_HELP): FontStates.html
837N/A mkdir -p $(FONTCONFIG_RBAC_HELP_dir)
837N/A $(INSTALL_SCRIPT) -c -m 0444 FontStates.html $@
967N/A
967N/A$(FONTCONFIG_SUN_CONFFILES): $(SUN_CONFFILES)
967N/A mkdir -p $(PROTODIR)/etc/fonts/conf.d $(PROTODIR)/etc/fonts/conf.avail
779N/A cp -fp $(@F) $@
156N/A rm -f $(PROTODIR)/etc/fonts/conf.d/$(@F)
156N/A ln -sf ../conf.avail/$(@F) $(PROTODIR)/etc/fonts/conf.d/$(@F)
967N/A
591N/AFC_MAN_DIR=$(PROTODIR)/usr/share/man
1183N/A
591N/Afontconfig-sunman-install: $(INSTALL_RULES)
591N/A mkdir -p $(FC_MAN_DIR)/man4 $(FC_MAN_DIR)/man3lib
591N/A -rm -f $(FC_MAN_DIR)/man4/fonts.conf.4
935N/A sed -e 's/.TH "FONTS-CONF" "5"/.TH "fonts.conf" "4"/' \
967N/A $(FC_MAN_DIR)/man5/fonts-conf.5 > $(FC_MAN_DIR)/man4/fonts.conf.4
967N/A -rm -f $(FC_MAN_DIR)/man3lib/libfontconfig.3lib
967N/A $(PERL) -p -e 's/^$$/.LP/;' -e 's/.?\251/\\(co/;' \
0N/A libfontconfig.3lib > $(FC_MAN_DIR)/man3lib/libfontconfig.3lib
cat sunman-notes-fc-cache >> $(FC_MAN_DIR)/man1/fc-cache.1
-rm -f $(PROTODIR)/etc/fonts/fonts.conf.bak