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