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