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