Makefile revision 651
372N/A###############################################################################
372N/A#
372N/A# Liberation Fonts Makefile
372N/A#
651N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
372N/A# Use subject to license terms.
372N/A#
372N/A# Permission is hereby granted, free of charge, to any person obtaining a
372N/A# copy of this software and associated documentation files (the
372N/A# "Software"), to deal in the Software without restriction, including
372N/A# without limitation the rights to use, copy, modify, merge, publish,
372N/A# distribute, and/or sell copies of the Software, and to permit persons
372N/A# to whom the Software is furnished to do so, provided that the above
372N/A# copyright notice(s) and this permission notice appear in all copies of
372N/A# the Software and that both the above copyright notice(s) and this
372N/A# permission notice appear in supporting documentation.
372N/A#
372N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
372N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
372N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
372N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
372N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
372N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
372N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
372N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
372N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
372N/A#
372N/A# Except as contained in this notice, the name of a copyright holder
372N/A# shall not be used in advertising or otherwise to promote the sale, use
372N/A# or other dealings in this Software without prior written authorization
372N/A# of the copyright holder.
372N/A#
651N/A# @(#)Makefile 1.6 09/02/26 SMI
372N/A#
372N/A
493N/A# Package name used in tarballs
493N/AMODULE_NAME=liberation-fonts
372N/A
372N/A# Version number (used in path names)
541N/AMODULE_VERSION=1.04
372N/A
372N/A# Source tarball
493N/ASOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
493N/ASOURCE_TARBALL_NAME_SET=yes
372N/A
372N/A# Download site for source
460N/ASOURCE_URL=http://fedorahosted.org/releases/l/i/liberation-fonts/$(SOURCE_TARBALL_NAME)
372N/ASOURCE_URL_SET=yes
372N/ASOURCE_UNCOMPRESS=gzcat
372N/A
372N/A# Patches to apply to source after unpacking, in order
372N/ASOURCE_PATCHES= # None
372N/A
372N/A# What to build
372N/ABUILD_TARGETS=$(SOURCE_DIR)/fonts.scale
493N/ABUILD_TARGETS_SET=yes
493N/A
493N/A# What to install
651N/AINSTALL_TARGETS=install_liberation
493N/AINSTALL_TARGETS_SET=yes
372N/A
372N/A# License file
372N/ALICENSE_FILE=License.txt
372N/ALICENSE_FILE_SET=yes
372N/A
372N/A### Include common rulesets
493N/Ainclude ../Makefile.inc
372N/A
372N/A### Rules specific to this directory:
372N/A
372N/ALIBERATION_FONT_FILES= \
372N/A LiberationMono-Bold.ttf \
372N/A LiberationMono-BoldItalic.ttf \
372N/A LiberationMono-Italic.ttf \
372N/A LiberationMono-Regular.ttf \
372N/A LiberationSans-Bold.ttf \
372N/A LiberationSans-BoldItalic.ttf \
372N/A LiberationSans-Italic.ttf \
372N/A LiberationSans-Regular.ttf \
372N/A LiberationSerif-Bold.ttf \
372N/A LiberationSerif-BoldItalic.ttf \
372N/A LiberationSerif-Italic.ttf \
372N/A LiberationSerif-Regular.ttf
372N/A
372N/A$(SOURCE_DIR)/fonts.scale: $(UNPACK_TARGET)
561N/A (cd $(SOURCE_DIR) && $(MKFONTSCALE) . )
372N/A
651N/AFONT_DEST_DIR=$(PROTODIR)$(X11_TRUETYPE_DIR)
651N/A
493N/Ainstall_liberation:: $(BUILD_TARGETS)
372N/A mkdir -p $(FONT_DEST_DIR)
372N/A -( cd $(FONT_DEST_DIR) ; rm -f $(LIBERATION_FONT_FILES) )
372N/A ( cd $(SOURCE_DIR)/ ; cp -p $(LIBERATION_FONT_FILES) $(FONT_DEST_DIR) )
372N/A touch $(FONT_DEST_DIR)/fonts.scale
372N/A chmod +w $(FONT_DEST_DIR)/fonts.scale
372N/A ../merge-fonts.scale.pl -i $(FONT_DEST_DIR)/fonts.scale \
372N/A -i $(SOURCE_DIR)/fonts.scale -o $(FONT_DEST_DIR)/fonts.scale
651N/A (cd $(FONT_DEST_DIR) && $(MKFONTDIR) . )