Makefile revision 551
0N/A###############################################################################
0N/A#
0N/A# Liberation Fonts Makefile
0N/A#
407N/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
1124N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
1185N/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,
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#
154N/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
1185N/A# or other dealings in this Software without prior written authorization
159N/A# of the copyright holder.
154N/A#
292N/A# @(#)Makefile 1.4 08/09/18 SMI
292N/A#
159N/A
154N/A# Package name used in tarballs
154N/AMODULE_NAME=liberation-fonts
1124N/A
1185N/A# Version number (used in path names)
434N/AMODULE_VERSION=1.04
1219N/A
1185N/A# Source tarball
1185N/ASOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
1185N/ASOURCE_TARBALL_NAME_SET=yes
434N/A
259N/A# Download site for source
89N/ASOURCE_URL=http://fedorahosted.org/releases/l/i/liberation-fonts/$(SOURCE_TARBALL_NAME)
1124N/ASOURCE_URL_SET=yes
1124N/ASOURCE_UNCOMPRESS=gzcat
1195N/A
0N/A# Patches to apply to source after unpacking, in order
0N/ASOURCE_PATCHES= # None
1185N/A
0N/A# What to build
456N/ABUILD_TARGETS=$(SOURCE_DIR)/fonts.scale
1185N/ABUILD_TARGETS_SET=yes
1185N/A
1185N/A# What to install
1185N/AINSTALL_TARGETS=install_liberation
92N/AINSTALL_TARGETS_SET=yes
92N/A
1190N/A# Directory to install to
1185N/AFONT_DEST_DIR=$(PROTODIR)$(TRUETYPE_DIR)
1185N/AFONTCONF_DEST_DIR=$(PROTODIR)/etc/fonts
92N/A
92N/A# License file
345N/ALICENSE_FILE=License.txt
0N/ALICENSE_FILE_SET=yes
345N/A
0N/A### Include common rulesets
0N/Ainclude ../Makefile.inc
92N/A
92N/A### Rules specific to this directory:
1185N/A
1185N/ALIBERATION_FONT_FILES= \
1190N/A LiberationMono-Bold.ttf \
1185N/A LiberationMono-BoldItalic.ttf \
1185N/A LiberationMono-Italic.ttf \
92N/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
1190N/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
1185N/Ainstall_liberation:: $(BUILD_TARGETS)
1205N/A mkdir -p $(FONT_DEST_DIR)
1185N/A -( cd $(FONT_DEST_DIR) ; rm -f $(LIBERATION_FONT_FILES) )
1205N/A ( cd $(SOURCE_DIR)/ ; cp -p $(LIBERATION_FONT_FILES) $(FONT_DEST_DIR) )
1185N/A touch $(FONT_DEST_DIR)/fonts.scale
1205N/A chmod +w $(FONT_DEST_DIR)/fonts.scale
1185N/A ../merge-fonts.scale.pl -i $(FONT_DEST_DIR)/fonts.scale \
0N/A -i $(SOURCE_DIR)/fonts.scale -o $(FONT_DEST_DIR)/fonts.scale
0N/A