Makefile revision 493
70N/A###############################################################################
70N/A#
286N/A# Bitstream Vera Fonts Makefile
70N/A#
70N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
70N/A# Use subject to license terms.
70N/A#
70N/A# Permission is hereby granted, free of charge, to any person obtaining a
70N/A# copy of this software and associated documentation files (the
70N/A# "Software"), to deal in the Software without restriction, including
70N/A# without limitation the rights to use, copy, modify, merge, publish,
70N/A# distribute, and/or sell copies of the Software, and to permit persons
70N/A# to whom the Software is furnished to do so, provided that the above
70N/A# copyright notice(s) and this permission notice appear in all copies of
70N/A# the Software and that both the above copyright notice(s) and this
70N/A# permission notice appear in supporting documentation.
70N/A#
70N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
70N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
70N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
70N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
70N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
70N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
70N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
70N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
70N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
70N/A#
70N/A# Except as contained in this notice, the name of a copyright holder
70N/A# shall not be used in advertising or otherwise to promote the sale, use
70N/A# or other dealings in this Software without prior written authorization
289N/A# of the copyright holder.
70N/A#
70N/A# @(#)Makefile 1.5 08/08/08
70N/A#
98N/A
213N/A# Package name used in tarballs
231N/AMODULE_NAME=ttf-bitstream-vera
98N/A
210N/A# Version number (used in path names)
128N/AMODULE_VERSION=1.10
70N/A
98N/A# Download site for source
277N/ASOURCE_URL=http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/$(MODULE_VERSION)/$(SOURCE_TARBALL_NAME)
289N/ASOURCE_URL_SET=yes
286N/A
90N/A# Patches to apply to source after unpacking, in order
70N/ASOURCE_PATCHES= # None
262N/A
277N/A# What to build
280N/ABUILD_TARGETS=$(SOURCE_DIR)/fonts.scale
70N/ABUILD_TARGETS_SET=yes
70N/A
280N/A# What to install
70N/AINSTALL_TARGETS=install_vera
70N/AINSTALL_TARGETS_SET=yes
98N/A
98N/A# Directory to install to
231N/ADEST_DIR=$(PROTODIR)$(TRUETYPE_DIR)
98N/A
156N/A# License file
156N/ALICENSE_FILE=COPYRIGHT.TXT
98N/ALICENSE_FILE_SET=yes
70N/A
70N/A### Include common rulesets
70N/Ainclude ../Makefile.inc
70N/A
70N/A### Rules specific to this directory:
70N/A
70N/AVERA_FONT_FILES= \
70N/A Vera.ttf \
70N/A VeraBI.ttf \
70N/A VeraBd.ttf \
70N/A VeraIt.ttf \
70N/A VeraMoBI.ttf \
70N/A VeraMoBd.ttf \
70N/A VeraMoIt.ttf \
70N/A VeraMono.ttf \
70N/A VeraSe.ttf \
70N/A VeraSeBd.ttf
70N/A
253N/A$(SOURCE_DIR)/fonts.scale: $(UNPACK_TARGET)
70N/A (cd $(SOURCE_DIR) && \
70N/A LD_LIBRARY_PATH=$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
$(PROTODIR)$(X11_DIR)/bin/mkfontscale . )
install_vera: $(BUILD_TARGETS)
mkdir -p $(DEST_DIR)
-( cd $(DEST_DIR) ; rm -f $(VERA_FONT_FILES) VeraFontsCopyright.txt )
( cd $(SOURCE_DIR) ; cp -p $(VERA_FONT_FILES) $(DEST_DIR) )
cp -p $(SOURCE_DIR)/COPYRIGHT.TXT $(DEST_DIR)/VeraFontsCopyright.txt
touch $(DEST_DIR)/fonts.scale
chmod +w $(DEST_DIR)/fonts.scale
../merge-fonts.scale.pl -i $(DEST_DIR)/fonts.scale \
-i $(SOURCE_DIR)/fonts.scale -o $(DEST_DIR)/fonts.scale