Makefile revision 838
7f007e36bec06aba6b3a0f84a64f2abf99edfcd8gstein###############################################################################
ed1ca4464f560f821f3bb7dab90c3afba08cab86coar#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Fontconfig 2.x Makefile
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# Use is subject to license terms.
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb#
ab71b233b3a36489e44a7b061c48293be0b17788jwoolley# Permission is hereby granted, free of charge, to any person obtaining a
571760de5e60c0b459cb11be45507b923cd023eejwoolley# copy of this software and associated documentation files (the
571760de5e60c0b459cb11be45507b923cd023eejwoolley# "Software"), to deal in the Software without restriction, including
9180a5933673ffb1af633c255ceee029340f3b1erbb# without limitation the rights to use, copy, modify, merge, publish,
bcb6e1be6041dfeb549c8ea8d37f97ad4e90a0c3rbb# distribute, and/or sell copies of the Software, and to permit persons
9bd71e35f5d26d26d23fe3a677401828e842ed72wrowe# to whom the Software is furnished to do so, provided that the above
2900ab946a2d76b73a14cebfe2985d253f01c967stoddard# copyright notice(s) and this permission notice appear in all copies of
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# the Software and that both the above copyright notice(s) and this
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# permission notice appear in supporting documentation.
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb#
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbb# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
35330e0d79ceb8027223bbb8330a381b1f989d6etrawick# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
6f6f4a4bca281779d196acbdd5c017bb90858305trawick# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
af4c982a7cf4515f124935f99a329744035fc699slive# Except as contained in this notice, the name of a copyright holder
af4c982a7cf4515f124935f99a329744035fc699slive# shall not be used in advertising or otherwise to promote the sale, use
af4c982a7cf4515f124935f99a329744035fc699slive# or other dealings in this Software without prior written authorization
af4c982a7cf4515f124935f99a329744035fc699slive# of the copyright holder.
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699slive# ident "@(#)Makefile 1.86 09/11/23 SMI"
af4c982a7cf4515f124935f99a329744035fc699slive#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
531c23ff01a2489646f0a2029097013b328d935agstein# Package name used in tarballs
ed1ca4464f560f821f3bb7dab90c3afba08cab86coarMODULE_NAME=fontconfig
ed1ca4464f560f821f3bb7dab90c3afba08cab86coar
ed1ca4464f560f821f3bb7dab90c3afba08cab86coar# Version number (used in path names)
ed1ca4464f560f821f3bb7dab90c3afba08cab86coarMODULE_VERSION=2.7.3
ed1ca4464f560f821f3bb7dab90c3afba08cab86coar
ed1ca4464f560f821f3bb7dab90c3afba08cab86coar# Source tarball
ed1ca4464f560f821f3bb7dab90c3afba08cab86coarSOURCE_TARBALL_NAME=fontconfig-$(MODULE_VERSION).tar.gz
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbSOURCE_TARBALL_NAME_SET=yes
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbSOURCE_UNCOMPRESS=gzcat
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb# Download site for source
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbSOURCE_URL=http://fontconfig.org/release/$(SOURCE_TARBALL_NAME)
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbSOURCE_URL_SET=yes
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb
79d5106a9b65b956d646f5daae4b94bc79e315b8trawick# Patches to apply to source after unpacking, in order
79d5106a9b65b956d646f5daae4b94bc79e315b8trawickSOURCE_PATCHES=fontconfig-$(MODULE_VERSION)-fonts.conf.patch,-p1 \
79d5106a9b65b956d646f5daae4b94bc79e315b8trawick Makefile.am.0.patch,-p1 \
79d5106a9b65b956d646f5daae4b94bc79e315b8trawick 6770058.patch,-p1
79d5106a9b65b956d646f5daae4b94bc79e315b8trawick
79d5106a9b65b956d646f5daae4b94bc79e315b8trawick# Library name (used for specfiles/mapfiles)
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gsteinLIBNAME=fontconfig
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gstein
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gstein# Man pages to apply Sun footer to & attributes to list
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gsteinSUNTOUCHED_MANPAGES=*/*.1 doc/*.3 doc/*.5
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gsteinSUN_PACKAGE=SUNWfontconfig
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gsteinMODULE_STABILITY=Volatile
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gsteinLIB_MAN_SUFFIX=3fontconfig
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gsteinMODULE_MTLEVEL=Unknown
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwroweMODULE_MTLEVEL_set=yes
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe# Install to /usr, not /usr/X11
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwroweMODULE_PREFIX=/usr
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwroweMODULE_PREFIX_SET=yes
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe# Additional command line options to GNU autoconf configure script
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwroweMODULE_CONFIG_OPTS = \
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe --with-confdir=/etc/fonts \
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe --with-default-fonts='/usr/share/fonts' \
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe --with-add-fonts='/etc/X11/fontpath.d,/usr/share/ghostscript/fonts' \
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe --with-freetype-config=$(PROTODIR)/usr/bin$(LIBSUBDIR)/freetype-config \
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe --with-cache-dir=/var/cache/fontconfig
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard# Need to use GNU Make to build
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardMODULE_MAKE=$(GNUMAKE)
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardMODULE_MAKE_SET=yes
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard# Paths to find libraries
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardMODULE_BUILD_ENV = LD_LIBRARY_PATH=$(PROTODIR)/usr/lib$(LIBSUBDIR) \
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard LD_RUN_PATH=/usr/lib$(LIBSUBDIR) $(DOC_PATH)
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard# Need to rebuild autoconf/automake files
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardAUTORECONF=yes
d57551cb28450661e77394ec332cf25b0f63aae1trawick
c3a2c6ae9a1c7f37d672a54c2c9a1b4f7941085btrawick# Path to install fc-cache manifest & method script
c3a2c6ae9a1c7f37d672a54c2c9a1b4f7941085btrawickFONTCONFIG_SMF_MANIFEST_dir=$(PROTODIR)/var/svc/manifest/application/font
c3a2c6ae9a1c7f37d672a54c2c9a1b4f7941085btrawickFONTCONFIG_SMF_MANIFEST=$(FONTCONFIG_SMF_MANIFEST_dir)/fc-cache.xml
c3a2c6ae9a1c7f37d672a54c2c9a1b4f7941085btrawickFONTCONFIG_SMF_METHOD_dir=$(PROTODIR)/lib/svc/method
d57551cb28450661e77394ec332cf25b0f63aae1trawickFONTCONFIG_SMF_METHOD=$(FONTCONFIG_SMF_METHOD_dir)/fc-cache
c3a2c6ae9a1c7f37d672a54c2c9a1b4f7941085btrawick
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Sun specification configuration files to be installed in /etc/fonts/conf.d
33a70d93b992bbb63b809c24df29451f38f017c1rbbFONTCONFIG_CONFDIR = $(PROTODIR)/etc/fonts/conf.avail
809cf6f87f7a07b348f6d69961834923bc16313egsteinSUN_CONFFILES = 20-indic.conf 49-sun-preuser.conf 90-sun-prefer-bitmap.conf
46b9575c45e6e65788ec5b6362b1560737c12060jwoolleyFONTCONFIG_SUN_CONFFILES = $(SUN_CONFFILES:%=$(FONTCONFIG_CONFDIR)/%)
ca21f4d2622a817d3cb3204210afb6c586d5d7acrbb
af9f2bd7837c251df865825e03ad192e5c6aee18jim# Additional targets to install beyond the default_install
ca21f4d2622a817d3cb3204210afb6c586d5d7acrbbMODULE_ADD_INSTALL_TARGETS = fontconfig-sunman-install \
809cf6f87f7a07b348f6d69961834923bc16313egstein $(FONTCONFIG_SMF_MANIFEST) $(FONTCONFIG_SMF_METHOD) \
809cf6f87f7a07b348f6d69961834923bc16313egstein $(FONTCONFIG_SUN_CONFFILES)
809cf6f87f7a07b348f6d69961834923bc16313egstein
410912d9cb56a09a74f8655647ed9e81d49023f4gregames# Include common rulesets
410912d9cb56a09a74f8655647ed9e81d49023f4gregamesinclude ../Makefile.inc
410912d9cb56a09a74f8655647ed9e81d49023f4gregames
410912d9cb56a09a74f8655647ed9e81d49023f4gregames$(FONTCONFIG_SMF_MANIFEST): fc-cache.xml
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe /usr/sbin/svccfg validate fc-cache.xml
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe mkdir -p $(FONTCONFIG_SMF_MANIFEST_dir)
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe $(INSTALL_SCRIPT) -c -m 0444 fc-cache.xml $@
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe$(FONTCONFIG_SMF_METHOD): fc-cache.sh
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe mkdir -p $(FONTCONFIG_SMF_METHOD_dir)
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe $(INSTALL_SCRIPT) -c -m 0755 fc-cache.sh $@
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe$(FONTCONFIG_SUN_CONFFILES): $(SUN_CONFFILES)
7239216999e746bb4fc7671621becea33c5c1c87stoddard mkdir -p $(PROTODIR)/etc/fonts/conf.d $(PROTODIR)/etc/fonts/conf.avail
d180ec1b29106f4fec480ef7fcdb04df078010cerse @f=`basename $@` ; $(START_CMD_ECHO) ; \
d180ec1b29106f4fec480ef7fcdb04df078010cerse cp -fp $$f $@ ; \
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley rm -f $(PROTODIR)/etc/fonts/conf.d/$$f ; \
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley ln -s ../conf.avail/$$f $(PROTODIR)/etc/fonts/conf.d/$$f
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolleyFC_MAN_DIR=$(PROTODIR)/usr/share/man
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolleyfontconfig-sunman-install: default_install
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley mkdir -p $(FC_MAN_DIR)/man4 $(FC_MAN_DIR)/man3lib
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley sed -e 's/.TH "FONTS-CONF" "5"/.TH "fonts.conf" "4"/' \
d180ec1b29106f4fec480ef7fcdb04df078010cerse -e 's/SUNWfontconfig/SUNWfontconfig-root/' \
e32adabcbf3bf5b69ba2e8b163b971839efc94dbtrawick $(FC_MAN_DIR)/man5/fonts-conf.5 > $(FC_MAN_DIR)/man4/fonts.conf.4
e32adabcbf3bf5b69ba2e8b163b971839efc94dbtrawick -rm -f $(FC_MAN_DIR)/man3lib/libfontconfig.3lib
e32adabcbf3bf5b69ba2e8b163b971839efc94dbtrawick perl -p -e 's/^$$/.LP/;' -e 's/\251/\\(co/;' \
bebc7b9445f95339822c26bfd470349006f9ec40stoddard libfontconfig.3lib $(SOURCE_DIR)/COPYING >> \
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard $(FC_MAN_DIR)/man3lib/libfontconfig.3lib
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard -rm -f $(FC_MAN_DIR)/man1/fc-cache.1
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard cat $(SOURCE_DIR)/fc-cache/fc-cache.1 sunman-notes-fc-cache >> \
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard $(FC_MAN_DIR)/man1/fc-cache.1
49facccad3f5c3e9e49311487b5069699c3bf3fdjwoolley
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard