Makefile revision 175
f743002678eb67b99bbc29fee116b65d9530fec0wrowe###############################################################################
a34684a59b60a4173c25035d0c627ef17e6dc215rpluem# Fontconfig 2.x Makefile
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# Use subject to license terms.
4da61833a1cbbca94094f9653fd970582b97a72etrawick# Permission is hereby granted, free of charge, to any person obtaining a
4da61833a1cbbca94094f9653fd970582b97a72etrawick# copy of this software and associated documentation files (the
4da61833a1cbbca94094f9653fd970582b97a72etrawick# "Software"), to deal in the Software without restriction, including
4da61833a1cbbca94094f9653fd970582b97a72etrawick# without limitation the rights to use, copy, modify, merge, publish,
4da61833a1cbbca94094f9653fd970582b97a72etrawick# distribute, and/or sell copies of the Software, and to permit persons
4789804be088bcd86ae637a29cdb7fda25169521jailletc# to whom the Software is furnished to do so, provided that the above
4789804be088bcd86ae637a29cdb7fda25169521jailletc# copyright notice(s) and this permission notice appear in all copies of
4789804be088bcd86ae637a29cdb7fda25169521jailletc# the Software and that both the above copyright notice(s) and this
4789804be088bcd86ae637a29cdb7fda25169521jailletc# permission notice appear in supporting documentation.
e50c3026198fd496f183cda4c32a202925476778covener# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
e50c3026198fd496f183cda4c32a202925476778covener# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
5b88c8507d5ef6d0c4cfbc78230294968175b638minfrin# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
5b88c8507d5ef6d0c4cfbc78230294968175b638minfrin# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
4f29b65ab4b547ad5dbe506e2d0ff5d12ead9247ylavic# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
4f29b65ab4b547ad5dbe506e2d0ff5d12ead9247ylavic# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0a0df13b7f1f4f1a74fe295253d89ca3911b301aylavic# Except as contained in this notice, the name of a copyright holder
0a0df13b7f1f4f1a74fe295253d89ca3911b301aylavic# shall not be used in advertising or otherwise to promote the sale, use
0a0df13b7f1f4f1a74fe295253d89ca3911b301aylavic# or other dealings in this Software without prior written authorization
69301145375a889e7e37caf7cc7321ac0f91801erpluem# of the copyright holder.
69301145375a889e7e37caf7cc7321ac0f91801erpluem# @(#)Makefile 1.67 07/06/14
506bfe33206b2fece40ef25f695af39dd4130facjkaluza# Package name used in tarballs
d58a848a016d401b965111e50ef829e1641f7834minfrin# Version number (used in path names)
2e6f4d654c96c98b761fb012fd25c5d5b1558c44sf# Source tarball
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavic# Download site for source
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavicSOURCE_URL=http://fontconfig.org/release/$(SOURCE_TARBALL_NAME)
e8bd80a4bb88199d2f9a24a50345688e52d9c116ylavic# Patches to apply to source after unpacking, in order
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic# Library name (used for specfiles/mapfiles)
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic# Special version of freetype config to force certain arguments
d7205b1a86c51c27b71a2c458dc453fd53a261c1covener# Install to /usr, not /usr/X11
44ff304057225e944e220e981d434a046d14cf06covener# Path needed to find docbook2man, etc.
44ff304057225e944e220e981d434a046d14cf06covener# DOC_PATH= PATH="$(PROTODIR)$(X11_DIR)/bin:$(PROTODIR)$(TOOLS_DIR)/bin:$$PATH"
5d1ba75b8794925e67591c209085a49279791de9covener# Command line options to GNU autoconf configure script
5d1ba75b8794925e67591c209085a49279791de9covenerLIB_ADD_CONFIG_OPTS = --with-expat-includes=/usr/sfw/include \
032982212dbcc7c3cce95bf89c503bb56e185ac7kbrand --with-confdir=/etc/fonts --with-default-fonts='--font-dirs-go-here--' \
caad2986f81ab263f7af41467dd622dc9add17f3ylavic# Library built in tree
caad2986f81ab263f7af41467dd622dc9add17f3ylavicLIB_BUILT=$(SOURCE_DIR)/src/.libs/libfontconfig.so.1.0.4
45a10d38e6051fd7bdf9d742aaae633d97ff02abjailletc# Where to install most files
2165214331e4afafca4048f66f303d0253d7b001covener# Where to install libraries
1e2d421a36999d292042a5539971070d54aa6c63ylavic# Paths to find libraries
1e2d421a36999d292042a5539971070d54aa6c63ylavicLIBPATHS = LD_LIBRARY_PATH=$(PROTODIR)/usr/sfw/lib$(LIBSUBDIR) LD_RUN_PATH=/usr/sfw/lib$(LIBSUBDIR) $(DOC_PATH)
fa7ed98b9dc94c5845cf845aea0a44ecacd290c9humbedooh# Path to install fc-cache manifest
0b67eb8568cd58bb77082703951679b42cf098actrawickFONTCONFIG_SMF_MANIFEST_dir=$(PROTODIR)/var/svc/manifest/application/font
0b67eb8568cd58bb77082703951679b42cf098actrawickFONTCONFIG_SMF_MANIFEST=$(FONTCONFIG_SMF_MANIFEST_dir)/fc-cache.xml
0b67eb8568cd58bb77082703951679b42cf098actrawick$(FONTCONFIG_FT2CFG): $(PROTODIR)/usr/sfw/bin$(LIBSUBDIR)/freetype-config
5ef3c61605a3a021ff71f488983cb0065f8e1a79covener -if [ -f $@ ] ; then rm $@ ; fi
fb1985a97912b25ec6564c73e610a31e5fc6e25fcovener sed -e 's|-L$$libdir|-L$(PROTODIR)$${exec_prefix}/lib$(LIBSUBDIR) -L$$libdir|' -e 's|^includedir=$${prefix}|includedir=$(PROTODIR)$${prefix}|' $(PROTODIR)/usr/sfw/bin$(LIBSUBDIR)/freetype-config > $@
6502b7b32f980cc2093bb3ebce37e5e4dc68fba4ylavic# Run configure script
e466c40e1801982602ee0200c9e8b61cc148742djailletc# Need to regenerate configure with newer autoconf to work with Studio 12
04983e3bd1754764eec7d6bb772fe3b0bf391771jorton$(SOURCE_DIR)/fonts.conf-SUNW: $(SOURCE_DIR)/fonts.conf fonts.conf.append fonts.conf.preuser fix-fonts.conf.pl
04983e3bd1754764eec7d6bb772fe3b0bf391771jorton perl fix-fonts.conf.pl < $(SOURCE_DIR)/fonts.conf > $(SOURCE_DIR)/fonts.conf-SUNW
49dacedb6c387b786b7911082ff35121a45f414bcovenerinstall_gen:: $(SOURCE_DIR)/fonts.conf-SUNW $(FONTCONFIG_SMF_MANIFEST)
cfd9415521847b2f9394fad04fb701cfb955f503rjung cp $(SOURCE_DIR)/fonts.conf-SUNW $(PROTODIR)/etc/fonts/fonts.conf
63b9f1f5880391261705f696d7d65507bbe9ace3covener# Quick inline perl script to fix up fc-cache & fc-list man pages
49dacedb6c387b786b7911082ff35121a45f414bcovener $$date=strftime("%e %b %Y",localtime((stat($$ARGV[0]))[9])); \
49dacedb6c387b786b7911082ff35121a45f414bcovener print "\047\\\" t\n"; \
3c990331fc6702119e4f5b8ba9eae3021aea5265jim s|__vendorversion__|"$$date"| ; \
3c990331fc6702119e4f5b8ba9eae3021aea5265jim s|__package__|SUNWfontconfig| ; \
3c990331fc6702119e4f5b8ba9eae3021aea5265jim s|fontconfig\(3\)|libfontconfig\(3lib\)|; \
3c990331fc6702119e4f5b8ba9eae3021aea5265jim s%^\\\|\.%.IR \\|.%; \
0451df5dc50fa5d8b3e07d92ee6a92e36a1181a5niq# 6368378: fc-cache and fc-list man pages are broken
da0442c0440caef34706e2c2f3af05cb65921cc0jailletc mkdir -p $(FC_MAN_DIR)/man1 $(FC_MAN_DIR)/man4 $(FC_MAN_DIR)/man3lib
da0442c0440caef34706e2c2f3af05cb65921cc0jailletc $(FC_MAN_FIX) $(FC_MAN_DIR)/man5/fonts-conf.5 sunman-notes-fonts.conf $(TOP)/common/sunman-stability | sed -e 's/.TH "FONTS-CONF" "5"/.TH "fonts.conf" "4"/' -e 's/SUNWfontconfig/SUNWfontconfig-root/' > $(FC_MAN_DIR)/man4/fonts.conf.4
06b8f183140c8e02e0974e938a05078b511d1603covener -if [ -f $(FC_MAN_DIR)/man3lib/libfontconfig.3lib ] ; then \
15890c9306ba98f6fc243e15a3c4778ddc7d773erpluem perl -p -e 's/^$$/.LP/;' -e 's/\251/\\(co/;' libfontconfig.3lib $(SOURCE_DIR)/COPYING >> $(FC_MAN_DIR)/man3lib/libfontconfig.3lib
b54b024c06a19926832d77d40ba35ad8c41e4d3dminfrin APPEND="sunman-notes-$$i $(TOP)/common/sunman-stability" ; \
65967d05f839dbf27cf91d91fa79585eeae19660minfrin $(FC_MAN_FIX) $(SOURCE_DIR)/$$i/$$i.man $$APPEND > \