Makefile revision 851
0N/A###############################################################################
0N/A#
0N/A# Fontconfig 2.x Makefile
0N/A#
779N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
810N/A# Use is subject to license terms.
0N/A#
0N/A# Permission is hereby granted, free of charge, to any person obtaining a
0N/A# copy of this software and associated documentation files (the
0N/A# "Software"), to deal in the Software without restriction, including
0N/A# without limitation the rights to use, copy, modify, merge, publish,
0N/A# distribute, and/or sell copies of the Software, and to permit persons
0N/A# to whom the Software is furnished to do so, provided that the above
0N/A# copyright notice(s) and this permission notice appear in all copies of
0N/A# the Software and that both the above copyright notice(s) and this
0N/A# permission notice appear in supporting documentation.
0N/A#
0N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
0N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
0N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
0N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
0N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
0N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
0N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
0N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0N/A#
0N/A# Except as contained in this notice, the name of a copyright holder
0N/A# shall not be used in advertising or otherwise to promote the sale, use
0N/A# or other dealings in this Software without prior written authorization
0N/A# of the copyright holder.
0N/A#
848N/A# ident "@(#)Makefile 1.88 09/12/01 SMI"
0N/A#
0N/A
156N/A# Package name used in tarballs
493N/AMODULE_NAME=fontconfig
0N/A
0N/A# Version number (used in path names)
818N/AMODULE_VERSION=2.7.3
0N/A
0N/A# Source tarball
493N/ASOURCE_TARBALL_NAME=fontconfig-$(MODULE_VERSION).tar.gz
493N/ASOURCE_TARBALL_NAME_SET=yes
156N/ASOURCE_UNCOMPRESS=gzcat
0N/A
0N/A# Download site for source
156N/ASOURCE_URL=http://fontconfig.org/release/$(SOURCE_TARBALL_NAME)
156N/ASOURCE_URL_SET=yes
0N/A
0N/A# Patches to apply to source after unpacking, in order
818N/ASOURCE_PATCHES=fontconfig-$(MODULE_VERSION)-fonts.conf.patch,-p1 \
818N/A Makefile.am.0.patch,-p1 \
779N/A 6770058.patch,-p1
364N/A
156N/A# Library name (used for specfiles/mapfiles)
156N/ALIBNAME=fontconfig
0N/A
591N/A# Man pages to apply Sun footer to & attributes to list
591N/ASUNTOUCHED_MANPAGES=*/*.1 doc/*.3 doc/*.5
591N/ASUN_PACKAGE=SUNWfontconfig
591N/AMODULE_STABILITY=Volatile
591N/ALIB_MAN_SUFFIX=3fontconfig
591N/AMODULE_MTLEVEL=Unknown
591N/AMODULE_MTLEVEL_set=yes
0N/A
156N/A# Install to /usr, not /usr/X11
493N/AMODULE_PREFIX=/usr
493N/AMODULE_PREFIX_SET=yes
156N/A
493N/A# Additional command line options to GNU autoconf configure script
493N/AMODULE_CONFIG_OPTS = \
837N/A --with-confdir=/etc/fonts \
837N/A --with-default-fonts='/usr/share/fonts' \
846N/A --with-add-fonts='/etc/X11/fontpath.d,/usr/share/ghostscript/fonts,/usr/X11/lib/X11/fonts' \
493N/A --with-freetype-config=$(PROTODIR)/usr/bin$(LIBSUBDIR)/freetype-config \
493N/A --with-cache-dir=/var/cache/fontconfig
156N/A
493N/A# Need to use GNU Make to build
493N/AMODULE_MAKE=$(GNUMAKE)
493N/AMODULE_MAKE_SET=yes
364N/A
0N/A# Paths to find libraries
493N/AMODULE_BUILD_ENV = LD_LIBRARY_PATH=$(PROTODIR)/usr/lib$(LIBSUBDIR) \
493N/A LD_RUN_PATH=/usr/lib$(LIBSUBDIR) $(DOC_PATH)
156N/A
493N/A# Need to rebuild autoconf/automake files
493N/AAUTORECONF=yes
0N/A
339N/A# Path to install fc-cache manifest & method script
0N/AFONTCONFIG_SMF_MANIFEST_dir=$(PROTODIR)/var/svc/manifest/application/font
0N/AFONTCONFIG_SMF_MANIFEST=$(FONTCONFIG_SMF_MANIFEST_dir)/fc-cache.xml
339N/AFONTCONFIG_SMF_METHOD_dir=$(PROTODIR)/lib/svc/method
339N/AFONTCONFIG_SMF_METHOD=$(FONTCONFIG_SMF_METHOD_dir)/fc-cache
0N/A
837N/A# Sun specification configuration files to be installed in /etc/fonts/conf.d
837N/AFONTCONFIG_CONFDIR = $(PROTODIR)/etc/fonts/conf.avail
838N/ASUN_CONFFILES = 20-indic.conf 49-sun-preuser.conf 90-sun-prefer-bitmap.conf
837N/AFONTCONFIG_SUN_CONFFILES = $(SUN_CONFFILES:%=$(FONTCONFIG_CONFDIR)/%)
837N/A
591N/A# Additional targets to install beyond the default_install
591N/AMODULE_ADD_INSTALL_TARGETS = fontconfig-sunman-install \
779N/A $(FONTCONFIG_SMF_MANIFEST) $(FONTCONFIG_SMF_METHOD) \
838N/A $(FONTCONFIG_SUN_CONFFILES)
591N/A
493N/A# Include common rulesets
493N/Ainclude ../Makefile.inc
0N/A
0N/A$(FONTCONFIG_SMF_MANIFEST): fc-cache.xml
0N/A /usr/sbin/svccfg validate fc-cache.xml
0N/A mkdir -p $(FONTCONFIG_SMF_MANIFEST_dir)
591N/A $(INSTALL_SCRIPT) -c -m 0444 fc-cache.xml $@
0N/A
339N/A$(FONTCONFIG_SMF_METHOD): fc-cache.sh
339N/A mkdir -p $(FONTCONFIG_SMF_METHOD_dir)
591N/A $(INSTALL_SCRIPT) -c -m 0755 fc-cache.sh $@
493N/A
837N/A$(FONTCONFIG_SUN_CONFFILES): $(SUN_CONFFILES)
837N/A mkdir -p $(PROTODIR)/etc/fonts/conf.d $(PROTODIR)/etc/fonts/conf.avail
837N/A @f=`basename $@` ; $(START_CMD_ECHO) ; \
837N/A cp -fp $$f $@ ; \
837N/A rm -f $(PROTODIR)/etc/fonts/conf.d/$$f ; \
848N/A ln -sf ../conf.avail/$$f $(PROTODIR)/etc/fonts/conf.d/$$f
779N/A
156N/AFC_MAN_DIR=$(PROTODIR)/usr/share/man
156N/A
810N/Afontconfig-sunman-install: default_install
591N/A mkdir -p $(FC_MAN_DIR)/man4 $(FC_MAN_DIR)/man3lib
591N/A sed -e 's/.TH "FONTS-CONF" "5"/.TH "fonts.conf" "4"/' \
591N/A -e 's/SUNWfontconfig/SUNWfontconfig-root/' \
591N/A $(FC_MAN_DIR)/man5/fonts-conf.5 > $(FC_MAN_DIR)/man4/fonts.conf.4
591N/A -rm -f $(FC_MAN_DIR)/man3lib/libfontconfig.3lib
848N/A perl -p -e 's/^$$/.LP/;' -e 's/.?\251/\\(co/;' \
591N/A libfontconfig.3lib $(SOURCE_DIR)/COPYING >> \
591N/A $(FC_MAN_DIR)/man3lib/libfontconfig.3lib
591N/A -rm -f $(FC_MAN_DIR)/man1/fc-cache.1
591N/A cat $(SOURCE_DIR)/fc-cache/fc-cache.1 sunman-notes-fc-cache >> \
591N/A $(FC_MAN_DIR)/man1/fc-cache.1
0N/A
0N/A