Makefile revision 911
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore###############################################################################
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# Fontconfig 2.x Makefile
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# Use is subject to license terms.
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# Permission is hereby granted, free of charge, to any person obtaining a
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# copy of this software and associated documentation files (the
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# "Software"), to deal in the Software without restriction, including
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# without limitation the rights to use, copy, modify, merge, publish,
02fc09f797e83e80199c96adc4751c230dccc973Adam Moore# distribute, and/or sell copies of the Software, and to permit persons
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# to whom the Software is furnished to do so, provided that the above
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# copyright notice(s) and this permission notice appear in all copies of
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# the Software and that both the above copyright notice(s) and this
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore# permission notice appear in supporting documentation.
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
c4f19796d319a7ec9a1e76d48adc82c9c5ae2f27Adam Moore# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
08e054017132cdd838955bc0af15889f1f2a7b42Adam Moore# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
b46f3d670b654847b0ce60afdba1b461c492a5c9Adam Moore# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
b46f3d670b654847b0ce60afdba1b461c492a5c9Adam Moore# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
b46f3d670b654847b0ce60afdba1b461c492a5c9Adam Moore# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
08e054017132cdd838955bc0af15889f1f2a7b42Adam Moore# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
f647f9c7909e84a0b19f09de42ce82a715e2d52aAdam Moore# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore# Except as contained in this notice, the name of a copyright holder
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore# shall not be used in advertising or otherwise to promote the sale, use
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore# or other dealings in this Software without prior written authorization
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore# of the copyright holder.
0771d781138a507b3e657573703f511291640bf3Adam Moore# Package name used in tarballs
9c42541e375e7bb70c53012b3012d70f1a380254Adam Moore# Version number (used in path names)
9c42541e375e7bb70c53012b3012d70f1a380254Adam Moore# Checksums for upstream tarball
02fc09f797e83e80199c96adc4751c230dccc973Adam MooreTARBALL_SHA1 = bc84b883673a7f43f2849f06ec110c4eaccfb42c
2690c090ce850e485d15cf691f59e8aaeb3b4bb1Adam Moore# Source tarball
8aa0880cd494c951e0f4aa7d82d8bdac7692c7d0Adam MooreSOURCE_TARBALL_NAME=fontconfig-$(MODULE_VERSION).tar.gz
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# Download site for source
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreSOURCE_URL=http://fontconfig.org/release/$(SOURCE_TARBALL_NAME)
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# Patches to apply to source after unpacking, in order
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreSOURCE_PATCHES=fontconfig-$(MODULE_VERSION)-fonts.conf.patch,-p1 \
fb49666327c2cb6ea5a7d2dea5160b649bc07c51Adam Moore# Library name (used for specfiles/mapfiles)
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# Man pages to apply Sun footer to & attributes to list
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# Install to /usr, not /usr/X11
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# Additional command line options to GNU autoconf configure script
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore --with-add-fonts='/etc/X11/fontpath.d,/usr/share/ghostscript/fonts,/usr/X11/lib/X11/fonts' \
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore --with-freetype-config=$(PROTODIR)/usr/bin$(LIBSUBDIR)/freetype-config \
abdfe7cf11d34f89f17b26e4779bf6079d22a910Adam Moore# Need to use GNU Make to build
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam Moore# Paths to find libraries
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam MooreMODULE_BUILD_ENV = LD_LIBRARY_PATH=$(PROTODIR)/usr/lib$(LIBSUBDIR) \
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# Need to rebuild autoconf/automake files
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# Path to install fc-cache manifest & method script
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreFONTCONFIG_SMF_MANIFEST_dir=$(PROTODIR)/var/svc/manifest/application/font
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreFONTCONFIG_SMF_MANIFEST=$(FONTCONFIG_SMF_MANIFEST_dir)/fc-cache.xml
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreFONTCONFIG_SMF_METHOD_dir=$(PROTODIR)/lib/svc/method
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreFONTCONFIG_SMF_METHOD=$(FONTCONFIG_SMF_METHOD_dir)/fc-cache
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# Sun specification configuration files to be installed in /etc/fonts/conf.d
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam MooreFONTCONFIG_CONFDIR = $(PROTODIR)/etc/fonts/conf.avail
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam MooreSUN_CONFFILES = 20-indic.conf 49-sun-preuser.conf 90-sun-prefer-bitmap.conf
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam MooreFONTCONFIG_SUN_CONFFILES = $(SUN_CONFFILES:%=$(FONTCONFIG_CONFDIR)/%)
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam Moore# Additional targets to install beyond the default_install
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam MooreMODULE_ADD_INSTALL_TARGETS = fontconfig-sunman-install \
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam Moore $(FONTCONFIG_SMF_MANIFEST) $(FONTCONFIG_SMF_METHOD) \
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam Moore# Include common rulesets
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore mkdir -p $(PROTODIR)/etc/fonts/conf.d $(PROTODIR)/etc/fonts/conf.avail
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore ln -sf ../conf.avail/$$f $(PROTODIR)/etc/fonts/conf.d/$$f
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore mkdir -p $(FC_MAN_DIR)/man4 $(FC_MAN_DIR)/man3lib
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore sed -e 's/.TH "FONTS-CONF" "5"/.TH "fonts.conf" "4"/' \
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore $(FC_MAN_DIR)/man5/fonts-conf.5 > $(FC_MAN_DIR)/man4/fonts.conf.4