Makefile revision 372
893N/A###############################################################################
893N/A#
893N/A# Liberation Fonts Makefile
893N/A#
893N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
893N/A# Use subject to license terms.
893N/A#
893N/A# Permission is hereby granted, free of charge, to any person obtaining a
893N/A# copy of this software and associated documentation files (the
893N/A# "Software"), to deal in the Software without restriction, including
893N/A# without limitation the rights to use, copy, modify, merge, publish,
893N/A# distribute, and/or sell copies of the Software, and to permit persons
893N/A# to whom the Software is furnished to do so, provided that the above
893N/A# copyright notice(s) and this permission notice appear in all copies of
893N/A# the Software and that both the above copyright notice(s) and this
893N/A# permission notice appear in supporting documentation.
893N/A#
893N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
893N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
893N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
893N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
893N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
893N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
893N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1319N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
893N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
893N/A#
893N/A# Except as contained in this notice, the name of a copyright holder
893N/A# shall not be used in advertising or otherwise to promote the sale, use
893N/A# or other dealings in this Software without prior written authorization
893N/A# of the copyright holder.
893N/A#
893N/A# @(#)Makefile 1.1 08/03/19 SMI
893N/A#
893N/A
893N/APWD:sh=pwd
893N/ATOP=$(PWD)/../..
893N/A
893N/A# Version number (used in path names)
893N/ASOURCE_VERSION=3
893N/AVERSION=0.2
1319N/A
1319N/A# Source tarball
1319N/ASOURCE_TARBALL_NAME=liberation-fonts-ttf-$(SOURCE_VERSION).tar.gz
1319N/A
1319N/A# Download site for source
1319N/ASOURCE_URL=http://www.redhat.com/f/fonts/$(SOURCE_TARBALL_NAME)
1319N/ASOURCE_URL_SET=yes
1319N/ASOURCE_UNCOMPRESS=gzcat
1319N/A
1319N/A# Patches to apply to source after unpacking, in order
1319N/ASOURCE_PATCHES= # None
1319N/A
1319N/A# Directory created by unpacking source
1319N/ASOURCE_DIR=$(BUILD_DIR)/liberation-fonts-$(VERSION)
1319N/A
1319N/A# What to build
1319N/ABUILD_TARGETS=$(SOURCE_DIR)/fonts.scale
1319N/A
1319N/A# Directory to install to
1319N/AFONT_DEST_DIR=$(PROTODIR)$(TRUETYPE_DIR)
1319N/AFONTCONF_DEST_DIR=$(PROTODIR)/etc/fonts
1319N/A
1319N/A# License file
1319N/ALICENSE_FILE=License.txt
1319N/ALICENSE_FILE_SET=yes
1319N/A
1319N/A### Include common rulesets
1319N/Ainclude $(TOP)/common/Makefile.inc
1319N/A
1319N/A### Rules specific to this directory:
1319N/A
1319N/ALIBERATION_FONT_FILES= \
1319N/A LiberationMono-Bold.ttf \
1319N/A LiberationMono-BoldItalic.ttf \
1319N/A LiberationMono-Italic.ttf \
1319N/A LiberationMono-Regular.ttf \
1319N/A LiberationSans-Bold.ttf \
893N/A LiberationSans-BoldItalic.ttf \
893N/A LiberationSans-Italic.ttf \
893N/A LiberationSans-Regular.ttf \
893N/A LiberationSerif-Bold.ttf \
893N/A LiberationSerif-BoldItalic.ttf \
893N/A LiberationSerif-Italic.ttf \
893N/A LiberationSerif-Regular.ttf
893N/A
893N/Abuild_gen: $(BUILD_TARGETS)
893N/A
893N/A$(SOURCE_DIR)/fonts.scale: $(UNPACK_TARGET)
893N/A (cd $(SOURCE_DIR) && \
893N/A LD_LIBRARY_PATH=$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
893N/A $(PROTODIR)$(X11_DIR)/bin/mkfontscale . )
893N/A
893N/Ainstall_gen:: $(BUILD_TARGETS)
893N/A mkdir -p $(FONT_DEST_DIR)
893N/A -( cd $(FONT_DEST_DIR) ; rm -f $(LIBERATION_FONT_FILES) )
893N/A ( cd $(SOURCE_DIR)/ ; cp -p $(LIBERATION_FONT_FILES) $(FONT_DEST_DIR) )
893N/A touch $(FONT_DEST_DIR)/fonts.scale
893N/A chmod +w $(FONT_DEST_DIR)/fonts.scale
893N/A ../merge-fonts.scale.pl -i $(FONT_DEST_DIR)/fonts.scale \
893N/A -i $(SOURCE_DIR)/fonts.scale -o $(FONT_DEST_DIR)/fonts.scale
893N/A