Makefile revision 1551
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj###############################################################################
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Fontconfig - Font configuration and customization library
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddard# Permission is hereby granted, free of charge, to any person obtaining a
3304cbd819df02e7548e9338dc0afa8d3ba29358manoj# copy of this software and associated documentation files (the "Software"),
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# to deal in the Software without restriction, including without limitation
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# the rights to use, copy, modify, merge, publish, distribute, sublicense,
40a5b7189dbbb28e107bf008ee625f2f0142c2ccdgaudet# and/or sell copies of the Software, and to permit persons to whom the
40a5b7189dbbb28e107bf008ee625f2f0142c2ccdgaudet# Software is furnished to do so, subject to the following conditions:
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard# The above copyright notice and this permission notice (including the next
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard# paragraph) shall be included in all copies or substantial portions of the
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2aae6faee508221efbeaba5547ca79b7a20ef047stoddard# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2aae6faee508221efbeaba5547ca79b7a20ef047stoddard# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2aae6faee508221efbeaba5547ca79b7a20ef047stoddard# DEALINGS IN THE SOFTWARE.
75960f20f88dad6bc67892c711c429946063d133stoddard# Package name used in tarballs
4065b438067f3f08d0bd98b31ac4085b581b931dstoddard# Package metadata
4065b438067f3f08d0bd98b31ac4085b581b931dstoddardMODULE_DESC = the FontConfig font configuration and customization library
2739add8add66e21526ce27f83c2ae133d089070rbb# pkg(5) name we deliver the files in (override default)
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Package classification (override default)
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard# ARC cases that covered this module
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard# LSARC/2003/273 fontconfig library
75960f20f88dad6bc67892c711c429946063d133stoddard# PSARC/2004/752 X Consolidation conversion to SMF
75960f20f88dad6bc67892c711c429946063d133stoddard# LSARC/2006/485 fontconfig Hide/Only/Poor (HOP) language matching
75960f20f88dad6bc67892c711c429946063d133stoddard# LSARC/2007/532 fc-match
75960f20f88dad6bc67892c711c429946063d133stoddard# LSARC/2008/140 fontconfig 2.5.0
75960f20f88dad6bc67892c711c429946063d133stoddard# PSARC/2010/162 fontconfig 2.8.0
75960f20f88dad6bc67892c711c429946063d133stoddard# PSARC/2015/035 Moving fontconfig utilities to LP64 by default
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Package metadata
56ca30c968906053ae61acb218420667bb58d996rbb# Version number (used in path names)
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manoj# Checksums for upstream tarball
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manojTARBALL_SHA1 = 570fb55eb14f2c92a7b470b941e9d35dbfafa716
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Source tarball
2a6c49cfaef5979a5a06098f3ce987cd76769409manojSOURCE_TARBALL_NAME=fontconfig-$(MODULE_VERSION).tar.gz
8de99b4c89d4ed4292a7dca42dd8a96b9a7c456fdgaudet# Download site for source
8de99b4c89d4ed4292a7dca42dd8a96b9a7c456fdgaudetSOURCE_URL=http://fontconfig.org/release/$(SOURCE_TARBALL_NAME)
8de99b4c89d4ed4292a7dca42dd8a96b9a7c456fdgaudet# Patches to apply to source after unpacking, in order
6686c651e8eb6ad762b842ad5139515c8038dd44dgaudet# Library name (used for specfiles/mapfiles)
6686c651e8eb6ad762b842ad5139515c8038dd44dgaudet# Man pages to apply Sun footer to & attributes to list
8de99b4c89d4ed4292a7dca42dd8a96b9a7c456fdgaudetFONTCONFIG_CMDS = fc-cache fc-list fc-query fc-cat fc-match fc-scan
0b0a5225c5ed94b9f689839a14842ad4a24215e9dgaudetSUNTOUCHED_MANPAGES = $(FONTCONFIG_CMDS:%=%/%.1) doc/*.3 doc/*.5
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddard# Override specific attributes for specific man pages
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddard $(SUNTOUCH_MAN_FLAGS_$(@F:%.$(FIXED_MAN_SUFFIX)=%))
2aae6faee508221efbeaba5547ca79b7a20ef047stoddard# API docs are in doc/*.3
75960f20f88dad6bc67892c711c429946063d133stoddardSUNTOUCH_MAN_FLAGS_*.3 = $(MODTYPE_SUNTOUCH_MAN_FLAGS)
75960f20f88dad6bc67892c711c429946063d133stoddard# Command docs are in per-command dirs
75960f20f88dad6bc67892c711c429946063d133stoddardSUNTOUCH_MAN_FLAGS_fc-cache.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardSUNTOUCH_MAN_FLAGS_fc-list.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardSUNTOUCH_MAN_FLAGS_fc-query.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardSUNTOUCH_MAN_FLAGS_fc-cat.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardSUNTOUCH_MAN_FLAGS_fc-match.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
40a5b7189dbbb28e107bf008ee625f2f0142c2ccdgaudetSUNTOUCH_MAN_FLAGS_fc-scan.1 = $(SUNTOUCH_MAN_FLAGS_CMDS)
40a5b7189dbbb28e107bf008ee625f2f0142c2ccdgaudet# pkg-config files to update
56ca30c968906053ae61acb218420667bb58d996rbb# Additional command line options to GNU autoconf configure script
56ca30c968906053ae61acb218420667bb58d996rbb --with-add-fonts='/etc/X11/fontpath.d,/usr/share/ghostscript/fonts,/usr/X11/lib/X11/fonts' \
0bff2f28ef945280c17099c142126178a78e1e54manoj# Need to use GNU Make to build
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard# Paths to find libraries
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddardMODULE_BUILD_ENV = LD_LIBRARY_PATH=$(PROTODIR)/usr/lib$(LIBSUBDIR) \
0bff2f28ef945280c17099c142126178a78e1e54manoj# Need to rebuild autoconf/automake files
75960f20f88dad6bc67892c711c429946063d133stoddard# Override linker flags for programs
0bff2f28ef945280c17099c142126178a78e1e54manojFONTCONFIG_PROG_LDFLAGS=$(MAPFILES_FOR_PROGS) ../src/libfontconfig.so.1
0bff2f28ef945280c17099c142126178a78e1e54manojPROGRAM_VARS = fc_cache fc_cat fc_list fc_match fc_query fc_scan
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddardMODULE_BUILD_MAKEFLAGS = $(PROGRAM_VARS:%=%_LDADD="$(FONTCONFIG_PROG_LDFLAGS)")
f03d292915be9977eaf74e9be7b0404aec226f84manoj# Include common rulesets
3304cbd819df02e7548e9338dc0afa8d3ba29358manoj# Path to install fc-cache SMF files and the RBAC files they use
f03d292915be9977eaf74e9be7b0404aec226f84manojFONTCONFIG_SMF_MANIFEST_dir=$(PROTODIR)$(SMF_MANIFEST_DIR)/application/font
f03d292915be9977eaf74e9be7b0404aec226f84manojFONTCONFIG_SMF_MANIFEST=$(FONTCONFIG_SMF_MANIFEST_dir)/fc-cache.xml
f03d292915be9977eaf74e9be7b0404aec226f84manojFONTCONFIG_SMF_METHOD=$(FONTCONFIG_SMF_METHOD_dir)/fc-cache
aa1faea36e4ae357bc603a2337b6adc54f5daec1manojFONTCONFIG_RBAC_AUTH_dir=$(PROTODIR)/etc/security/auth_attr.d
aa1faea36e4ae357bc603a2337b6adc54f5daec1manojFONTCONFIG_RBAC_AUTH=$(FONTCONFIG_RBAC_AUTH_dir)/fontconfig
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Sun specification configuration files to be installed in /etc/fonts/conf.d
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanojSUN_CONFFILES = 20-indic.conf 49-sun-preuser.conf 90-sun-prefer-bitmap.conf
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanojFONTCONFIG_SUN_CONFFILES = $(SUN_CONFFILES:%=$(FONTCONFIG_CONFDIR)/%)
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Link /usr/bin/$cmdname to the 64-bit version
2a6c49cfaef5979a5a06098f3ce987cd76769409manojFONTCONFIG_CMD_LINKS = $(FONTCONFIG_CMDS:%=$(PROTODIR)/usr/bin/%)
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Additional targets to install beyond the default_install,
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# run just once, not per bitwidth
d6b3cb141f0667101c1bca883ad15b383402c93bfielding $(FONTCONFIG_SUN_CONFFILES) $(FONTCONFIG_CMD_LINKS)
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj mkdir -p $(PROTODIR)/etc/fonts/conf.d $(PROTODIR)/etc/fonts/conf.avail
d6b3cb141f0667101c1bca883ad15b383402c93bfielding ln -sf ../conf.avail/$(@F) $(PROTODIR)/etc/fonts/conf.d/$(@F)
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj sed -e 's/.TH "FONTS-CONF" "5"/.TH "fonts.conf" "4"/' \
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj $(FC_MAN_DIR)/man5/fonts-conf.5 > $(FC_MAN_DIR)/man4/fonts.conf.4
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj libfontconfig.3lib > $(FC_MAN_DIR)/man3lib/libfontconfig.3lib