Makefile revision 501
1281N/A###############################################################################
1186N/A#
1186N/A# Liberation Fonts Makefile
0N/A#
0N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
0N/A# Use subject to license terms.
1281N/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
0N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
0N/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
1186N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1186N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1186N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1186N/A#
1186N/A# Except as contained in this notice, the name of a copyright holder
1186N/A# shall not be used in advertising or otherwise to promote the sale, use
1186N/A# or other dealings in this Software without prior written authorization
1186N/A# of the copyright holder.
1186N/A#
1186N/A# @(#)Makefile 1.3 08/08/08 SMI
1186N/A#
1186N/A
1186N/A# Package name used in tarballs
1186N/AMODULE_NAME=liberation-fonts
1186N/A
1186N/A# Version number (used in path names)
0N/AMODULE_VERSION=1.03
1186N/A
1186N/A# Source tarball
1186N/ASOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
1281N/ASOURCE_TARBALL_NAME_SET=yes
1281N/A
1281N/A# Download site for source
1281N/ASOURCE_URL=http://fedorahosted.org/releases/l/i/liberation-fonts/$(SOURCE_TARBALL_NAME)
1281N/ASOURCE_URL_SET=yes
1281N/ASOURCE_UNCOMPRESS=gzcat
1281N/A
1281N/A# Patches to apply to source after unpacking, in order
1281N/ASOURCE_PATCHES= # None
1281N/A
1470N/A# What to build
1281N/ABUILD_TARGETS=$(SOURCE_DIR)/fonts.scale
1281N/ABUILD_TARGETS_SET=yes
1281N/A
0N/A# What to install
1281N/AINSTALL_TARGETS=install_liberation
1281N/AINSTALL_TARGETS_SET=yes
0N/A
0N/A# Directory to install to
1281N/AFONT_DEST_DIR=$(PROTODIR)$(TRUETYPE_DIR)
1281N/AFONTCONF_DEST_DIR=$(PROTODIR)/etc/fonts
1281N/A
1469N/A# License file
1281N/ALICENSE_FILE=License.txt
1281N/ALICENSE_FILE_SET=yes
1281N/A
1281N/A### Include common rulesets
1281N/Ainclude ../Makefile.inc
1281N/A
1281N/A### Rules specific to this directory:
1281N/A
1281N/ALIBERATION_FONT_FILES= \
1281N/A LiberationMono-Bold.ttf \
1281N/A LiberationMono-BoldItalic.ttf \
1281N/A LiberationMono-Italic.ttf \
1281N/A LiberationMono-Regular.ttf \
1281N/A LiberationSans-Bold.ttf \
1281N/A LiberationSans-BoldItalic.ttf \
1281N/A LiberationSans-Italic.ttf \
1281N/A LiberationSans-Regular.ttf \
1281N/A LiberationSerif-Bold.ttf \
1281N/A LiberationSerif-BoldItalic.ttf \
1281N/A LiberationSerif-Italic.ttf \
1281N/A LiberationSerif-Regular.ttf
1281N/A
1281N/A$(SOURCE_DIR)/fonts.scale: $(UNPACK_TARGET)
1281N/A (cd $(SOURCE_DIR) && \
1281N/A LD_LIBRARY_PATH=$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
1281N/A $(PROTODIR)$(X11_DIR)/bin/mkfontscale . )
1281N/A
1281N/Ainstall_liberation:: $(BUILD_TARGETS)
1281N/A mkdir -p $(FONT_DEST_DIR)
1281N/A -( cd $(FONT_DEST_DIR) ; rm -f $(LIBERATION_FONT_FILES) )
1281N/A ( cd $(SOURCE_DIR)/ ; cp -p $(LIBERATION_FONT_FILES) $(FONT_DEST_DIR) )
1281N/A touch $(FONT_DEST_DIR)/fonts.scale
1281N/A chmod +w $(FONT_DEST_DIR)/fonts.scale
1281N/A ../merge-fonts.scale.pl -i $(FONT_DEST_DIR)/fonts.scale \
1281N/A -i $(SOURCE_DIR)/fonts.scale -o $(FONT_DEST_DIR)/fonts.scale
1281N/A