Makefile revision 493
0N/A###############################################################################
0N/A#
0N/A# Bitstream Vera Fonts Makefile
0N/A#
493N/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
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
0N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
0N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
0N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0N/A#
0N/A# Except as contained in this notice, the name of a copyright holder
0N/A# shall not be used in advertising or otherwise to promote the sale, use
0N/A# or other dealings in this Software without prior written authorization
0N/A# of the copyright holder.
0N/A#
493N/A# @(#)Makefile 1.5 08/08/08
0N/A#
0N/A
493N/A# Package name used in tarballs
493N/AMODULE_NAME=ttf-bitstream-vera
0N/A
0N/A# Version number (used in path names)
493N/AMODULE_VERSION=1.10
0N/A
0N/A# Download site for source
493N/ASOURCE_URL=http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/$(MODULE_VERSION)/$(SOURCE_TARBALL_NAME)
156N/ASOURCE_URL_SET=yes
0N/A
0N/A# Patches to apply to source after unpacking, in order
0N/ASOURCE_PATCHES= # None
0N/A
222N/A# What to build
222N/ABUILD_TARGETS=$(SOURCE_DIR)/fonts.scale
493N/ABUILD_TARGETS_SET=yes
493N/A
493N/A# What to install
493N/AINSTALL_TARGETS=install_vera
493N/AINSTALL_TARGETS_SET=yes
0N/A
0N/A# Directory to install to
0N/ADEST_DIR=$(PROTODIR)$(TRUETYPE_DIR)
0N/A
355N/A# License file
355N/ALICENSE_FILE=COPYRIGHT.TXT
355N/ALICENSE_FILE_SET=yes
355N/A
0N/A### Include common rulesets
493N/Ainclude ../Makefile.inc
0N/A
0N/A### Rules specific to this directory:
0N/A
0N/AVERA_FONT_FILES= \
0N/A Vera.ttf \
0N/A VeraBI.ttf \
0N/A VeraBd.ttf \
0N/A VeraIt.ttf \
0N/A VeraMoBI.ttf \
0N/A VeraMoBd.ttf \
0N/A VeraMoIt.ttf \
0N/A VeraMono.ttf \
0N/A VeraSe.ttf \
0N/A VeraSeBd.ttf
0N/A
222N/A$(SOURCE_DIR)/fonts.scale: $(UNPACK_TARGET)
222N/A (cd $(SOURCE_DIR) && \
222N/A LD_LIBRARY_PATH=$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
222N/A $(PROTODIR)$(X11_DIR)/bin/mkfontscale . )
222N/A
493N/Ainstall_vera: $(BUILD_TARGETS)
0N/A mkdir -p $(DEST_DIR)
0N/A -( cd $(DEST_DIR) ; rm -f $(VERA_FONT_FILES) VeraFontsCopyright.txt )
0N/A ( cd $(SOURCE_DIR) ; cp -p $(VERA_FONT_FILES) $(DEST_DIR) )
0N/A cp -p $(SOURCE_DIR)/COPYRIGHT.TXT $(DEST_DIR)/VeraFontsCopyright.txt
222N/A touch $(DEST_DIR)/fonts.scale
222N/A chmod +w $(DEST_DIR)/fonts.scale
222N/A ../merge-fonts.scale.pl -i $(DEST_DIR)/fonts.scale \
222N/A -i $(SOURCE_DIR)/fonts.scale -o $(DEST_DIR)/fonts.scale
0N/A