Makefile revision 705
0N/A###############################################################################
0N/A#
0N/A# Fontconfig 2.x Makefile
0N/A#
314N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
0N/A# Use 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#
682N/A# @(#)Makefile 1.80 09/04/06
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)
493N/AMODULE_VERSION=2.5.0
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
493N/ASOURCE_PATCHES=fontconfig-$(MODULE_VERSION).patch,-p1 \
493N/A fontconfig-$(MODULE_VERSION).patch.hide,-p1 \
493N/A fontconfig-$(MODULE_VERSION)-fonts.conf.patch \
645N/A 6729284.patch,-p1 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 = \
156N/A --with-confdir=/etc/fonts --with-default-fonts='--font-dirs-go-here--' \
682N/A --with-add-fonts=no \
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
364N/A# What to build
591N/AMODULE_ADD_BUILD_TARGETS = $(SOURCE_DIR)/fonts.conf-SUNW
0N/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
591N/A# Additional targets to install beyond the default_install
591N/AMODULE_ADD_INSTALL_TARGETS = fontconfig-sunman-install \
591N/A $(FONTCONFIG_SMF_MANIFEST) $(FONTCONFIG_SMF_METHOD)
591N/A
493N/A# Include common rulesets
493N/Ainclude ../Makefile.inc
0N/A
364N/A$(SOURCE_DIR)/fonts.conf-SUNW: $(SOURCE_DIR)/fonts.conf fonts.conf.append fix-fonts.conf.pl
0N/A perl fix-fonts.conf.pl < $(SOURCE_DIR)/fonts.conf > $(SOURCE_DIR)/fonts.conf-SUNW
0N/A
493N/A$(SOURCE_DIR)/fonts.conf: $(UNPACK_TARGET) $(CONFIGURE_TARGETS)
0N/A
591N/Ainstall_gen:: $(SOURCE_DIR)/fonts.conf-SUNW
0N/A rm $(PROTODIR)/etc/fonts/fonts.conf
0N/A cp $(SOURCE_DIR)/fonts.conf-SUNW $(PROTODIR)/etc/fonts/fonts.conf
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
156N/AFC_MAN_DIR=$(PROTODIR)/usr/share/man
156N/A
156N/Afontconfig-sunman-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
591N/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