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