Makefile revision 919
10139N/A###############################################################################
10139N/A#
10139N/A# Fontconfig 2.x Makefile
10139N/A#
10139N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
16307N/A# Use is subject to license terms.
10139N/A#
10139N/A# Permission is hereby granted, free of charge, to any person obtaining a
10139N/A# copy of this software and associated documentation files (the "Software"),
17823N/A# to deal in the Software without restriction, including without limitation
10139N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
10139N/A# and/or sell copies of the Software, and to permit persons to whom the
10139N/A# Software is furnished to do so, subject to the following conditions:
10139N/A#
10139N/A# The above copyright notice and this permission notice (including the next
10139N/A# paragraph) shall be included in all copies or substantial portions of the
18688N/A# Software.
18688N/A#
10139N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19013N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
10139N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
10139N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
12856N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19140N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
10139N/A# DEALINGS IN THE SOFTWARE.
10139N/A#
19142N/A#
16401N/A
10139N/A# Package name used in tarballs
16401N/AMODULE_NAME=fontconfig
10139N/A
11379N/A# Version number (used in path names)
16307N/AMODULE_VERSION=2.7.3
13384N/A
10139N/A# Checksums for upstream tarball
12032N/ATARBALL_MD5 = 747d2c691c66b563c8e8c1784ce8d014
12032N/ATARBALL_SHA1 = bc84b883673a7f43f2849f06ec110c4eaccfb42c
12032N/A
12032N/A# Source tarball
19142N/ASOURCE_TARBALL_NAME=fontconfig-$(MODULE_VERSION).tar.gz
12032N/ASOURCE_TARBALL_NAME_SET=yes
10139N/ASOURCE_UNCOMPRESS=gzcat
10139N/A
10139N/A# Download site for source
10139N/ASOURCE_URL=http://fontconfig.org/release/$(SOURCE_TARBALL_NAME)
19142N/ASOURCE_URL_SET=yes
10139N/A
10139N/A# Patches to apply to source after unpacking, in order
10139N/ASOURCE_PATCHES=fontconfig-$(MODULE_VERSION)-fonts.conf.patch,-p1 \
10139N/A Makefile.am.0.patch,-p1 \
10139N/A 6770058.patch,-p1
10139N/A
19126N/A# Library name (used for specfiles/mapfiles)
10139N/ALIBNAME=fontconfig
19126N/A
10139N/A# Man pages to apply Sun footer to & attributes to list
19142N/ASUNTOUCHED_MANPAGES=*/*.1 doc/*.3 doc/*.5
10139N/ASUN_PACKAGE=SUNWfontconfig
10139N/AMODULE_STABILITY=Volatile
10139N/ALIB_MAN_SUFFIX=3fontconfig
10139N/AMODULE_MTLEVEL=Unknown
10139N/AMODULE_MTLEVEL_set=yes
10139N/A
10139N/A# Install to /usr, not /usr/X11
10139N/AMODULE_PREFIX=/usr
10139N/AMODULE_PREFIX_SET=yes
10139N/A
10139N/A# Additional command line options to GNU autoconf configure script
10139N/AMODULE_CONFIG_OPTS = \
10139N/A --with-confdir=/etc/fonts \
10139N/A --with-default-fonts='/usr/share/fonts' \
10139N/A --with-add-fonts='/etc/X11/fontpath.d,/usr/share/ghostscript/fonts,/usr/X11/lib/X11/fonts' \
13423N/A --with-freetype-config=$(PROTODIR)/usr/bin$(LIBSUBDIR)/freetype-config \
10139N/A --with-cache-dir=/var/cache/fontconfig
10139N/A
10139N/A# Need to use GNU Make to build
10139N/AMODULE_MAKE=$(GNUMAKE)
10139N/AMODULE_MAKE_SET=yes
10139N/A
10139N/A# Paths to find libraries
10139N/AMODULE_BUILD_ENV = LD_LIBRARY_PATH=$(PROTODIR)/usr/lib$(LIBSUBDIR) \
10139N/A LD_RUN_PATH=/usr/lib$(LIBSUBDIR) $(DOC_PATH)
10139N/A
10139N/A# Need to rebuild autoconf/automake files
10139N/AAUTORECONF=yes
10139N/A
10139N/A# Path to install fc-cache manifest & method script
10139N/AFONTCONFIG_SMF_MANIFEST_dir=$(PROTODIR)/var/svc/manifest/application/font
10139N/AFONTCONFIG_SMF_MANIFEST=$(FONTCONFIG_SMF_MANIFEST_dir)/fc-cache.xml
10139N/AFONTCONFIG_SMF_METHOD_dir=$(PROTODIR)/lib/svc/method
10139N/AFONTCONFIG_SMF_METHOD=$(FONTCONFIG_SMF_METHOD_dir)/fc-cache
10139N/A
10139N/A# Sun specification configuration files to be installed in /etc/fonts/conf.d
10139N/AFONTCONFIG_CONFDIR = $(PROTODIR)/etc/fonts/conf.avail
10139N/ASUN_CONFFILES = 20-indic.conf 49-sun-preuser.conf 90-sun-prefer-bitmap.conf
10139N/AFONTCONFIG_SUN_CONFFILES = $(SUN_CONFFILES:%=$(FONTCONFIG_CONFDIR)/%)
10139N/A
10139N/A# Additional targets to install beyond the default_install
10139N/AMODULE_ADD_INSTALL_TARGETS = fontconfig-sunman-install \
16307N/A $(FONTCONFIG_SMF_MANIFEST) $(FONTCONFIG_SMF_METHOD) \
10139N/A $(FONTCONFIG_SUN_CONFFILES)
10139N/A
16307N/A# Include common rulesets
12032N/Ainclude ../Makefile.inc
10139N/A
10139N/A$(FONTCONFIG_SMF_MANIFEST): fc-cache.xml
10139N/A /usr/sbin/svccfg validate fc-cache.xml
10139N/A mkdir -p $(FONTCONFIG_SMF_MANIFEST_dir)
10139N/A $(INSTALL_SCRIPT) -c -m 0444 fc-cache.xml $@
10139N/A
10139N/A$(FONTCONFIG_SMF_METHOD): fc-cache.sh
10139N/A mkdir -p $(FONTCONFIG_SMF_METHOD_dir)
10139N/A $(INSTALL_SCRIPT) -c -m 0755 fc-cache.sh $@
10139N/A
10139N/A$(FONTCONFIG_SUN_CONFFILES): $(SUN_CONFFILES)
10139N/A mkdir -p $(PROTODIR)/etc/fonts/conf.d $(PROTODIR)/etc/fonts/conf.avail
10139N/A @f=`basename $@` ; $(START_CMD_ECHO) ; \
10139N/A cp -fp $$f $@ ; \
10139N/A rm -f $(PROTODIR)/etc/fonts/conf.d/$$f ; \
17401N/A ln -sf ../conf.avail/$$f $(PROTODIR)/etc/fonts/conf.d/$$f
17401N/A
17401N/AFC_MAN_DIR=$(PROTODIR)/usr/share/man
17401N/A
17156N/Afontconfig-sunman-install: default_install
10139N/A mkdir -p $(FC_MAN_DIR)/man4 $(FC_MAN_DIR)/man3lib
12032N/A sed -e 's/.TH "FONTS-CONF" "5"/.TH "fonts.conf" "4"/' \
12032N/A -e 's/SUNWfontconfig/SUNWfontconfig-root/' \
12032N/A $(FC_MAN_DIR)/man5/fonts-conf.5 > $(FC_MAN_DIR)/man4/fonts.conf.4
12032N/A -rm -f $(FC_MAN_DIR)/man3lib/libfontconfig.3lib
12032N/A perl -p -e 's/^$$/.LP/;' -e 's/.?\251/\\(co/;' \
10139N/A libfontconfig.3lib $(SOURCE_DIR)/COPYING >> \
10139N/A $(FC_MAN_DIR)/man3lib/libfontconfig.3lib
10139N/A -rm -f $(FC_MAN_DIR)/man1/fc-cache.1
10139N/A cat $(SOURCE_DIR)/fc-cache/fc-cache.1 sunman-notes-fc-cache >> \
10139N/A $(FC_MAN_DIR)/man1/fc-cache.1
10139N/A
10139N/A
10139N/A